Recent Changes - Search:

Cookbook

PmWiki

pmwiki.org

Tagger-Talk

This is the page to talk about Tagger.

Hi Kathryn ! I'm testing your tagger script and have a question : how is it possible make this script work while keeping a typographic space following the colon as we can do with PTV (author: Name) so, using tagger we could automatically get something such as :
author: [[Authors/Fred Nurk]]
instead of
author:[[Authors/Fred Nurk]] ?
I tried different ways and didn't succeed in getting a space after colon --to get it before, I use a tag followed by a space--.
By the way, on your personal pages, what sort of magic do you use to align your tags ? Thank you. gb February 11, 2010, at 02:42 PM

The answer to both questions is the same, actually: I use hidden PTVs and display templates.

On the page itself:
(:Author:Fred Nurk:)

Another page in that group, called, say, DisplayTemplate:
||'''Author:'''||{*$AuthorLinked}||

(note that that is a table, thus the results are aligned)

And in the GroupHeader page for that group:
(:if !equal "{*$:Author}" "" :)
(:include base={*$FullName} {$Group}.DisplayTemplate:)
(:ifend:)

This test ensures that the template is only used when there is content for it to display.

Kathryn Andersen


Would it be possible to make the groups list in pmwiki page instead of config.php?
Let's say in Site/TaggerGroups ?

  • group1
  • group2

...

If someone else writes a patch to make it an option, I might consider adding it. I'm certainly not going to disable setting the data in config.php, because that's what I use myself, and I use conditions to change the tagger groups depending what the current group(prefix) is. I don't want to lose that functionality.
Since I wouldn't be using a Site/TaggerGroups page for myself, I would be more comfortable if the person who wrote that functionality was going to be using it themselves.
Kathryn Andersen August 19, 2009, at 12:04 AM

Talk page for the Tagger recipe (users?).

Edit - History - Print - Recent Changes - Search
Page last modified on February 19, 2010, at 04:58 PM