Quantcast
Channel: OXID Community Forum
Viewing all articles
Browse latest Browse all 6951

Attribute intern verlinken

$
0
0
Hallo zusammen,

möchte verschiedene Attribute verlinken und habe die attributes.tpl bereits wie folgt abgteändert:

HTML Code:

<table class="attributes">
    [{foreach from=$oView->getAttributes() item=oAttr name=attribute}]
        [{if $oAttr->title == "Kategorie"}]       
            <tr>
                <th id="attrTitle_[{$smarty.foreach.attribute.iteration}]"><strong>[{$oAttr->title}]</strong></th>
                <td id="attrValue_[{$smarty.foreach.attribute.iteration}]"><a title=[{$oAttr->value}] href="/[{$oAttr->value}]">[{$oAttr->value}]</a></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>

Mein Problem ist nur, dass hier nur das Attribut "Kategorie" verlinkt wird - ich würde jedoch auch gerne 2 weitere Attribute verlinken, wie z.B. Marke und Produktart.

Daher meine Frage: Wie kann ich die Abfrage nach "Kategorie" um die 2 weiteren Attributsbegriffe erweitern, damit diese 3 Attribute verlinkt werden?

Freue mich auf eure Rückmeldung.

Viele Grüße
Nicole

Viewing all articles
Browse latest Browse all 6951

Trending Articles