[pmwiki-users] Tagger recipe: again
Francesco Sblendorio
sblendorio at gmail.com
Mon May 31 16:03:29 CDT 2010
Hi.
I need to have more than one category-group, so I found the Tagger recipe.
I read this: http://www.pmwiki.org/wiki/Cookbook/Tagger
then I read this:
http://www.mail-archive.com/pmwiki-users@pmichaud.com/msg16033.html
...but I could not get what I got with one "Category" group using the
[[!Topic]] syntax.
I did so: first, I put this in local.config:
$TaggerGroups['Autore']='Tag-Autore';
$TaggerGroups['Conferenza']='Tag-Conferenza';
$TaggerGroups['Articolo']='Tag-Articolo';
include_once("$FarmD/cookbook/tagger.php");
$AutoCreate['/^Tag-Conferenza\\./'] = array('ctime' => $Now, 'text' =>
$page['text']);
$AutoCreate['/^Tag-Articolo\\./'] = array('ctime' => $Now, 'text' =>
$page['text']);
$AutoCreate['/^Tag-Autore\\./'] = array('ctime' => $Now, 'text' =>
$page['text']);
So, in a page (for example this one:
http://www.cicap.org/lombardia/wiki/pmwiki.php/PortfolioConferenze/AstrologiaEAstronomia),
I put at the end:
Autore:Valerio
Conferenza:Astronomia,Astrologia
or, (making it invisible):
(:Autore:Valerio:)
(:Conferenza:Astronomia,Astrologia:)
And, after that, I'm hanged.
I need to:
1- Get a list of all categories under "Conferenza" (in that case, the "tags"
Astronomia, Astrologia), or all categories under "Autore" (e.g. "Valerio")
2- Given a specific group-and-category (e.g. "Conferenza:Astronomia"), get a
list of all pages with "Conferenza:Astronomia").
3- Make the category-pages be auto-created: I put the code you can see
above, but NO auto-creation is done.
I tried using the tricks in http://www.pmwiki.org/wiki/Cookbook/Tagger-Talk,
but I got nothing...
Can someone help me in the three points above?
--
Francesco Sblendorio
http://fsblendorio.blogspot.com
http://www.sblendorio.eu
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.pmichaud.com/pipermail/pmwiki-users/attachments/20100531/da8132b3/attachment.html>
More information about the pmwiki-users
mailing list