$this->category->image est vide

More
11 years 6 months ago #29054 by Hableur
Bonjour,

j'ai un problème depuis la mise à jour de la nouvelle version pour j 1.5.

J'utilise une image pour chacune de mes catégories dans mon template flexicontent.

Jusqu'à présent, j'utilisais $this->category->image
dans l'expression
Code:
echo JHTML::_('image.site', $this->category->image, 'images/stories/', NULL, NULL, $this->escape($this->category->title));

et ça le faisait très bien.

Depuis la mise à jour, $this->category->image est vide, et je ne trouve pas de biais pour avoir l'adresse de la vignette à charger.

Je suis allé regarder le paramétrage des catégories, je n'ai rien vu d'anormal.

Quelqu'un a-t-il une idée, merci.

ps: pour info, le contenu de $item->fields->display_small a aussi changé, on peut l'utiliser tel quel, il contient toute la balise <img>. Malheureusement, du coup on ne peut plus insérer un titre, ce qui est dommage pour le référencement.

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

More
11 years 6 months ago #29058 by ggppdk
yes ...->display_small should contain an image tag <img .../>

the image URLs are in the variables:
...->display_small_src
...->display_medium_src
...->display_larg_src

about the category images,
maybe there is a inconsistency with image folder used:
-- i see that in backend when selecting image we use images/stories folder
-- and in frontend we use the path configure in JOOMLA's Global Configuration

Is the image folder configured in your Joomla's Global Configuration, the folder: "images/stories" ?


-- 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 6 months ago #29060 by Hableur
Hello ggppdk,

always here for help ! Thanks a lot !

the image URLs are in the variables:
...->display_small_src

Yes, it's right, and it's more logical.

About Joomla's Global Configuration, the folder is "images/stories". I didn't make any change except new version of Flexi.

Have somebody the same problem ?

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

More
11 years 6 months ago #29061 by ggppdk
Then i would need to examine if this is some other bug

Can you send me a PM with
- admin access
- and tell me which category you are trying to view e.g. category 41


-- 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 6 months ago #29062 by Hableur
Sorry, i can't give you an administration access because the site is private and contains professionnal and personnal data of users :? .

The problem is the same for alls categories.

Is $this->category->image not empty when trying on a trial category in others sites ?

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

More
11 years 6 months ago #29066 by ggppdk
Is showing of category image enable in category options?

This is the code creating the image in view.html.php inside folder views/category/
Code:
// category image $cat = & $category; $config =& JFactory::getConfig(); $joomla_image_path = FLEXI_J16GE ? $config->getValue('config.image_path', '') : $config->getValue('config.image_path', 'images'.DS.'stories'); $image = ""; if ($cat->id && $show_cat_image) { $cat->image = FLEXI_J16GE ? $params->get('image') : $cat->image; $image = ""; $cat->introtext = & $cat->description; $cat->fulltext = ""; if ( $cat_image_source && $cat->image && JFile::exists( JPATH_SITE .DS. $joomla_image_path .DS. $cat->image ) ) { $src = JURI::base(true)."/".$joomla_image_path."/".$cat->image; ...


-- 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.

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