Warning: is_executable(): open_basedir restriction in effect. File(/bin/bash) is not within the allowed path(s): (/var/www/clients/client1/web4/web:/var/www/clients/client1/web4/tmp:/var/www/modified-shop.org/web:/srv/www/modified-shop.org/web:/usr/share/php5:/tmp:/usr/share/phpmyadmin:/etc/phpmyadmin:/var/lib/phpmyadmin) in /var/www/clients/client1/web4/web/xtcmodified/main/mediawiki/includes/shell/Command.php on line 312

Warning: is_executable(): open_basedir restriction in effect. File(/bin/bash) is not within the allowed path(s): (/var/www/clients/client1/web4/web:/var/www/clients/client1/web4/tmp:/var/www/modified-shop.org/web:/srv/www/modified-shop.org/web:/usr/share/php5:/tmp:/usr/share/phpmyadmin:/etc/phpmyadmin:/var/lib/phpmyadmin) in /var/www/clients/client1/web4/web/xtcmodified/main/mediawiki/includes/shell/Command.php on line 312

Warning: is_executable(): open_basedir restriction in effect. File(/bin/bash) is not within the allowed path(s): (/var/www/clients/client1/web4/web:/var/www/clients/client1/web4/tmp:/var/www/modified-shop.org/web:/srv/www/modified-shop.org/web:/usr/share/php5:/tmp:/usr/share/phpmyadmin:/etc/phpmyadmin:/var/lib/phpmyadmin) in /var/www/clients/client1/web4/web/xtcmodified/main/mediawiki/includes/shell/Command.php on line 312

Warning: is_executable(): open_basedir restriction in effect. File(/bin/bash) is not within the allowed path(s): (/var/www/clients/client1/web4/web:/var/www/clients/client1/web4/tmp:/var/www/modified-shop.org/web:/srv/www/modified-shop.org/web:/usr/share/php5:/tmp:/usr/share/phpmyadmin:/etc/phpmyadmin:/var/lib/phpmyadmin) in /var/www/clients/client1/web4/web/xtcmodified/main/mediawiki/includes/shell/Command.php on line 312

Warning: is_executable(): open_basedir restriction in effect. File(/bin/bash) is not within the allowed path(s): (/var/www/clients/client1/web4/web:/var/www/clients/client1/web4/tmp:/var/www/modified-shop.org/web:/srv/www/modified-shop.org/web:/usr/share/php5:/tmp:/usr/share/phpmyadmin:/etc/phpmyadmin:/var/lib/phpmyadmin) in /var/www/clients/client1/web4/web/xtcmodified/main/mediawiki/includes/shell/Command.php on line 312

Warning: is_executable(): open_basedir restriction in effect. File(/bin/bash) is not within the allowed path(s): (/var/www/clients/client1/web4/web:/var/www/clients/client1/web4/tmp:/var/www/modified-shop.org/web:/srv/www/modified-shop.org/web:/usr/share/php5:/tmp:/usr/share/phpmyadmin:/etc/phpmyadmin:/var/lib/phpmyadmin) in /var/www/clients/client1/web4/web/xtcmodified/main/mediawiki/includes/shell/Command.php on line 312

Warning: is_executable(): open_basedir restriction in effect. File(/bin/bash) is not within the allowed path(s): (/var/www/clients/client1/web4/web:/var/www/clients/client1/web4/tmp:/var/www/modified-shop.org/web:/srv/www/modified-shop.org/web:/usr/share/php5:/tmp:/usr/share/phpmyadmin:/etc/phpmyadmin:/var/lib/phpmyadmin) in /var/www/clients/client1/web4/web/xtcmodified/main/mediawiki/includes/shell/Command.php on line 312

Warning: is_executable(): open_basedir restriction in effect. File(/bin/bash) is not within the allowed path(s): (/var/www/clients/client1/web4/web:/var/www/clients/client1/web4/tmp:/var/www/modified-shop.org/web:/srv/www/modified-shop.org/web:/usr/share/php5:/tmp:/usr/share/phpmyadmin:/etc/phpmyadmin:/var/lib/phpmyadmin) in /var/www/clients/client1/web4/web/xtcmodified/main/mediawiki/includes/shell/Command.php on line 312

