#1 (permalink)  
Alt 09.04.2006, 17:31
 
Registriert seit: 21.08.2005
Beiträge: 41
Standard

Hallo,
Meine Unterkategorien sehen leider wie die Hauptkategorien aus, sie sind kaum davon zu unterscheiden. Ich m?chte die Unterkategorien praktisch nach rechts ausrichten, in welcher Datei muss ich das vornehmen?
Frank
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Wong this Post!
Mit Zitat antworten
  #2 (permalink)  
Alt 10.04.2006, 15:07
 
Registriert seit: 15.12.2005
Beiträge: 300
Standard

templates/deintemplate/source/inc/xtc_show_category.inc.php

allerdings habe ich mir die z?hne dabei ausgebissen.
du kannst die mal testen.
denk an die image-pfade oder bezeichnungen. je nach template k?nnen die unterschiedlich sein.
ich habe die unterkategorien in eine eigene tabelle gepackt, damit lange namen nicht nach links umgebrochen werden.
Code:
   function xtc_show_category($counter) {
  global $foo, $categories_string, $id;


  // image for first level

  $img_1='<img src="templates/'.CURRENT_TEMPLATE.'/img/icon_arrow.jpg"></td><td width="100%" >';

  for ($a=0; $a<$foo[$counter]['level']; $a++) {

   if ($foo[$counter]['level']=='1') {
   $categories_string .= '<tr><td valign="top"><font color="#CC0000"><b>•</b></font></td><td>';
   }

   $categories_string .= "";

  }
  if ($foo[$counter]['level']=='') {
  if (strlen($categories_string)=='0') {
  $categories_string .='<table border="0" width="100%" class="moduleRow" onmouseover="rowOverEffect(this)" onmouseout="rowOutEffect(this)"><tr><td valign="top">';
  } else {
  $categories_string .='</td></tr></table><table border="0" width="100%" class="moduleRow" onmouseover="rowOverEffect(this)" onmouseout="rowOutEffect(this)"><tr><td valign="top">';
  }

  // image for first level

  $categories_string .= $img_1;
  $categories_string .= '<b><a href="';
  //<img src="templates/zanier/img/recht_small.gif">
  } else {
  $categories_string .= '<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 .= '<b>';
  }

  // 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 .= '';
  }
  if ($foo[$counter]['level']=='') {
  $categories_string .= '</a></b>';
  } else {
  $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 .= '<br>';

  if ($foo[$counter]['next_id']) {
   xtc_show_category($foo[$counter]['next_id']);
  }
 }

?>
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Wong this Post!
Mit Zitat antworten
Antwort

Lesezeichen

Stichworte
kaum, rest, trennen, unterkategorien

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 01:44 Uhr.

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

xt:Commerce is a SafeCharge brand