[pmwiki-users] Crazy error after generating templates

Kathryn Andersen kat_lists at katspace.homelinux.org
Thu Jul 6 02:09:32 CDT 2006


On Thu, Jul 06, 2006 at 08:30:49AM +0200, Daniel Hofer wrote:
> I've build a new template in Site.LocalTemplates:
> -------------------------------------
> [[#Hierarchical]]
> !!!!{=$Title}
> (:pagelist link={=$FullName} fmt=#title:)
> [[#HierarchicalEnd]]
> -------------------------------------
> This show me in Software.Software a list of software categories with the 
> software.

> I thought it works fine...until now.
> I've just seen that I get error messages instead of a pagelist at the 
> end of this pagelist.
> It's written
> "Site.PageListTemplates#titleSite.PageListTemplates#titleSite.PageListTemplates#titleSite.PageListTemplates..."

Sounds like it's an endless recursion.

Have you considered something like
-------------------------------------
[[#Hierarchical]]
!!!!{=$Title}
(:pagelist name=-{=$FullName} link={=$FullName} fmt=#title:)
[[#HierarchicalEnd]]
-------------------------------------

This would hopefully remove the current page from the recursion.
I'm not sure if I have that exactly right, though.
 
Kathryn Andersen
-- 
 _--_|\     | Kathryn Andersen	<http://www.katspace.com>
/      \    | 
\_.--.*/    | GenFicCrit mailing list <http://www.katspace.com/gen_fic_crit/>
      v     | 
------------| Melbourne -> Victoria -> Australia -> Southern Hemisphere
Maranatha!  |	-> Earth -> Sol -> Milky Way Galaxy -> Universe




More information about the pmwiki-users mailing list