|
PmWiki /
PageLists-TalkDiscussion of PageListsHow can I configure my site to always exclude wiki-related pages from searches? Add Try the following in your local/config.php file. See also Cookbook:SearchPatterns. ## Exclude Certain pages / groups from search results. $SearchPatterns['default'][] = '!\\.(All)?Recent(Changes|Uploads|Comments)$!'; $SearchPatterns['default'][] = '!\\.Group(Print)?(Header|Footer|Attributes)$!'; $SearchPatterns['default'][] = '!\\.(Left|Right|Side)(Bar|Menu|Note)$!'; $SearchPatterns['default'][] = '!^Site\\.!'; $SearchPatterns['default'][] = '!^PmWiki\\.!'; If you add How do I turn on wiki word spacing in page lists? Try the following in your Site.LocalTemplates ----
!!!fmt=#simplelist
Simple list of page names, without the Group name.
[@
[[#simplelist]]
[[{=$FullName}|{=$Titlespaced}]],
[[#simplelistend]]
@]
How to list only pages that have their title (*not* name) starting with A, B, C,... (:pagelist $Title=A*,B*,C* :) How do I search for pages changed by an particular author? It would be useful to provide Author= (similar to name= or group=). Try using the Cookbook:AuthorContribution recipe. This recipe provides a way to automatically keep a list of the pages each author has edited by producing an "Author Contributions" page with a name of Profiles.<author's name>-Contrib for each author that has a page in the Profiles group. Contributions by authors without profile pages are placed in a single Profiles.Other-Contrib page. You may try pagelist using $LastModifiedBy variable, as in : How to exclude deleted pages from Use (:pagelist trail=Site.AllRecentChanges if="exists {=$FullName}" ...:) order=ctime displays the pages in the order they were created. Is there a way to reverse this (so that the newest page appears first)? Yes. Use How to we access the ctime variable, eg to display it? Create a page variable in config.php :
A pagelist excludes the current page from the generated list if "list=normal", how can the current page be included while retaining all the other benefits of using "list=normal"? Set in config.php this: Then use Is it possible to return a list of all pages that are not protected by the site password? Experimenting with the "passwd="-attribute didn't get me very far...
Perhaps Cookbook:PagelistAuthListShort might help. I want to list all the pages in a wikigroup dynamically, how do I do that? E.g. I am creating groups Apple, Orange, Pear and I want each group page to display all the associated group pages e.g. Apple.RecentChanges, Apple.Apple, Apple.HomePage in each Apple page & Orange.somePage, Orange.RecentChanges in each Orange page. It is something like a page directory. How do I do this using a template for every page? Thanks so much!
You can use: How do I search for pages changed after a particular date? ... Using pagelist with the link-parameter causes on Strato an "Internal Server Error:" "The server encountered an internal error or misconfiguration and was unable to complete your request. Please contact the server administrator, service@webmailer.de and inform them of the time the error occurred, and anything you might have done that may have caused the error. More information about this error may be available in the server error log."
The same thing happens when trying to search something or when trying to load the PmWikiDe/DocumentationIndex page. Are there ideas for a workaround?
I had a similar error on Free.fr due to a local misconfiguration of PHP4. Switching the website to PHP5 solved the issue. As Strato supports different versions of PHP4 and 5, you should try all and tell us if/when it works. (Read the FAQs: you need to rename your index.php to index.php5, or add in your /.htaccess the code: " How do I capture the output from "fmt=count" into a page text variable? I want to test if the pagelist returns any items, or to separate the pagelist into two columns.
Is it possible to find backlinks to all pages in a group, or multiple pages? eg (:pagelist group=Cookbook link=Category/:) or (:pagelist group=Cookbook link=Category/One,Category.Two:) or (:pagelist group=Category link=Cookbook.*:) No, see and vote for 00908 Enhance the link parameter of page list (multiple and exclusions) Can I pass a named parameter to a pagelist, eg a number to set a thumbnail size? For example How can I include backlinks to pages which only link to current page via pagelist? i.e page "A" has a pagelist which generates a list of links to "B","C","D" ... a backlinks pagelist on page "B" does not list page "A" because there is no REAL link from "A" to "B". YOu might like to support and vote for 01203 Backlinks to incorporate pagelists, redirect, and include or 01204 pagelist frontlinks Is it possible to get a list of pages that are not backlinked, eg No, negation on the Is there a variable containing the search term that can be used in pagelists, etc? Add the following line to your local/config.php file: $FmtPV['$SearchQuery'] = 'stripmagic(@$_REQUEST["q"])'; Now, you can use the How can I list also Pages that are read protectet? Add to config.php This is a talk page for improving PmWiki.PageLists. |