#1 (permalink)  
Alt 13.01.2006, 03:27
Benutzer
 
Registriert seit: 22.01.2005
Beiträge: 49
Standard

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:
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Wong this Post!
Mit Zitat antworten
Antwort

Lesezeichen

Stichworte
box, kategoriename

Themen-Optionen
Ansicht

Forumregeln
Es ist dir nicht erlaubt, neue Themen zu verfassen.
Es ist dir nicht erlaubt, auf Beiträge zu antworten.
Es ist dir nicht erlaubt, Anhänge hochzuladen.
Es ist dir nicht erlaubt, deine Beiträge zu bearbeiten.

BB-Code ist an.
Smileys sind an.
[IMG] Code ist an.
HTML-Code ist aus.
Trackbacks are aus
Pingbacks are aus
Refbacks are aus



Alle Zeitangaben in WEZ +1. Es ist jetzt 00:49 Uhr.

Copyright © 2011 xt:Commerce GmbH / xt:Commerce International Ltd. - All Rights Reserved

xt:Commerce is a SafeCharge brand