|
|||
|
hallo zusammen,
hab grade das forum durchsucht - konnt aber keine funktionierende l?sung finden. das mit dem einr?cken geht ja in dieser datei - hab ich schon mal herausgefuden: xtc_show_category.inc.php -> Code:
function xtc_show_category($counter) {
global $foo, $categories_string, $id;
for ($a=0; $a<$foo[$counter]['level']; $a++) {
$categories_string .= "";
}
$categories_string .= '<table style="border-bottom-width: 1px;border-bottom-style: dashed;border-bottom-color: #ffffff;" width="100%" cellspacing="0" cellpadding="0"><tr class="moduleRow" onmouseover="rowOverEffect(this)" onmouseout="rowOutEffect(this)"><td class="boxtextweiss"><a href="';
if ($foo[$counter]['parent'] == 0) {
$cPath_new = 'cPath=' . $counter;
} else {
$cPath_new = 'cPath=' . $foo[$counter]['path'];
}
$categories_string .= xtc_href_link(FILENAME_DEFAULT, $cPath_new);
$categories_string .= '">';
if ( ($id) && (in_array($counter, $id)) ) {
$categories_string .= '»';
}
// display category name
$categories_string .= $foo[$counter]['name'];
if ( ($id) && (in_array($counter, $id)) ) {
$categories_string .= '</b>';
}
if (xtc_has_category_subcategories($counter)) {
$categories_string .= '->';
}
$categories_string .= '</a>';
if (SHOW_COUNTS == 'true') {
$products_in_category = xtc_count_products_in_category($counter);
if ($products_in_category > 0) {
$categories_string .= '(' . $products_in_category . ')';
}
}
$categories_string .= '</td></tr></table></b>';
if ($foo[$counter]['next_id']) {
xtc_show_category($foo[$counter]['next_id']);
}
}
?>
wie bekomm ich jetzt die unterkategorien einger?ckt? hatte schon mal das probiert - bzw. mit der original-datei von xtc-standard-template: Code:
if ($foo[$counter]['level']=='1') {
$categories_string .= "-";
}
$categories_string .= "";
}
vielen dank im vorraus blackshadow |
|
|||
|
hallo satzone,
danke f?r deine m?he - leider funktioniert es nicht wie erhofft. es wird, bei mir, in zeile 47 gemeckert. es konnte das "xtc_category_link" als funktion nicht verarbeitet werden. habe probehalber das category durch href getauscht - die seite baut sich dann zwar auf doch men?punkt funktioniert dann keiner mehr... bin f?r jeden tip dankbar. viele gr??e. |
![]() |
| Lesezeichen |
| Stichworte |
| einrcken, unterkategorien |
| Themen-Optionen | |
| Ansicht | |
|
|