Some Micro Navigations

Just an unsorted list to not forget it ;)
Some built-in tags (like the [PRINT]- tag are too restrictive so here is some more freedom:

[PHP]echo FE_CURRENT_URL[/PHP] //displaying site.de/alias
<a href="javascript:history.go(-1)" class="footer-tools-back" title="@@eine Seite zurück@@"></a>
<a href="[PHP]echo FE_CURRENT_URL[/PHP]#top" class="footer-tools-top" title="@@nach oben@@"></a>
<a href="[PHP]echo FE_CURRENT_URL[/PHP]&amp;print=1" class="footer-tools-print" title="@@diese Seite drucken@@"></a>

Some more

You can use this within text to link to anchors:

[a=dahin.html#anker]LinkText[/a]

And Some more

Anchor

    {a:#jump}

will generate

<a id="jump"></a>

Relative URL in current page

    <a href="{a:REL#jump}">

Absolute URL

    <a href="{a:ABS#jump}">

And a little FE-render script

<?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"]);
?>
english/navigation/little-helper/micro-navigation.txt · Last modified: 2018/06/03 18:09 (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