From: Reini U. <ru...@x-...> - 2005-01-20 20:53:35
|
John Cole schrieb: > I think this is an easy one :-) I looked into adding this myself, but > couldn't figure out how $limit works deep down. > > Anyway, I'd like the listsubpages plugin to have a maximum depth > argument, to prevent all of the subpages from being listed. For example, > some of my pages that I convert into DocBook format are listed like this: > > Help/appname/chapter00/part01 > Help/appname/chapert01/part01 > Help/appname/chapter01/part02 > Help/appname2/chapter00/part01 > Etc... ListSubpages is not recursive. There's no recursive subpage lister, just SiteMap, which includes the content recursively. Looks like you already know the pagename prefix: <?plugin ListSubpages basepage=Help/appname/chapter* ?> > I'd like to put a listsubpages plugin on the 'Help' page just to list the > apps that have help so the list would be > > Appname > Appname2 That is <?plugin ListSubpages basepage=Help ?> but this would display the full pagename. Help/Appname Help/Appname2 There's a plan to display only the relative subpagename, but's it's not yet written. (See the src) > Looking at some other plugins it seems that IncludeSiteMap plugin uses > 'reclimit' to do this and it appears that the functions being called by > ListSubPages has a $limit argument, I just couldn't get it to work like I > expected :-) -- Reini Urban http://xarch.tu-graz.ac.at/home/rurban/ |