Jump to content
xt:Commerce Community Forum

unterkategorien


MarcusNRG

Recommended Posts

Hi,

dann versuch mal das und ersetze Deine category_listing.html damit:


{config_load file="$language/lang_$language.conf" section="categorie_listing"}

<table width="100%" border="0" cellpadding="0" cellspacing="0">
<tr valign="top">
<td class="main">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr valign="top">
<td class="contentsTopics">{$CATEGORIES_NAME}</td>
<td align="right">{if $CATEGORIES_IMAGE}<img src="{$CATEGORIES_IMAGE}" alt="{$CATEGORIES_IMAGE}" />{/if}</td>
</tr>
<tr valign="top">
<td class="contentsTopics">{$CATEGORIES_HEADING_TITLE}</td>
<td align="right"></td>
</tr>
</table>

{if $CATEGORIES_DESCRIPTION}
{$CATEGORIES_DESCRIPTION}
<br />
<br />
{/if}

{if $module_content !=''} <strong>{#heading_more_categories#}</strong>
<br />

<table style="border-top: 2px solid; border-color: #d4d4d4;" width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
{foreach name=aussen item=module_data from=$module_content}
{php}
$col++;
{/php}
<td class="main">
<table width="100%" border="0" cellpadding="0" cellspacing="4">
<tr>
<td align="left" >
{if $module_data.CATEGORIES_IMAGE}<a href="{$module_data.CATEGORIES_LINK}"><img src="{$module_data.CATEGORIES_IMAGE}" alt="{$module_data.CATEGORIES_NAME}" /></a>
{/if}
</td>
</tr>
<tr>
<td align="center" ><strong><a href="{$module_data.CATEGORIES_LINK}">{$module_data.CATEGORIES_NAME}</a></strong></td>
</tr>
</table>
</td>
{php}
if ($col>=1) {
$col=0;
echo '</tr><tr>';
}
{/php}

{/foreach}
</tr>
</table>
{/if}
<br />
</td>
<td class="main"> </td>
</tr>
</table>
<br />
[/HTML]

oder ändere in dieser Datei (Deiner category_listing.html) einfach das:

[PHP]
if ($col>=3) {
[/PHP]

in das ab:

[PHP]
if ($col>=1) {
[/PHP]

Damit kommen die Kagegorien nur in einer Spalte :D

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
  • Create New...