I've finaly been able to get my description to show.
Except that it will only show the default language.
Here's my working code with the default language
Code:
{foreach from=$subcategories item=subcat}
<tr>
<TD width="70" align="center" valign="top" bgcolor="#FFFFFF" style="padding:3px 3px 5px 3px">[img]{$xcart_web_dir}/icon.php?categoryid={ $subcat.categoryid }[/img] </td>
<td valign="top" style="padding:10px 3px 5px 3px" bgcolor="#E6E7DB"><A href="home.php?cat={ $subcat.categoryid }"><FONT class="ProductTitle">
{$subcat.category|escape }
</FONT></A>
<div class="Productlist">
/******* description here******/
{$subcat.description|regex_replace:"/[\n]/":"
"}
{if $config.Appearance.count_products eq "Y"}
{if $subcat.product_count}{ $subcat.product_count } {$lng.lbl_products|lower}
{elseif $subcat.subcategory_count > 1}
{$subcat.subcategory_count }
{$lng.lbl_categories|lower}
{else}
{ $subcat.subcategory_count }
{$lng.lbl_categorie|lower}
{/if}
{/if}
</div></TD>
</TR>
<tr>
<td bgcolor="#ffffff"></td>
<td bgcolor="#B8BC97">[img]{$ImagesDir}/spacer.gif[/img]</td>
</tr>
<tr>
<td bgcolor="#ffffff" ></td>
<td align="right" bgcolor="#E6E7DB"><table border="0" cellspacing="0" cellpadding="0">
<tr>
<td>
[img]{$ImagesDir}/plus_details.gif[/img]</td>
<td background="{$ImagesDir}/pix_plus.gif">
{$lng.lbl_see_details}</td>
<td>[img]{$ImagesDir}/right_plus.gif[/img]</td>
</tr>
</table></td>
</tr>
<tr>
<td bgcolor="#B8BC97" colspan="2">[img]{$ImagesDir}/spacer.gif[/img]</td>
</tr>
{/foreach}
What do I have to change to get the description to show in all the language?
I've tried with no success
Code:
{$subcat.lng.description|regex_replace:"/[\n]/":"
"}
Code:
{$lng.subcat.description|regex_replace:"/[\n]/":"
"}
Is there something else I have to modify in categories.php?
Martin