Antwort #26 am: 09. Juni 2015, 10:24:13
Habe wie von web28 beschrieben folgendes geändert bzw. hinzugefügt.
/templates/MEINTEMPLATE/source/boxes/categories.php
Ab Zeile 56 geändert von:
$categories_query = "select c.categories_id,
cd.categories_name,
c.parent_id from ".TABLE_CATEGOR
zu:
$categories_query = "select c.categories_id,
cd.categories_name,
cd.categories_heading_title,
c.parent_id from ".TABLE_CATEGOR
Zeile 69 geändert von:
$foo[$categories['categories_id']] = array ('name' => $categories['categories_name'], 'parent' zu:
$foo[$categories['categories_id']] = array ('name' => $categories['categories_name'], 'title' => $categories['categories_heading_title'], 'parent' Zeile 90 von:
$categories_query = "select c.categories_id, cd.categories_name, c.parent_id from
zu:
$categories_query = "select c.categories_id, cd.categories_name, cd.categories_heading_title, c.parent_id from
Zeile 96:
$foo[$row['categories_id']] = array ('name' => $row['categories_name'], 'parent' zu:
$foo[$row['categories_id']] = array ('name' => $row['categories_name'], 'title' => $row['categories_heading_title'], 'parent' geändert.
Nun habe ich in der Datei: /templates/MEINTEMPLATE/source/inc/xtc_show_category.inc.php
versucht, die if-Abfrage umzusetzen, leider ohne Erfolg:
Aus der Zeile 59:
$categories_string .= '<a href="'.xtc_href_link(FILENAME_DEFAULT, $cPath_new).'" title="'. $foo[$counter]['name'] . '">';
habe ich folgendes gemacht:
$categories_string .= '<a href="'.xtc_href_link(if ($foo[$counter]['title']) == 'URL-ZUM-ZIEL-HEADING-TITLE'){$categories_string .= 'URL-ZUM-ZIEL'; $categories_string .= '">NAME-DES-LINKS</a>';(FILENAME_DEFAULT, $cPath_new).'" title="'. $foo[$counter]['name'] . '">';