#1 (permalink)  
Alt 03.02.2006, 20:51
Neuer Benutzer
 
Registriert seit: 07.08.2005
Beiträge: 16
Standard

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 .= '&raquo;';
  }

  // 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']);
  }
 }
?>
mit diesem code werden haupt- und unterkategorien in einer linie links ausgerichtet -> un?bersichtlich!

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 .= "";

  }
dabei hats mir aber das layout zerlegt... gibts noch ne andere m?glichkeit. wie bekomm ich den code richtig in meine xtc_show_category.inc.php.

vielen dank im vorraus

blackshadow
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Wong this Post!
Mit Zitat antworten
  #2 (permalink)  
Alt 10.02.2006, 19:42
Neuer Benutzer
 
Registriert seit: 07.08.2005
Beiträge: 16
Standard

keiner eine idee??

:sad:
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Wong this Post!
Mit Zitat antworten
  #3 (permalink)  
Alt 10.02.2006, 21:38
Benutzerbild von -=TigerX=-
Benutzer
 
Registriert seit: 09.11.2005
Beiträge: 61
Standard

Genau danach suche ich auch, ist ganz wichtig. Bitte kann jemand hier weiterhelfen, ich habe schon mehrmals in verschiedenen Threads dieses Thema erw?hnt, aber keiner konnte helfen :-(. MfG TX
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Wong this Post!
Mit Zitat antworten
  #4 (permalink)  
Alt 11.02.2006, 08:15
Benutzerbild von dukie6666
VEYTON Service Partner
 
Registriert seit: 26.01.2004
Ort: Nueva Colombia/Paraguay
Beiträge: 1.855
Standard

baut die datei so um, das die links in tabellenzellen liegen und ihr habt das problem nicht mehr, bzw k?nnt sauber formatieren
__________________
Grüße Oliver


Zertifizierter xt:Commerce VEYTON Reseller & Service Partner
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Wong this Post!
Mit Zitat antworten
  #5 (permalink)  
Alt 11.02.2006, 08:59
Benutzerbild von satzone
Erfahrener Benutzer
 
Registriert seit: 01.11.2003
Ort: Schweiz
Beiträge: 1.469
Standard

Wie sieht es damit aus??

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" alt="" />';

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

   if ($foo[$counter]['level']=='1') {
   $categories_string .= "-";
   }

   $categories_string .= "";

  }
  if ($foo[$counter]['level']=='') {
  if (strlen($categories_string)=='0') {
  $categories_string .='<table width="100%" cellspacing="0" cellpadding="0"><tr><td>';
  } else {
  $categories_string .='</td></tr></table><table width="100%" cellspacing="0" cellpadding="0"><tr><td>';
  }

  $categories_string .= ''.$img_1;
  $categories_string .= '<a href="';
  } else {
  $categories_string .= '<a href="';
  }

  $cPath_new=xtc_category_link($counter,$foo[$counter]['name']);

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

?>
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Wong this Post!
Mit Zitat antworten
  #6 (permalink)  
Alt 16.02.2006, 18:48
Neuer Benutzer
 
Registriert seit: 07.08.2005
Beiträge: 16
Standard

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

Lesezeichen

Stichworte
einrcken, 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 08:52 Uhr.

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

xt:Commerce is a SafeCharge brand