ok, habs schon
TODO:
1. Vorlage für Artikelübersicht als Auswahlfeld in Adminbereich einfügen
Datei: admin/includes/modules/new_category.php
Zeile: unter 118 einfügen
Code:
<tr>
<?php
$files=array();
if ($dir= opendir(DIR_FS_CATALOG.'templates/'.CURRENT_TEMPLATE.'/module/product_listing/')){
while (($file = readdir($dir)) !==false) {
if(is_file( DIR_FS_CATALOG.'templates/'.CURRENT_TEMPLATE.'/module/product_listing/'.$file) and ($file !="index.html")){
$files[] = array('id' => $file, 'text' => $file);
}
}
closedir($dir);
}
$default_array = array();
if ($content['content_file']=='') {
$default_array[] = array('id' => 'default','text' => TEXT_SELECT);
$default_value = $cInfo->listing_template;
$files = array_merge($default_array,$files);
} else {
$default_array[] = array('id' => 'default','text' => TEXT_NO_FILE);
$default_value = $cInfo->listing_template;
$files = array_merge($default_array,$files);
} ?>
<td class="main"><?php echo TEXT_CHOOSE_INFO_TEMPLATE_LISTING ?></td>
<td class="main"><?php echo xtc_draw_pull_down_menu('listing_template',$files,$default_value) ?></td>
</tr>
2. Hardcode (
), der die aktuelle fixe Vorlage bestimmt, ändern
Datei: includes/modules/product_listing.php
Zeile: 131 überschreiben oder auskommentieren und darunter einfügen
Code:
$module = $module_smarty->fetch(CURRENT_TEMPLATE.'/module/product_listing/'.$category['listing_template']);
Zeile: 139 überschreiben oder auskommentieren und darunter einfügen
Code:
$module = $module_smarty->fetch(CURRENT_TEMPLATE.'/module/product_listing/'.$category['listing_template'], $cache_id);
3. product_listing Ordner für Vorlagen anlegen
templates/dein-template/module/product_listing
4. aktuelle Vorlage (templates/dein-template/module/product_listings.html) in den Ordner verschieben
Lesezeichen