Template Tags

More
8 years 4 months ago #58692 by nexteo
Template Tags was created 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.

More
8 years 4 months ago #58714 by ggppdk
Replied by ggppdk on topic Template Tags
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...

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

More
8 years 4 months ago #58755 by nexteo
Replied by nexteo on topic Template Tags
Everything works
Thank you

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

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