NAVIGATION
This shows you the differences between two versions of the page.
|
english:phpwcms_replacer_rts:frontend_render:xbrowse-next-prev-up [2010/07/09 17:29] Knut Heermann (flip-flop) |
english:phpwcms_replacer_rts:frontend_render:xbrowse-next-prev-up [2018/06/03 18:09] (current) |
||
|---|---|---|---|
| Line 3: | Line 3: | ||
| ====== {XBROWSE:NEXT/PREV/UP:LinkText:X} ====== | ====== {XBROWSE:NEXT/PREV/UP:LinkText:X} ====== | ||
| - | An extended [[http://www.phpwcms-docu.de/navigation_tags.phtml|(BROWSE :....}]] tag, which can output optional link text as the article title/subtitle or category title. In the Product List mode, a loop is adjustable, which braches in PREV from the first to the last and in NEXT from the last to the first article. The familiar settings from the tag [[http://www.phpwcms-docu.de/navigation_tags.phtml|{BROWSE:....}]] can be used. | + | An extended [[http://www.phpwcms-docu.de/navigation_tags.phtml|(BROWSE :....}]] tag, which can produce optional link texts like the article title/subtitle or category title. In the Product List mode, a loop is adjustable, which branches in PREV from the first to the last and in NEXT from the last to the first article. The familiar settings of the tag [[http://www.phpwcms-docu.de/navigation_tags.phtml|{BROWSE:....}]] can be used. |
| + | \\ | ||
| + | |||
| + | You can adjust it in the script: | ||
| + | * An alternate text for the case that there is no link | ||
| + | * the maximum number of characters for the link text | ||
| + | * trailing char/string when maximum number of characters is exceeded | ||
| + | * Prefix/suffix if no link has been generated //(E.g. in mode :0)//. | ||
| + | |||
| + | |||
| + | It is automatically generating CSS classes for the states "no link", "first link" in PREV if the first link is left out, the "last link" in NEXT if if the last link is left out, if it is linked to a category. | ||
| + | |||
| + | <note important>This TAG replaces the TAG [[english/phpwcms_replacer_rts/frontend_render/xbrowse-up]]. //(Please do not use both at the same time in parallel).// </note> | ||
| + | |||
| + | \\ | ||
| ===== Description: ===== | ===== Description: ===== | ||
| Line 18: | Line 32: | ||
| - | **{XBROWSE:PREV:LinkText:2}** oder z.B. \\ **{XBROWSE:PREV:<< | <<:2}** oder **{XBROWSE:PREV:<< || <<:2}** oder **{XBROWSE:PREV:<< | || <<:2}** \\ | + | **{XBROWSE:PREV:LinkText:2}** or e.g. \\ **{XBROWSE:PREV:<< | <<:2}** or **{XBROWSE:PREV:<< || <<:2}** or **{XBROWSE:PREV:<< | || <<:2}** \\ |
| * **LinkText** = freely definable link text | * **LinkText** = freely definable link text | ||
| * **|** = Placeholder for the article title in freely definable link text | * **|** = Placeholder for the article title in freely definable link text | ||
| Line 27: | Line 41: | ||
| \\ | \\ | ||
| + | |||
| + | ==== Parameter in the script: ==== | ||
| + | |||
| + | <code php> | ||
| + | // ************ CUSTOM VAR *********************************************** | ||
| + | |||
| + | $up_no_linktext = '--'; // +KH: if no link is available | ||
| + | $up_max_char_count = 30; // +KH: max chars in link text | ||
| + | $up_max_char_affix = '…'; // +KH: affix if > max_char_count | ||
| + | $up_prefix_no_link = '<span class="xbrowse-unolink">'; | ||
| + | $up_sufix_no_link = '</span>'; | ||
| + | |||
| + | $next_no_linktext = '--'; // +KH: if no link is available | ||
| + | $next_max_char_count = 30; // +KH: max chars in link text | ||
| + | $next_max_char_affix = '…'; // +KH: affix if > max_char_count | ||
| + | $next_prefix_no_link = '<span class="xbrowse-nnolink">'; | ||
| + | $next_sufix_no_link = '</span>'; | ||
| + | |||
| + | $prev_no_linktext = '--'; // +KH: if no link is available | ||
| + | $prev_max_char_count = 30; // +KH: max chars in link text | ||
| + | $prev_max_char_affix = '…'; // +KH: affix if > max_char_count | ||
| + | $prev_prefix_no_link = '<span class="xbrowse-pnolink">'; | ||
| + | $prev_sufix_no_link = '</span>'; | ||
| + | |||
| + | // ************ END CUSTOM VAR ******************************************* | ||
| + | </code> | ||
| + | |||
| + | \\ | ||
| + | |||
| + | ====== ====== | ||
| + | |||