Attribute Lerrzeile / Überschriften

Hab es bereits gelöst:

Wenn ein Attribut den Wert * hat, wird eine leere Zeile über dem Attribut eingefügt, der Attribut-title wird größer und farbig dargestellt (via css) und aus dem * wird ein Leerzeichen gemacht…

So schaut der Code in der page/details/inc/attributes.tpl aus:


<table class="attributes">
    [{foreach from=$oView->getAttributes() item=oAttr name=attribute}]

    [{if $oAttr->value == '*' }]
    		<tr>
			<th> </th>
			<td> </td>
    		</tr>
    		<tr>
        		<th id="attrTitle_[{$smarty.foreach.attribute.iteration}]"><div class="thueb">[{$oAttr->title}]</div></th>
        		<td id="attrValue_[{$smarty.foreach.attribute.iteration}]"> </td>
    		</tr>

	[{else}]

		<tr>
        		<th id="attrTitle_[{$smarty.foreach.attribute.iteration}]"><strong>[{$oAttr->title}]</strong></th>
        		<td id="attrValue_[{$smarty.foreach.attribute.iteration}]">[{$oAttr->value}]</td>
    		</tr>
	[{/if}]
     [{/foreach}]
</table>