[pmwiki-users] Hidden page-text-variables, link targets, and pagelists

Patrick R. Michaud pmichaud at pobox.com
Tue Mar 13 08:19:26 CDT 2007


On Tue, Mar 13, 2007 at 10:42:35PM +1100, Kathryn Andersen wrote:
> I'm using PmWiki 2.2beta34.
> 
> I've run into what appears to be a bug.  I've reproduced it
> at
> http://www.pmwiki.org/wiki/Test/PageListLinkWithPtv1
> http://www.pmwiki.org/wiki/Test/PageListLinkWithPtv2
> http://www.pmwiki.org/wiki/Test/PageListLinkWithPtv3
> ...
> Maybe it's supposed to be a feature (that is, hidden is hidden) but I
> wasn't expecting that changing a page-text-variable from visible to
> hidden would change the behaviour of pagelists as well as changing how
> it shows on the page.

I'll have to think about this one a bit.  Currently, when a page
is rendered any (:textvar:...:) markup is "hidden" by removing it
entirely from the page markup.  This happens before links are
processed, so that any link markup that exists inside of a hidden 
page is never processed as a link.

Thinking of it slightly differently -- there's not really a
link from PageListLinkWithPtv1 to PageListLinkWithPtv3.
At least, we never see one in the output.  It's almost identical 
to placing a "link" within a comment:

    (:comment this does not [[contain]] any links :)

Currently PmWiki doesn't treat this as being a link to another
page either.

At the moment I don't have a good overall solution for this one,
but I'm open for suggestions.  

Some possible alternatives that might work for you:

1.  Instead of hidden page text variables, try a hidden definition list:

    : :%comment list%
    :Link1:[[Test/PageListLinkWithPtv2]]
    :Link2:[[Test/PageListLinkWithPtv3]]

2.  Use conditional markup:

    (:if false:)
    :Link1:[[Test/PageListLinkWithPtv2]]
    :Link2:[[Test/PageListLinkWithPtv3]]
    (:if:)

3.  A hidden paragraph:

    %p comment%
    Link1: [[Test/PageListLinkWithPtv2]]
    Link2: [[Test/PageListLinkWithPtv3]]

Pm



More information about the pmwiki-users mailing list