template blog subcategorie.php

More
13 years 9 months ago #8087 by simjoubert
Bonjour,
dans le template blog
Je souhaite afficher mes sous catégorie sous la forme blog comme les articles de la catégorie.Peut'on appeler l'image d'une sous catégorie et sa description à la place de son titre uniquement
si c'est faisable quelle-est la syntaxe
car j'ai essayer avec
Code:
<?php if (!empty($this->$sub->image) && $this->$sub->params->get('show_description_image', 1)) : ?> <div class="catimg"> <?php echo JHTML::_('image.site', $this->$sub->image, 'images/stories/', NULL, NULL, $this->escape($sub->title)); ?> </div> <?php endif; ?>
et cela ne donne rien!
Merci.

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

More
13 years 9 months ago #8091 by micker
hello regarde par ici
www.flexicontent.org/forum/index ... =viewtopic
ca devrait t'aider !

FLEXIcontent is Free but involves a very big effort on our part.
Like the our support? (for a bug-free FC, despite being huge extension) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing reviews. Thanks![/size]

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

More
13 years 9 months ago #8095 by simjoubert
merci !
J'avais lu ce post. Il traite d'image pour la catégorie par pour la sous catégorie ou dans le code par défaut de category_subcategories.php
le code annonce:
Code:
<div class="subcategorieslist"> <?php echo JText::_( 'FLEXI_SUBCATEGORIES' ) . ' : '; foreach ($this->categories as $sub) : $subsubcount = count($sub->subcats); ?> [url=<?php echo JRoute::_( FlexicontentHelperRoute::getCategoryRoute($sub->slug) ); ?>]<?php echo $this->escape($sub->title); ?>[/url] <?php if ($this->params->get('show_itemcount', 1)) echo ' (' . ($sub->assigneditems != null ? $sub->assigneditems.'/'.$subsubcount : '0/'.$subsubcount) . ')'; $i++; if ($i != $n) : echo ', '; endif; endforeach; ?> </div>
je ne sais comment traduire le code d'affichage des image de category-category.php :
Code:
<?php if (!empty($this->category->image) && $this->params->get('show_description_image', 1)) : ?> <div class="catimg"> <?php echo JHTML::_('image.site', $this->category->image, 'images/stories/', NULL, NULL, $this->escape($this->category->title)); ?> </div> <?php endif; ?> <?php if ($this->params->get('show_description', 1)) : ?> <div class="catdescription"> <?php echo $this->category->description; ?> </div> <?php endif; ?> </div>
je pige pas (je suis débutant) le coup de
Code:
$this->escape($sub->title)
à la place de
Code:
$this->category->image
Merci si vous pouvez m'expliquer la bonne syntaxe

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

Moderators: vistamediajoomlacornerggppdk
Time to create page: 0.507 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