"David B. Bitton" <[EMAIL PROTECTED]> writes:

> The pages created will not be link to, just have links from, so therefore
> I do not need to create links to them.  The entry page is just that, it
> serves as a doorway to the site (some people here may be familiar with
> this architecture) and the script page is linked to from the entry page.
> The script page does not link to anything within the site, but another
> site that then in turn redirects page to another section within the site.
> Does anyone has any insight?
>

my apologies, i think i misinterpreted what you are trying to do.
you are creating different entry points to the same content ?
i guess if you want to keep the doormaker invisible, you could put it
in a lib directory, wrap it in a null filter, and process it from a
file in the tree.

        [% FILTER null %] ..script generator.. [% END %]

maybee ttree should avoid creating empty files to prevent templates
that are intended spawn extra files then silently bow out from
polluting the destination directory?


> > "David B. Bitton" <[EMAIL PROTECTED]> writes:
> >
> >> List,
> >>   I have the following in a file (along with the data at the top,
> >>   which
> >> was omitted for brevity's sake):
> >>
> >> [% FOREACH page_type = ["entry" "script"] %]
> >>     [% FOREACH avs = avs_list %]
> >
> > put your index maker here.
> 
> what do you mean by this?

i meant that you could create a page of links to all the scripts and
static entry pages.  i guess this would give away the secret that
there are many, but you could keep it private.  a door to all the
doors :)

but this means that your template would have output, which is not what
you wanted. 

> >
> >>            [% FILTER redirect("${avs.name}_${page_type}.html") %]
> >>                    [% WRAPPER page.tt2 %]
> >>                            [%
> >>                            PROCESS "${page_type}.tt2"
> >>                                    name = avs.name
> >>                                    id = avs.id
> >>                                    pitch = avs.pitch
> >>                    %]
> >>                    [% END %]
> >>            [% END %]
> >>     [% END %]
> >> [% END %]
> >>
> >>
> >> and it works well.  Now, I want to include this in my src directory
> >> for ttree to process as it moves through the tree, _but_ I do not want
> >> this file to be copied into the dest dir.  If I set this file as an
> >> ignore file, then it won't get processed at all, and if I set it as a
> >> "process="
> >>  file, then it gets processed for every file in the template.  So, how
> >>  do
> >> I do this?
> >
> >    hi david-
> >
> > you could put this file in your lib directory, then process it from a
> > template that gets called once.  it is sort of moot though as this file
> > will be empty when in the tree, so alternatively, you could use the
> > file to create an index of the redirected output files:
> >
> > <a href="${avs.name}_${page_type}.html">${avs.name}</a> <br>
> >
> > just a suggestion.
> >
> >    hugh.
> >
> >
> > _______________________________________________
> > templates mailing list
> > [EMAIL PROTECTED]
> > http://www.template-toolkit.org/mailman/listinfo/templates
> 
> 
> 
> --
> David B. Bitton
> [EMAIL PROTECTED]
> 
> Diversa ab illis virtute valemus.
> 
> 
> 
> _______________________________________________
> templates mailing list
> [EMAIL PROTECTED]
> http://www.template-toolkit.org/mailman/listinfo/templates
> 

-- 
[EMAIL PROTECTED]


Reply via email to