NAVIGATION
This shows you the differences between two versions of the page.
english:phpwcms_replacer_rts:frontend_render:navi-row-replacement [2011/09/30 12:27] Knut Heermann (flip-flop) Page name changed from english:phpwcms_replacer_rts:frontend_render:navi-line-replacement to english:phpwcms_replacer_rts:frontend_render:navi-row-replacement |
english:phpwcms_replacer_rts:frontend_render:navi-row-replacement [2018/06/03 18:09] (current) |
||
---|---|---|---|
Line 1: | Line 1: | ||
{{indexmenu_n>320}} | {{indexmenu_n>320}} | ||
- | ====== Navi-row replacement ====== | + | ====== Navi-Row replacement ====== |
**Certain lines of a navigation replaced by another content.** | **Certain lines of a navigation replaced by another content.** | ||
- | FIXME translate | + | FIXME better translate |
- | Mit dem RT können gekennzeichnete Zeilen in einer Navigation (NAV_LIST_UL) mit einem im Script angegebenen Inhalt ersetzt werden. die zu bearbeitende/n Zeile/n bzw. Kategorie/n wird durch einen definierten CLASS Eintrag in der Kategorie bestimmt. | + | With this RT you are able to replace identified rows in a navigation (NAV_LIST_UL) with specified content from the script. The cement lines or categories are determined by an entry in the field CLASS-defined in category. |
- | Dies ist z.B. hilfreich, wenn eine Leerzeile in einer vertikalen Navi gewünscht ist. | ||
- | Z.B. | + | This is for example useful when a blank line is required in a vertical navigation. |
+ | {{:deutsch:ersetzer_rts:frontend_render:navi_trenner-fe_1.gif|}} | ||
+ | |||
+ | Source: | ||
<code html> | <code html> | ||
<ul> | <ul> | ||
- | <li class="sub_parent"><a href="index.php?index" title="Home">Home</a></li> | + | <li class="sub_parent"> <a href="index.php?index" title="Home">Home</a></li> |
- | <li class="sub_no sub_first trenner">Leerzeile</li> | + | <li class="sub_no sub_first separator">Tzzz Tzzz</li> |
- | <li class="sub_no"><a href="index.php?category01" title="Category01">Category01</a></li> | + | <li class="sub_no"> <a href="index.php?category01" title="Category01">Category01 Lang</a></li> |
- | <li class="sub_no trenner">Leerzeile</li> | + | <li class="sub_no"> <a href="index.php?category02" title="Category02">Category02</a></li> |
- | <li class="sub_no"><a href="index.php?category02" title="Category02">Category02</a></li> | + | <li class="sub_no separator"> Tzzz Tzzz</li> |
+ | <li class="sub_no"> <a href="index.php?category03" title="Category03">Category03</a></li> | ||
+ | <li class="sub_no"> <a href="index.php?category04" title="Category04">Category04</a></li> | ||
</ul> | </ul> | ||
</code> | </code> | ||
Line 32: | Line 36: | ||
- | **Autor:** K.Heermann (flip-flop) http://planmatrix.de \\ | + | **Author:** K.Heermann (flip-flop) http://planmatrix.de \\ |
**CMS Version:** >= 1.47 \\ | **CMS Version:** >= 1.47 \\ | ||
**Version:** V1.0 \\ | **Version:** V1.0 \\ | ||
Line 38: | Line 42: | ||
- | Tag: -- \\ | + | TAG: -- \\ |
- | Dateiname: **rt_nav_link_replace.php** | + | filename: **rt_nav_link_replace.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 54: | Line 58: | ||
\\ | \\ | ||
- | ===== Beschreibung ===== | + | ===== Description ===== |
- | Markieren der zu durchsuchenden NAVI im Template mit den Kennungen **%%<!--NAVI01_START/END-->%%** | + | Highlight the NAVI to search in the template with the identifiers **%%<!--NAVI01_START/END-->%%** |
<code html><!--NAVI01_START-->{NAV_LIST_UL:P,0....}<!--NAVI01_END--></code> | <code html><!--NAVI01_START-->{NAV_LIST_UL:P,0....}<!--NAVI01_END--></code> | ||
- | //(um die Laufzeit kurz zu halten)// | + | //(for short runtime)// |
- | In der **Seitenstruktur -> Kategorie** im Feld **CSS Klasse:** den Namen der Klasse eintragen, in diesem Beispiel: "trenner". | + | \\ |
+ | View **%%ADMIN -> Site structure%%** \\ | ||
- | Im Script unter %%--- CUSTOM ---%% die selbe Klasse eintragen, hier | + | {{:english:phpwcms_replacer_rts:frontend_render:navi_trenner-admin_en_1.gif|}} |
- | <code php>$class = 'trenner';</code> | + | |
- | Im Script unter %%--- CUSTOM ---%% die ersetzende Syntax eintragen, hier z.B.: | + | Insert in **%%Site structure -> category%%** in the field **CSS class:** the name of the class, in this example: "separator". \\ |
+ | //(The text in the "category title" is arbitrary and is merely for a better overview on the point ADMIN. The entry in "alias tihs category" also has no relevance, but may not be duplicated throughout the system.)// \\ | ||
+ | {{:english:phpwcms_replacer_rts:frontend_render:navi_trenner-category12.gif|}} | ||
+ | |||
+ | In Sript under %%--- CUSTOM ---%% enter the same class, in this case | ||
+ | <code php>$class = 'separator';</code> | ||
+ | |||
+ | \\ | ||
+ | In Script under %%--- CUSTOM ---%% enter the replacing syntax, in this case e.g.: | ||
<code php>$replacer = '<div style="width:80px;display:block;border:1px solid gray;color:gray">Tzzz Tzzz</div>';</code> | <code php>$replacer = '<div style="width:80px;display:block;border:1px solid gray;color:gray">Tzzz Tzzz</div>';</code> | ||
\\ | \\ | ||
- | Alles zwischen **%%<li class=".....$class">%%** und dem nächsten **%%</ li>%%** wird ersetzt durch die Zeichenfolge aus %%$replacer%%. | ||
+ | <note> | ||
+ | Everything between **%%<li class=".....$class">%%** and the next **%%</ li>%%** will be replaced by the string from the var %%$replacer%%. | ||
+ | </note> | ||
- | ==== Beispiel ==== | + | ==== Example ==== |
- | Aus dem Original: | + | From the original: |
<code html> | <code html> | ||
<!--NAVI01_START--> | <!--NAVI01_START--> | ||
<ul> | <ul> | ||
- | <li class="sub_parent"> <a href="index.php?index" title="Home">Home</a></li> | + | <li class="sub_parent"> <a href="index.php?index" title="Home">Home</a></li> |
- | <li class="sub_no sub_first trenner"><a href="index.php?trenner-1" title="#TRENNER#">#TRENNER#</a></li> | + | <li class="sub_no sub_first separator"><a href="index.php?trenner-1" title="--- separator">--- separator</a></li> |
- | <li class="sub_no"> <a href="index.php?category01" title="Category01 Lang">Category01 Lang</a></li> | + | <li class="sub_no"> <a href="index.php?category01" title="Category01 Lang">Category01 Lang</a></li> |
- | <li class="sub_no"> <a href="index.php?category02" title="Category02">Category02</a></li> | + | <li class="sub_no"> <a href="index.php?category02" title="Category02">Category02</a></li> |
- | <li class="sub_no trenner"> <a href="index.php?trenner-2" title="#TRENNER#">#TRENNER#</a></li> | + | <li class="sub_no separator"> <a href="index.php?trenner-2" title="--- separator">--- separator</a></li> |
- | <li class="sub_no"> <a href="index.php?category03" title="Category03">Category03</a></li> | + | <li class="sub_no"> <a href="index.php?category03" title="Category03">Category03</a></li> |
- | <li class="sub_no"> <a href="index.php?category04" title="Category04">Category04</a></li> | + | <li class="sub_no"> <a href="index.php?category04" title="Category04">Category04</a></li> |
</ul> | </ul> | ||
<!--NAVI01_END--> | <!--NAVI01_END--> | ||
Line 93: | Line 107: | ||
<code html> | <code html> | ||
<ul> | <ul> | ||
- | <li class="sub_parent"> <a href="index.php?index" title="Home">Home</a></li> | + | <li class="sub_parent"> <a href="index.php?index" title="Home">Home</a></li> |
- | <li class="sub_no sub_first trenner"><div style="border: 1px solid gray; width: 80px; display: block; color: gray;">Tzzz Tzzz</div></li> | + | <li class="sub_no sub_first separator"><div style="border: 1px solid gray; width: 80px; display: block; color: gray;">Tzzz Tzzz</div></li> |
- | <li class="sub_no"> <a href="index.php?category01" title="Category01 Lang">Category01 Lang</a></li> | + | <li class="sub_no"> <a href="index.php?category01" title="Category01 Lang">Category01 Lang</a></li> |
- | <li class="sub_no"> <a href="index.php?category02" title="Category02">Category02</a></li> | + | <li class="sub_no"> <a href="index.php?category02" title="Category02">Category02</a></li> |
- | <li class="sub_no trenner"> <div style="border: 1px solid gray; width: 80px; display: block; color: gray;">Tzzz Tzzz</div></li> | + | <li class="sub_no separator"> <div style="border: 1px solid gray; width: 80px; display: block; color: gray;">Tzzz Tzzz</div></li> |
- | <li class="sub_no"> <a href="index.php?category03" title="Category03">Category03</a></li> | + | <li class="sub_no"> <a href="index.php?category03" title="Category03">Category03</a></li> |
- | <li class="sub_no"> <a href="index.php?category04" title="Category04">Category04</a></li> | + | <li class="sub_no"> <a href="index.php?category04" title="Category04">Category04</a></li> |
</ul> | </ul> | ||
</code> | </code> | ||
Line 136: | Line 150: | ||
// ------ CUSTOM --------- | // ------ CUSTOM --------- | ||
- | $class = 'trenner'; | + | $class = 'separator'; |
$replacer = '<div style="width:80px;display:block;border:1px solid gray;color:gray">Tzzz Tzzz</div>'; | $replacer = '<div style="width:80px;display:block;border:1px solid gray;color:gray">Tzzz Tzzz</div>'; | ||