[pmwiki-users] List of pages with no Category

Peter Payzant pce at accesswave.ca
Tue Jan 3 16:59:25 CST 2012


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<languefrancaise at gmail.com>:
>> 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<pbowers at pobox.com>:
>>> On Mon, Jan 2, 2012 at 5:49 PM, Peter Payzant<pce at accesswave.ca>  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
>>> pmwiki-users at pmichaud.com
>>> http://www.pmichaud.com/mailman/listinfo/pmwiki-users
>>
>> --
>>
>> ---------------------------------------
>> | A | de la langue française
>> | B | http://www.languefrancaise.net/
>> | C | languefrancaise at gmail.com
>> ---------------------------------------
>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.pmichaud.com/pipermail/pmwiki-users/attachments/20120103/b12f0eef/attachment.html>


More information about the pmwiki-users mailing list