NAVIGATION
This shows you the differences between two versions of the page.
|
deutsch:navigationen:kleine-helfer:micro-navigationen [2009/04/25 08:05] 127.0.0.1 external edit |
deutsch:navigationen:kleine-helfer:micro-navigationen [2018/06/03 18:09] (current) |
||
|---|---|---|---|
| Line 14: | Line 14: | ||
| <a href="[PHP]echo FE_CURRENT_URL[/PHP]&print=1" class="footer-tools-print" title="@@diese Seite drucken@@"></a> | <a href="[PHP]echo FE_CURRENT_URL[/PHP]&print=1" class="footer-tools-print" title="@@diese Seite drucken@@"></a> | ||
| </code> | </code> | ||
| + | |||
| + | ===== Some more ===== | ||
| + | |||
| + | You can use this within text to link to anchors: | ||
| + | <code> | ||
| + | [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> | ||
| + | |||