Hello,
Thanks for your answers.
I think your first answer is a good solution, thanks.
But it's not actually my way : I started to hack the php template file, it works ...almost
!
I have just 1 question : how to display the thumb of my second field.
Here is my code (templates/blog-customised/category_items.php lines 600+) :
Code:
<div class="lineinfo image_descr">
<?php if ($this->params->get('intro_use_image', 1) && ($src || $item->fields['field104'])) : ?>
<?php if ($src) : ?>
<div class="image<?php echo $this->params->get('intro_position') ? ' right' : ' left'; ?>">
<?php if ($this->params->get('intro_link_image', 1)) : ?>
<a href="<?php echo JRoute::_(FlexicontentHelperRoute::getItemRoute($item->slug, $item->categoryslug, 0, $item)); ?>" class="hasTip" title="<?php echo JText::_( 'FLEXI_READ_MORE_ABOUT' ) . ' : ' . htmlspecialchars($item->title, ENT_COMPAT, 'UTF-8'); ?>">
<img src="<?php echo $thumb; ?>" alt="<?php echo htmlspecialchars($item->title, ENT_COMPAT, 'UTF-8'); ?>" />
</a>
<?php else : ?>
<img src="<?php echo $thumb; ?>" alt="<?php echo htmlspecialchars($item->title, ENT_COMPAT, 'UTF-8'); ?>" />
<?php endif; ?>
</div>
<?php else : ?>
<div class="image<?php echo $this->params->get('intro_position') ? ' right' : ' left'; ?>">
<?php if ($this->params->get('intro_link_image', 1) && $item->fields['field104']) : ?>
<a href="<?php echo JRoute::_(FlexicontentHelperRoute::getItemRoute($item->slug, $item->categoryslug, 0, $item)); ?>" class="hasTip" title="<?php echo JText::_( 'FLEXI_READ_MORE_ABOUT' ) . ' : ' . htmlspecialchars($item->title, ENT_COMPAT, 'UTF-8'); ?>">
<img src="<?php echo $item->fields['field104']->{"display_medium_src"}; ?>" alt="<?php echo htmlspecialchars($item->title, ENT_COMPAT, 'UTF-8'); ?>" />
</a>
<?php else : ?>
<img src="<?php echo $thumb; ?>" alt="<?php echo htmlspecialchars($item->title, ENT_COMPAT, 'UTF-8'); ?>" />
<?php endif; ?>
</div>
<?php endif; ?>
<?php endif; ?>
My pb is here :
Code:
<img src="<?php echo $item->fields['field104']->{"display_medium_src"}; ?>" .......
$item->fields->{"display_medium_src"} do not disply my image thumb
the output is :
Code:
<a href="/category/myitemtitle.html" class="hasTip" title="Lire la suite : myitemtitle">
<img src="/" alt="myitemtitle"></a>
It works fine for everything (tooltip, link...) except the thumb.
Do you know what I miss ?