[pmwiki-users] List of pages with no Category

Simon nzskiwi at gmail.com
Tue Jan 3 19:57:09 CST 2012


It would be worth adding this requirement to
http://www.pmwiki.org/wiki/PITS/00908

and of course voting for it

Simon

On 4 January 2012 11:59, Peter Payzant <pce at accesswave.ca> wrote:

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


-- 
____
http://kiwiwiki.co.nz
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.pmichaud.com/pipermail/pmwiki-users/attachments/20120104/69444f6f/attachment-0001.html>


More information about the pmwiki-users mailing list