Steffi13Steffi13 MemberComments: 1 Received thanks: 0 Member since: October 2018

Hi,

das Kategoriebild lässt sich in .tpl Dateien ja gut über {$category.media.path} einbinden. 

Wie kann ich allerding explizit das Kategoriebild einer Unterkategorie einbinen? 

Mein Versuch mit  {$subcategory.media.path} oder so was hat leider nicht geklappt. Ideen?

Answers

  • odessiteodessite MemberComments: 38 Received thanks: 8 Member since: September 2016

    How did you get {$subcategory}?
    Also you can use:

    {{$subcategory|var_dump}}

    To see what do you have inside variable.

    {$subcategory.media.path} looks right, but could be that you use array of categories instead of category instance and it will work for you like {$subcategory[0].media.path}

Sign In or Register to comment.