Andy Wardley wrote:
>      [% FOREACH product IN products;      # loop through each product
>            page = "${product.id}.html";   # construct product page URL
>            PROCESS product/page           # generate product page...
>                FILTER redirect(page);     # ...saving output to new file 
>      %]

Simon Wilcox wrote:
> Last time I looked at this, the approach doesn't work when you use the
> pre_process ttree directive to add a wrapper around your pages. I
> routinely have a template, page.tt which contains the [% WRAPPER %]
> directive, saving me from having to put it in each actual page template 
> but calling a page from within a page means that the wrapper never gets 
> called.

You can always add it manually.  Something like this:

  FILTER redirect(page);
    PROCESS product/page WRAPPER site/wrapper;
  END

A


_______________________________________________
templates mailing list
[EMAIL PROTECTED]
http://lists.template-toolkit.org/mailman/listinfo/templates

Reply via email to