Template Tags

2 years 4 months ago #58692 by nexteo
Hello!

I am trying to customize the template tags but I can not display images.
I have overrided the file default.php mytemplate/com_flexicontent/tags/default.php
this image comes from a custom field titled as "photo"

at the top of the file :

// Image configuration
$use_image = (int)$params->get('image', 1);
$image_source = $params->get('image_source');
$image_height = (int)$params->get('image_height', 40);
$image_width = (int)$params->get('image_width', 40);
$image_method = (int)$params->get('image_method', 1);
$image_size = $params->get('image_size', '');

should I change the value of $use_image ?

and in my table

<?php if ($use_image) : ?>
<td headers="fc_image" align="center">
<?php if (!empty($thumb)) : ?>
<?php $title_encoded = htmlspecialchars($item->title, ENT_COMPAT, 'UTF-8'); ?>
<?php if ($this->params->get('link_image', 1)) { ?>
<a href="<?php echo $item_link; ?>" >
<img src="<?php echo $thumb; ?>" alt="<?php echo $title_encoded; ?>" class="<?php echo $tooltip_class;?>" title="<?php echo flexicontent_html::getToolTip($_read_more_about, $title_encoded, 0, 0); ?>"/>
</a>
<?php } else { ?>
<img src="<?php echo $thumb; ?>" alt="<?php echo $title_encoded; ?>" title="<?php echo $title_encoded; ?>" />
<?php } ?>
<?php endif; ?>
</td>

I tried to write the usual chain

<?php if (isset($item->positions)) : ?>
<?php foreach ($item->positions as $field) : ?>
<?php echo $field->display; ?>
<?php endforeach; ?>

but nothing appears...

Have you got an idea ?
I'm really not a php expert

Thanks

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

2 years 4 months ago #58714 by ggppdk
Hello

You can use FLEXIcontent category view / model / templating for displaying tags

there is a parameter in the
- component parameters, "Lists Tab"


-- 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 review. Thanks!

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

2 years 4 months ago #58755 by nexteo
Everything works
Thank you

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

Moderators: vistamediajoomlacornerggppdk
© 2018 Flexicontent. All Rights Reserved.