Wonderful use of Page Variables, Kathryn. Very clever. <br><br>I'll have to play with it. I use categories extensively, so I'll need to figure out if tagger can play nice with what I already have in place--but regardless, thanks for sharing this recipe. Really cool idea and execution.<br>
<br>Best,<br>Brent<br><br><div class="gmail_quote">On Tue, Jan 27, 2009 at 4:32 PM, Kathryn Andersen <span dir="ltr"><<a href="mailto:kat_lists@katspace.homelinux.org" target="_blank">kat_lists@katspace.homelinux.org</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div>On Wed, Jan 28, 2009 at 12:49:13AM +0100, <a href="mailto:kirpi@kirpi.it" target="_blank">kirpi@kirpi.it</a> wrote:<br>
> I am failing to understand how the Tagger[1] recipe is to be used.<br>
> So, I enabled it with<br>
> $TaggerGroups['Tags'] = 'Tags';<br>
> include_once("$FarmD/cookbook/tagger.php");<br>
><br>
> Now, somebody visits a A page and adds<br>
> Tags: dog, cat, mouse<br>
> Somebody else visits another page and adds<br>
> Tags: mouse, rabbitt, lion<br>
><br>
<br>
</div>The idea of Tagger is an extension of the idea of Categories[2], so<br>
one needs to understand how Categories work before one can understand<br>
how Tagger works. Categories gives one special markup which creates a<br>
link to the given page in the Category group, which itself needs to be<br>
set up to display the pages that link to it.<br>
<br>
What Tagger gives one is *multiple* category groups, each one of which<br>
needs to be set up like one would set up a standard PmWiki Category<br>
group.<br>
<br>
I use this extensively in my wiki, for example with my pages on books.<br>
For example take the page about a book I read recently, "An Assembly<br>
Such as This"[3].<br>
<br>
I have tagger groups for Author, Genre, Series and Status.<br>
$TaggerGroups['Author'] = 'Reviews-Book-Author';<br>
$TaggerGroups['Genre'] = 'Reviews-Genre';<br>
$TaggerGroups['Series'] = 'Reviews-Series';<br>
$TaggerGroups['Status'] = 'Reviews-Book-Status';<br>
<br>
Author: Pamela Aidan<br>
Genre: Historical, Romance<br>
Series: Fitzwilliam Darcy, Gentleman<br>
Status: Owned<br>
<br>
This gives me different "category groups" for different kinds of<br>
information, so that I can look at the books by author, by genre, by<br>
series, and by status (whether I own the book or whether I am just<br>
reading it).<br>
<br>
For example, the "Author: Pamela Aidan" will give me a link to<br>
[[Reviews-Book-Author/PamelaAidan]] without me having to type<br>
in the link code. This also has the advantage that I can use the<br>
"Author: Pamela Aidan" as a page-text-variable in pagelists or display<br>
templates.<br>
<div><br>
> - Now, how can I have a list of those pages which bear the 'dog' tag?<br>
</div>By looking at the Tags/Dog page, if the Tags group has been set up<br>
correctly as a "category" group.<br>
<div><br>
> - How can I have a list of all the tags used, site-wide?<br>
</div>By setting up the Tags group to (a) auto-create pages and (b) setting up<br>
the Tags/Tags page to list all pages in the Tags group.<br>
<div><br>
> - What are those Tags/Dog, Tags/Cat pages supposed to be used for?<br>
</div>For listing all pages that link to them.<br>
<div><br>
> - What are those Page Variables listed in the recipe for?<br>
</div>The PageVariables listed in the recipe are used in two ways:<br>
a) in pagelists<br>
b) in display templates<br>
<div><br>
[1] <a href="http://www.pmwiki.org/wiki/Cookbook/Tagger" target="_blank">http://www.pmwiki.org/wiki/Cookbook/Tagger</a><br>
</div>[2] <a href="http://www.pmwiki.org/wiki/PmWiki/Categories" target="_blank">http://www.pmwiki.org/wiki/PmWiki/Categories</a><br>
[3] <a href="http://www.katspace.org/Reviews/Book/Volume/AssemblySuchAsThis" target="_blank">http://www.katspace.org/Reviews/Book/Volume/AssemblySuchAsThis</a><br>
<br>
Kathryn Andersen<br>
<font color="#888888">--<br>
_--_|\ | Kathryn Andersen <<a href="http://www.katspace.com" target="_blank">http://www.katspace.com</a>><br>
/ \ |<br>
\_.--.*/ | GenFicCrit mailing list <<a href="http://www.katspace.com/gen_fic_crit/" target="_blank">http://www.katspace.com/gen_fic_crit/</a>><br>
v |<br>
------------| Melbourne -> Victoria -> Australia -> Southern Hemisphere<br>
Maranatha! | -> Earth -> Sol -> Milky Way Galaxy -> Universe<br>
</font><div><div></div><div><br>
_______________________________________________<br>
pmwiki-users mailing list<br>
<a href="mailto:pmwiki-users@pmichaud.com" target="_blank">pmwiki-users@pmichaud.com</a><br>
<a href="http://www.pmichaud.com/mailman/listinfo/pmwiki-users" target="_blank">http://www.pmichaud.com/mailman/listinfo/pmwiki-users</a><br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>Brent Zupp<br><a href="http://www.wanderings.net/" target="_blank">http://www.wanderings.net/</a><br><br>Shared joy is double joy. Shared sorrow is half sorrow.<br>
~ Swedish Proverb<br>