Hallo
Ich habe vor auf der index seite die aktuelle kategorie angezeigt zu bekommen. Dazu habe ich eine neue box namens {$box_CATEGORIES2} erstellt und in die box den befehl {$CATEGORIES_NAME} eingef?gt.
Nun habe ich aus der category_listing.php folgende zeilen in die categories2.php kopiert:
Code:
<?php
$module_smarty= new Smarty;
$module_smarty->assign('tpl_path','templates/'.CURRENT_TEMPLATE.'/');
$result=true;
$category_query = xtc_db_query("select
cd.categories_name,
c.listing_template,
c.categories_image from " .
TABLE_CATEGORIES . " c, " .
TABLE_CATEGORIES_DESCRIPTION . " cd
where c.categories_id = '" . $current_category_id . "'
and cd.categories_id = '" . $current_category_id . "'
".$group_check."
and cd.language_id = '" . $_SESSION['languages_id'] . "'");
$category = xtc_db_fetch_array($category_query);
$module_smarty->assign('CATEGORIES_NAME',$category['categories_name']);
$module= $module_smarty->fetch(CURRENT_TEMPLATE.'/module/product_listing/'.$category['listing_template'],$cache_id);
$smarty->assign('main_content',$module);
$box_categories2= $box_smarty->fetch(CURRENT_TEMPLATE.'/boxes/box_categories2.html');
$box_categories2= $box_smarty->fetch(CURRENT_TEMPLATE.'/boxes/box_categories2.html',$cache_id);
$smarty->assign('box_CATEGORIES2',$box_categories2);
?>
Ich bekomme aber leider nix angezeigt. welche zeilen muss ich noch einf?gen? :wub: