|
|||
|
Hallo Zusammen!
Habe das gesamte Forum schon auf den Kopf gestellt - ganz zu schweigen von meiner Stylesheet-Datei und meinen box.html's im Template. Folgendes Problem: Ich habe mir das Standart XTC2 Template vorgenommen und nach meinen Vorstellungen agepasst. Nun wollte ich die Links der Kategorien anpassen. Leider ohne Erfolg, denn die sind an den Standart "a:link" Tag gekoppelt. Daher wollte ich jetzt eine eigene Class f?r die Kategorie-Links in mein Stylesheet einbinden. Aber leider ohne Erfolg! Die Kategorien werden in dem Standart-Template ?ber .moduleRow und .moduleRowOver angesprochen. Aber eben leider nicht der Link selbst sondern nur die TD. Dann hab ich mir eine eigene class eingerichtet, aber die nimmt der Link in der Kategorie nicht an. :wall: Kann mir irgendwer bitte helfen - ich flipp bald aus!!! :144: Danke! Lando |
|
|||
|
Irgendwo in deiner "xtc_show_category.inc.php" findest du diesen Eintrag:
Code:
$categories_string .= ''.$img_I; $categories_string .= '<a href="'; Code:
$categories_string .= ''.$img_I; $categories_string .= '<a geilenavi href="'; Gru? |
|
|||
|
Hallo warp!!!
Danke f?r die schnelle Antwort! Leider finde ich diese Zeile bei mir nicht bzw. ich wei? nicht genau wo ich es einsetzen muss. Anbei mein Quellcode der besagten Datei. Kannst Du mir die Stelle bitte markieren? Code:
<?php /* ----------------------------------------------------------------------------------------- $Id: xtc_show_category.inc.php,v 1.2 2004/02/22 16:15:30 fanta2k Exp $ XT-Commerce - community made shopping http://www.xt-commerce.com Copyright (c) 2003 XT-Commerce ----------------------------------------------------------------------------------------- based on: (c) 2000-2001 The Exchange Project (earlier name of osCommerce) (c) 2002-2003 osCommerce(categories.php,v 1.23 2002/11/12); www.oscommerce.com (c) 2003 nextcommerce (xtc_show_category.inc.php,v 1.4 2003/08/13); www.nextcommerce.org Released under the GNU General Public License ---------------------------------------------------------------------------------------*/ 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">'; 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%"><tr><td class="moduleRow" onmouseover="rowOverEffect(this)" onmouseout="rowOutEffect(this)">'; } else { $categories_string .='</td></tr></table><table width="100%"><tr><td class="moduleRow" onmouseover="rowOverEffect(this)" onmouseout="rowOutEffect(this)">'; } // 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']); } } ?> |
|
|||
|
Hallo nochmal!
Also, ich hab meine class in den Link eingesetzt. Aber es funktioniert leider nicht! :wall: Ich habe alle M?glichkeiten durchgespielt. Hat jemand noch einen Tipp f?r mich??? Meine xtc_show_category.php schaut an der ge?nderten Stelle jetzt so aus.... Code:
$categories_string .= $img_1;
$categories_string .= '<a categories href="';
} else {
$categories_string .= '<a categories href="';
}
Danke Lando |
|
|||
|
Also hab dir doch die m?glichkeit schon Serviert....lesen muss man schon selber.
so stehts doch bei dir: // image for first level $categories_string .= $img_1; $categories_string .= '[b]<a href="'; //[img]templates/zanier/img/recht_small.gif[/img] } else { $categories_string .= '<a href="'; und dann f?gste dort einfach deine categorie ein... |
|
|||
|
Hallo warp!
Sorry, aber es bringt leider nicht das gew?nscht Ergebnis! Hattest ja Recht - lesen muss ich noch selber. Aber egal, was ich gemacht habe, der Style der Links in den Kategorien ?ndert sich nicht. Irgendwo is da wohl noch wo anders eine angabe die Eingreift.... Ich habe es so probiert: Code:
$categories_string .= $img_1;
$categories_string .= '<a categories href="';
} else {
$categories_string .= '<a categories href="';
}
Code:
$categories_string .= $img_1;
$categories_string .= '<a categories href="';
} else {
$categories_string .= '<a href="';
}
Code:
$categories_string .= $img_1;
$categories_string .= '<a href="';
} else {
$categories_string .= '<a categories href="';
}
Code:
a.categories:link {
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 12px;
color: #003399;
text-decoration: none;
font-weight: 700;
}
a.categories:hover {
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 12px;
color: #003399;
text-decoration: underline;
font-weight: 700;
}
Gru? Lando |
|
|||
|
Zitat:
s.y. tamara |
![]() |
| Lesezeichen |
| Stichworte |
| anpassen, kategorien, links |
| Themen-Optionen | |
| Ansicht | |
|
|