Thank you for this! I'm looking forward to trying it out.
Regards
Peter Payzant
On 2012/01/03 11:38 AM, ABClf wrote:
Looks like it's working for categories who are not included, if
category links to Category group :
in config :
$FmtPV['$CatLinksCount'] = 'CatLinksCount($page["targets"])';
function CatLinksCount($targets) {
$cnt = substr_count($targets, "Category.");
return $cnt;
}
in page :
[[#countcat]]
* [[{=$FullName}]] {=$CatLinksCount}
[[#countcat]]
(:pagelist fmt=#countcat $CatLinksCount=0:)
Gilles.
2012/1/3 ABClf<[email protected]>:
You may try to adapt $ProfileLinksCount for counting categories.
Then do the work for showing the pagelist where $CatLinksCount = 0.
http://www.pmwiki.org/wiki/Cookbook/MoreCustomPageVariables
Gilles.
2012/1/3 Peter Bowers<[email protected]>:
On Mon, Jan 2, 2012 at 5:49 PM, Peter Payzant<[email protected]> wrote:
Is it possible to use "pagelist" to get a list of all pages with no category
assigned? I'd like to have a page listing pages by category, including a
list of uncategorized pages.
Depending on your site and your authors it may be appropriate for you
to include [[!Uncategorized]] in your default text for a page. Then
if authors put a category in they could remove the Uncategorized
link...?
YMMV.
-Peter
_______________________________________________
pmwiki-users mailing list
[email protected]
http://www.pmichaud.com/mailman/listinfo/pmwiki-users
--
---------------------------------------
| A | de la langue française
| B | http://www.languefrancaise.net/
| C | [email protected]
---------------------------------------
_______________________________________________
pmwiki-users mailing list
[email protected]
http://www.pmichaud.com/mailman/listinfo/pmwiki-users