[pmwiki-users] View action not active

John Rankin john.rankin at affinity.co.nz
Wed Sep 14 17:05:48 CDT 2005

On Thursday, 15 September 2005 9:06 AM, Bronwyn Boltwood <arndis at gmail.com> wrote:
>On 9/14/05, Patrick R. Michaud <pmichaud at pobox.com> wrote:
>> On Wed, Sep 14, 2005 at 03:12:04PM +0000, Markus Bendler wrote:
>> > On some pages / installations the view action has no hyper link associated .
>> > This effect can be reproduced on the page:
>> > http://www.pmwiki.org/wiki/Cookbook/MarkupExtensions
>> > The view action is also 'orange' when the edit action is active.
>> The extendmarkup.php recipe turns all "self"-links into non-links,
>> thus the "view" link doesn't work when the MarkupExtensions recipe
>> is enabled.
>I've been using a very simple workaround.  Instead of just
>linking like this
>I do this
>Now the link remains a link, because markup extensions sensibly does
>not class links with parameters as self-links.  Since there aren't
>very many self-links without parameters that ought to be self-links,
>this works nicely for me.
I also do this.

FWIW my main motivation for treating self-references this way is so
that page names in side bars show when you have landed on them.

In the current incarnation, I put all the questions Patrick poses
in the 'when in doubt, do nothing' basket. Specifically, the code
includes an action check and applies a dotted underline style
to (for example) Edit when action=edit, but the link still works.

This seemed to me a reasonable compromise between doing inadvertent 
harm and displaying View differently from other actions. I agree 
with the suggestion that linking a page to itself is not good practice. 
But if an author has written [[{$FullName}?action=browse]] to force a
self-referencing link, pmwiki ought to honour that instruction.

It might be an idea to enable the latest version of the markup 
extensions on the Cookbook:MarkupExtensions page.

John Rankin

More information about the pmwiki-users mailing list