Changes between Initial Version and Version 1 of Ticket #628, comment 3


Ignore:
Timestamp:
Aug 28, 2015, 12:22:05 AM (10 years ago)
Author:
Torsten Riemer

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #628, comment 3

    initial v1  
    33Die meiste Verwendung wird wohl folgendes finden:
    44
    5   Eine schöne Möglichkeit ohne die {php} Tags liefert Smarty selbst:
    6 
    7   Für Content-Seiten:
    8   {{{
    9   <a href="{'shop_content.php'|xtc_href_link:'coID=123'}">Content-Link-Name</a>
    10   }}}
    11   bzw.:
    12   {{{
    13   <a href="{$smarty.const.FILENAME_CONTENT|xtc_href_link:'coID=123'}">Content-Link-Name</a>
    14   }}}
    15   Für Kategorie-Seiten:
    16   {{{
    17   <a href="{'index.php'|xtc_href_link:'cPath=123'}">Kategorie-Link-Name</a>
    18   }}}
    19   bzw.:
    20   {{{
    21   <a href="{$smarty.const.FILENAME_DEFAULT|xtc_href_link:'cPath=123'}">Kategorie-Link-Name</a>
    22   }}}
    23   Für Produkt-Seiten:
    24   {{{
    25   <a href="{'product_info.php'|xtc_href_link:'products_id=123'}">Produkt-Link-Name</a>
    26   }}}
    27   bzw.:
    28   {{{
    29   <a href="{$smarty.const.FILENAME_PRODUCT_INFO|xtc_href_link:'products_id=123'}">Produkt-Link-Name</a>
    30   }}}
     5> Eine schöne Möglichkeit ohne die {php} Tags liefert Smarty selbst:
     6>
     7> Für Content-Seiten:
     8> {{{
     9> <a href="{'shop_content.php'|xtc_href_link:'coID=123'}">Content-Link-Name</a>
     10> }}}
     11> bzw.:
     12> {{{
     13> <a href="{$smarty.const.FILENAME_CONTENT|xtc_href_link:'coID=123'}">Content-Link-Name</a>
     14> }}}
     15> Für Kategorie-Seiten:
     16> {{{
     17> <a href="{'index.php'|xtc_href_link:'cPath=123'}">Kategorie-Link-Name</a>
     18> }}}
     19> bzw.:
     20> {{{
     21> <a href="{$smarty.const.FILENAME_DEFAULT|xtc_href_link:'cPath=123'}">Kategorie-Link-Name</a>
     22> }}}
     23> Für Produkt-Seiten:
     24> {{{
     25> <a href="{'product_info.php'|xtc_href_link:'products_id=123'}">Produkt-Link-Name</a>
     26> }}}
     27> bzw.:
     28> {{{
     29> <a href="{$smarty.const.FILENAME_PRODUCT_INFO|xtc_href_link:'products_id=123'}">Produkt-Link-Name</a>
     30> }}}
    3131
    3232Quelle: [http://www.modified-shop.org/forum/index.php?topic=5224.msg264882#msg264882 Links? Links! Wie richtig im Content Manager anlegen?]