NAVIGATION
This shows you the differences between two versions of the page.
|
english:phpwcms_replacer_rts:frontend_render:anchor-jump [2011/08/18 07:05] Knut Heermann (flip-flop) created |
english:phpwcms_replacer_rts:frontend_render:anchor-jump [2018/06/03 18:09] (current) |
||
|---|---|---|---|
| Line 3: | Line 3: | ||
| ====== Jump to anchor ====== | ====== Jump to anchor ====== | ||
| - | **TRANSLATE** | ||
| - | **Dieser RT bietet die Möglichkeit innerhalb eines Artikels zu CP-Ankern und selbst gesetzten Ankern zu springen.** | + | **This RT offers the possibility to jump to CP-anchors and anchors itself set within an article.** |
| + | |||
| + | FIXME Better translate | ||
| + | |||
| + | |||
| + | **Prerequisites:** | ||
| + | * Autom. anchor of each CP given with **Achor [x]** e.g. **%%<a name="cpid123">%%** //(123 would be the id of the CP)// \\ | ||
| + | * Anchor that can be placed anywhere in the CP using the TAG **{A:MeinAnker}** (**%%<a name="MeinAnker">%%**). \\ | ||
| - | **Voraussetzung:** | ||
| - | * Anker der jedem CP autom. mit **Anker [x]** mitgegeben werden kann z.B. **%%<a name="cpid123">%%** //(123 wäre die Id des CP)// \\ | ||
| - | * Anker der mit dem TAG **{A:MeinAnker}** an irgendeiner Stelle in einem CP gesetzt werden kann (**%%<a name="MeinAnker">%%**). \\ | ||
| \\ | \\ | ||
| - | **Bedingungen im TAG:** | + | |
| + | **TAG:** | ||
| + | * ##{GO-A:CP-ID,Link text}## | ||
| + | * ##{GO-A:Ankertext,Link text}## | ||
| + | |||
| + | \\ | ||
| + | |||
| + | **Condition in the TAG:** | ||
| * CP-ID: | * CP-ID: | ||
| - | * Numerischer Wert //(Es wird autom. angenommen, dass eine ContentPart-ID gemeint ist).// | + | * Numeric value //(It is automatic. assumed that a contentpart-id part is meant).// |
| - | * Ankername: | + | * Anchor_name: |
| - | * Ein Wort, keine Leerzeichen, keine Sonderzeichen oder Umlaute //(Es wird angenommen, dass eine gültiger Anker auf der Seite gesetzt ist).// | + | * One word, no spaces, no special characters or umlauts //(It is assumed that a valid anchor is set in the page).// |
| - | * Linktext: | + | * Link text: |
| - | * Minimale Wortlänge sind drei Zeichen | + | * Minimum word length is three characters |
| - | Ist eine Bedingung nicht erfüllt wird ein Fehlertext im FE ausgegeben. | + | If a condition is not fulfilled, an error text displayed in the FE. |
| - | \\ | ||
| - | **Der RT überprüft nicht das Vorhandensein von gültigen Sprungzielen!** | + | <note> |
| + | **The RT does not check for the existence of valid jump targets!** | ||
| + | </note> | ||
| - | \\ | ||
| + | |||
| + | **Example:** | ||
| + | |||
| + | **{GO-A:149,Link text}** | ||
| + | |||
| + | <code html> | ||
| + | <a href="#cpid149" class="phpwcmsAnchorLink-GO" title="Link text">Link text</a> | ||
| + | </code> | ||
| + | |||
| + | \\ | ||
| + | **{GO-A:MyAnchorName,Link text}** | ||
| + | <code html> | ||
| + | <a href="#MyAnchorName" class="phpwcmsAnchorLink-GO" title="Link text">Link text</a> | ||
| + | </code> | ||
| + | |||
| + | \\ | ||
| ---- | ---- | ||
| Line 43: | Line 70: | ||
| - | **Autor:** K.Heermann (flip-flop) http://planmatrix.de \\ | + | **Author:** K.Heermann (flip-flop) http://planmatrix.de \\ |
| **CMS Version:** >= 1.3 \\ | **CMS Version:** >= 1.3 \\ | ||
| **Version:** V1.0 \\ | **Version:** V1.0 \\ | ||
| Line 49: | Line 76: | ||
| - | Tag: -- **{GO-A:CP-ID, Linktext}** oder **{GO-A:Ankertext, Linktext}** | + | Tag: -- ##{GO-A:CP-ID, Link text}## oder ##{GO-A:Anchor_text, Link text}## |
| - | Dateiname: **rt_goto_anchor.php** | + | Filename: **rt_goto_anchor.php** |
| - | Verzeichnis: ** template/inc_script/frontend_render/ ** | + | Folder: ** template/inc_script/frontend_render/ ** |
| - | **Bedingung:** -> [[http://www.phpwcms-docu.de/config_dateien.phtml|/config/phpwcms/conf.inc.php]] \\ | + | **Condition:** -> [[http://www.phpwcms-docu.de/conf_inc_php_en.phtml|/config/phpwcms/conf.inc.php]] \\ |
| * ##$phpwcms['allow_ext_render'] = 1;## | * ##$phpwcms['allow_ext_render'] = 1;## | ||
| Line 66: | Line 93: | ||
| ===== Code: ===== | ===== Code: ===== | ||
| - | **Datei:** template/inc_script/frontend_render/rt_goto_anchor.php | + | **File:** template/inc_script/frontend_render/rt_goto_anchor.php |
| <code php |h rt_goto_anchor |h > | <code php |h rt_goto_anchor |h > | ||