Pas d'image pour les sous-catégories

More
11 years 2 months ago #32945 by Hableur
Bonsoir,

j'ai un problème d'images de catégories dans le template.

Dans mon template, il s'affiche une catégorie mère dotée d'une image dont j'obtiens le code dans
Code:
$this->category->image

Puis j'affiche les sous-catégories issues de
Code:
$this->categories foreach ($this->categories as $categ)
Ces sous-catégories possèdent normalement leur propre image. Malheureusement, $categ->image contient l'image de la catégorie mère et non celle de la catégorie en question. Dans l'objet $categ, le chemin vers l'image ne figure que dans $categ->params->[data:protected], qu'on ne peut pas utiliser puisque justement protected.

Comment faire pour afficher l'image de la sous-catégorie dans mon template ?

Merci.

Hi,

I have a problem with image's category in personnal template.

In my template, I use image of main category, and I find it with
Code:
$this->category->image

Then, I show subcategories witch are in
Code:
$this->categories foreach ($this->categories as $categ)
This subcategories have their own image, but $categ->image contains image of main category, no image of subcategory. In $categ object, path for image appears only in $categ->params->[data:protected]that we can't use because protected.

How should I do to have images for each subcatergory ?

Thanks

Please Log in or Create an account to join the conversation.

More
11 years 2 months ago #32946 by ggppdk
Hello, upcoming version has parameters for fully customizing sub-category list (this is already implemented)

see recent reply here:

<!-- l --><a class="postlink-local" href=" flexicontent.org/phpbb/viewtopic.php?f=9&t=5734#p32938 ">viewtopic.php?f=9&t=5734#p32938


-- Flexicontent is Free but involves a big effort on our part.
Like the our support? (for a bug-free FC, despite having a long list of functions) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing with a 5-star...

Please Log in or Create an account to join the conversation.

More
11 years 2 months ago #32947 by Hableur
Thanks, so I'm waiting for new version ;) !

Meanwhile I am going to use alias to generate path of subcategorie's image.

Please Log in or Create an account to join the conversation.

Moderators: vistamediajoomlacornerggppdk
Time to create page: 0.266 seconds
Save
Cookies user preferences
We use cookies to ensure you to get the best experience on our website. If you decline the use of cookies, this website may not function as expected.
Accept all
Decline all
Essential
These cookies are needed to make the website work correctly. You can not disable them.
Display
Accept
Analytics
Tools used to analyze the data to measure the effectiveness of a website and to understand how it works.
Google Analytics
Accept
Decline