Warning: is_executable(): open_basedir restriction in effect. File(/bin/bash) is not within the allowed path(s): (/var/www/clients/client1/web4/web:/var/www/clients/client1/web4/tmp:/var/www/modified-shop.org/web:/srv/www/modified-shop.org/web:/usr/share/php5:/tmp:/usr/share/phpmyadmin:/etc/phpmyadmin:/var/lib/phpmyadmin) in /var/www/clients/client1/web4/web/xtcmodified/main/mediawiki/includes/shell/Command.php on line 312
Eigene Links auf Kategorien verlinken – Wiki | modified eCommerce Shopsoftware

Eigene Links auf Kategorien verlinken

Aus Wiki | modified eCommerce Shopsoftware

Ab der Version 2.0 müssen Verlinkungen anders eingebaut werden.

Tomcraft hat dazu eine Anleitung geschrieben, die hier im Wiki auch richtig aufgehoben ist:

Zitat von: Tomcraft am 09. Februar 2014, 16:04:54

Eine schöne Möglichkeit ohne die {php} Tags liefert Smarty selbst:

Für Content-Seiten:

<a href="{'shop_content.php'|xtc_href_link:'coID=123'}">Content-Link-Name</a>

bzw.:

<a href="{$smarty.const.FILENAME_CONTENT|xtc_href_link:'coID=123'}">Content-Link-Name</a>

Für Kategorie-Seiten:

<a href="{'index.php'|xtc_href_link:'cPath=123'}">Kategorie-Link-Name</a>

bzw.:

<a href="{$smarty.const.FILENAME_DEFAULT|xtc_href_link:'cPath=123'}">Kategorie-Link-Name</a>

Für Produkt-Seiten:

<a href="{'product_info.php'|xtc_href_link:'products_id=123'}">Produkt-Link-Name</a>

bzw.:

<a href="{$smarty.const.FILENAME_PRODUCT_INFO|xtc_href_link:'products_id=123'}">Produkt-Link-Name</a>

Gültig bis Version 1.06

Wenn man z.B. eine grafische Navigation erstellen möchte, ist es wichtig korrekt zu verlinken. In diesem Beispiel verlinken wir Kategorien mit Grafiken.

(Dieses Beispiel setzt Suchmaschinenfreundliche URLs voraus!)

Öffne die Datei /templates/DeinTemplate/index.html

Dort an gewünschter Stelle die neuen Links einsetzen. z.B.

     <div id="navigation">
       <ul>
        <li><a id="navigation1" href="{php}echo xtc_href_link(FILENAME_DEFAULT, '?cPath=123', 'NONSSL');{/php}">Kategorie1</a></li>
        <li><a id="navigation2" href="{php}echo xtc_href_link(FILENAME_DEFAULT, '?cPath=124', 'NONSSL');{/php}">Kategorie2</a></li>
        <li><a id="navigation3" href="{php}echo xtc_href_link(FILENAME_DEFAULT, '?cPath=125', 'NONSSL');{/php}">Kategorie3</a></li>
        <li><a id="navigation4" href="{php}echo xtc_href_link(FILENAME_DEFAULT, '?cPath=126', 'NONSSL');{/php}">Kategorie4</a></li>
        <li><a id="navigation5" href="{php}echo xtc_href_link(FILENAME_DEFAULT, '?cPath=127', 'NONSSL');{/php}">Kategorie5</a></li>
      </ul>
    </div>

Die korrekte Verlinkung auf die jeweiligen Kategorien lautet also

<a href="{php}echo xtc_href_link(FILENAME_DEFAULT, '?cPath=Deine-Kategorie-ID', 'NONSSL');{/php}">Kategorie1</a>

Die Kategorie ID findest du heraus, in dem du in der Adresszeile deines Browsers bei aktiver Kategorie die Nummer abliest

http://www.Deine-Domain.de/Kategorie1:::123.html

In diesem Fall ist also die 123 die korrekte Kategorie-ID

Gruß Sick

  • Diese Seite wurde zuletzt am 3. März 2018 um 20:56 Uhr bearbeitet.