[pmwiki-users] Link Formats and the title attribute.

Waylan Limberg waylan at gmail.com
Wed Nov 9 14:59:53 CST 2005

On 11/9/05, Patrick R. Michaud <pmichaud at pobox.com> wrote:
> Hmm, well, I'm expecting some form of TitledLinks to be incorporated
> into 2.1, so maybe I can solve your issue at the same time in the
> distribution and be done with it.
> I'm thinking the following:
>  1. Allow the $LinkPageExistsFmt variable to be able to use a
>     page's title as the title= attribute (with the option of always
>     loading the title from the page).
>  2. Allow PageName"link title" to explicitly set the title= attribute
>     (overriding the page's title from #1 if present).
>  3. Provide a [[PageName|+]] markup that creates a link to a page
>     and uses the page's title as the link text.  It will also use
>     the title= attribute from #1/#2 above if those options are set.
I like the sound of that! Please do all three. That would be great.

> So, all that remains is figuring out how to do per-action based
> titles.  Of course, with the above you'd be able to do
>     [[PageName?action=edit("Edit: PageName's title")]]
> and explicitly set the title= attribute.  Getting it to automatically
> grab the title into the quotes isn't so straightforward, maybe
> we'd want to designate the '+' in this case to also be replaced
> with the target's title:
>     [[PageName?action=edit("Edit: +")]]

I really like that as well. Although, if its not doable, I think I'll
live. But I would prefer to see something like that.

Waylan Limberg
waylan at gmail.com

More information about the pmwiki-users mailing list