[pmwiki-users] Best practices - link to pages

Patrick R. Michaud pmichaud at pobox.com
Tue Apr 24 13:07:57 CDT 2007


On Mon, Apr 23, 2007 at 12:42:38PM +0200, St�phane Heckel wrote:
> It means that the syntax to link to a page is [pagename] in the whole system
> 
> PmWiki introduces the concept of "groups" (and I want to use it)
> Based on the fact that I do not have duplicated page name, I would like to 
> be able to link to all pages using the same syntax ([pagename]) even if my 
> pages belong to different groups.
> 
> Is there a way to link to a page that is not stored in the "current" group 
> without declaring the groupname in the syntax ? (ie : [groupname/pagename])

My suggestion would be to make a clear distinction between the
two syntaxes -- i.e., leave PmWiki's  [[group/pagename]] syntax as it is,
and then allow Confluence's [pagename] syntax to mean "link to pagename 
in any wikigroup" (as defined by $PagePathFmt, or some other syntax).

Later, it is written:
> I can have a [Country.Russia] page where I store [Partner1] [Partner2] ... 
> [PartnerN] infos
> ie, ff [Partner2] does not exist and if I click on it to create the page, I 
> should assign the group "Partners" to [Partner2] and not "Country" because I 
> want all partners to belong the "Partners" group.
> 
> So, somewhere I have to prompt the user "which group" he wants to assign to 
> this new page !
> Any clue how to do that ?

At some level this starts to sound more like categories than wikigroups.
( http://www.pmwiki.org/wiki/PmWiki/Categories ).  But beyond that the
best approach might be to disallow new pages from being created simply
by clicking on the link to a non-existent page.  That way authors are
forced to explicitly declare which group a page should be placed in.
Or, use a recipe such as NewPageBox for the creation of all pages.

Just some thoughts.

Pm



More information about the pmwiki-users mailing list