Differences

This shows you the differences between two versions of the page.

english:navigation:little-helper:micro-navigation [2014/03/25 19:07]
Claus
english:navigation:little-helper:micro-navigation [2018/06/03 18:09] (current)
Line 20: Line 20:
<code> <code>
[a=dahin.html#anker]LinkText[/a] [a=dahin.html#anker]LinkText[/a]
 +</code>
 +===== And Some more =====
 +Anchor
 +<code>
 +    {a:#jump}
 +</code>
 +
 +will generate
 +<code>
 +<a id="jump"></a>
 +</code>
 +
 +Relative URL in current page
 +<code>
 +    <a href="{a:REL#jump}">
 +</code>
 +
 +Absolute URL
 +<code>
 +    <a href="{a:ABS#jump}">
 +</code>
 +
 +And a little FE-render script
 +<code>
 +<?php
 +// -----------------------------------------------------------------------------
 +// Anchor-Link den "neueren" phpwcms-Versionen "anpassen"
 +//  + andere Sprung-Anker
 +// -----------------------------------------------------------------------------
 +
 +   $content["all"] = str_replace("a href='#", "a href='".rel_url()."#", $content["all"]);
 +   // oder
 +   // $content["all"] = str_replace("a href='#", "a href='".abs_url()."#", $content["all"]);
 +?>
</code> </code>
english/navigation/little-helper/micro-navigation.1395770842.txt.gz · Last modified: 2018/06/03 18:08 (external edit)
www.planmatrix.de www.chimeric.de Creative Commons License Valid CSS Driven by DokuWiki do yourself a favour and use a real browser - get firefox!! Recent changes RSS feed Valid XHTML 1.0