[pmwiki-users] wikipublisher

John Rankin john.rankin at affinity.co.nz
Wed Mar 8 17:08:56 CST 2006


On Thursday, 9 March 2006 1:58 AM, noskule at gmx.net wrote:
>John Rankin schrieb:
<snip>
>>This works as follows:
>>
>>(:toc:) just creates a toc
>>
>>(:toc anchors=visible:) makes the anchors on the page visible
>>
>>the configuration variable $VisibleAnchorLinks makes the anchor
>>either a link to the address or shows the address as a tool tip
>>  
>>
>IMO it would be nice if it also could be in combination (link and 
>tooltip) so it can be easily used from wikiauthors  to find out the 
>anchor part for a wikilink and at the same time to find out the url for 
>references  for external sites.

So you want the href or title to be "and" instead of "or".
This means a way to specify just href, just title and href + title.
That should be possible.


>
>I did try to change pagetoc see: 
>http://pmwiki.netstreams.org/index.php/Pagetoc/HomePage the possitions 
>of the icons is not good jet, I would brever it to put them under the 
>heading ore somewhere else, is this be done somhow without to change the 
>code itself?

You should be able to define a markup rule outside pagetoc that 
inserts (:toc-back:) in the places it needs to go, before toc-back 
gets processed. This is left as an exercise for the reader...

>
>
>I did try to change:
>
>$VisibleAnchor ="<img style='margin-bottom:1px'
>src='$SkinDirUrl/anchor.png' border='0' />";
>
>but $SkinDirUrl do not work, should this be like this?
>hm,
>
>$VisibleAnchor ="<img style='margin-bottom:1px'
>src='$PubDirUrl/skins/netstreams/anchor.png' border='0' />"; 
>
>but this works. Why is this? SkinDir not but PubDir yes . . .
>

At a guess, pmwiki hasn't set $SkinDirUrl at this point in the
code, but has set $PubDirUrl.
<snip>

-- 
JR
--
John Rankin






More information about the pmwiki-users mailing list