[pmwiki-users] Pagelist default when there is no especific group
Carlos AB
cabsec.pmwiki at gmail.com
Mon Jan 29 17:21:17 CST 2018
Hi,
I'm using a nested wiki.d/{$Group}/{$FullName} pagestore on my wiki
and I was trying to find ways to minimize the impact with pagelist
when you have a wiki with a lot of pages.
The first thing I did to minimize impact, was to make sure the search
form included a group option in every search with:
if($enableGroupSearchBox)
$SearchBoxOpt['group'] = PageVar($pagename, '$Group');
I could not be sure how pagelist does the file list in both cases
(nested, non-nested), to be certain that there is an improvement while
using a nested wiki.d with pagelist.
I give in each "new PageStore", a method to access the files in
wiki.d, but not certain if when I use a "group=" option inside
pagelist, if it takes advantage of that by just listing and accessing
the files inside the specified group in wiki.d and not all other
nested groups inside wiki.d as well.
I also saw the code for the include markup and PageTextVars with the
syntax to access variables in other pages, but looking at the code one
can see the functions relative to each markup, that they open the new
pages to access those variables using the nested method instantiated
before for PageStore.
I looked at the code because I had the wrong idea that I would have to
catch each call to a new page with those markups and create a new
PageStore for each.
My other question would be why the initial behavior for pagelist is to
list all pages in all groups according to the needle, instead of
making it list just the pages inside the current group, if the option
"group=" is not used. For searchresults, I believe the behavior is
correct.
TIA,
CarlosAB
More information about the pmwiki-users
mailing list