How to select the displayed image on a template

More
14 years 4 months ago #1606 by Richard
Hi,

I have created a new template for FlexiContent. To get the look and feel that I wanted, I have had to edit the xml files and the php files to generate the correct layout. I can access all the data correctly and can display it.

However, in the item view, when I access an image field, the code generates a m_... image. When in the category view, it generates a s_... image.

I would like to know how to change this. In the category view, I would like to access the m_... image, rather than the s_...?

Also, how do you turn off the tooltip (the one that says Legend when you hover over it)?

Thanks.

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

More
14 years 4 months ago #1699 by vistamedia
I'm sorry Richard, but you'll have to modify the plugin if you wish to achieve that as there's no parameter for that ;)
Cheers,
Emmanuel.

FLEXIcontent lead developer.
www.vistamedia.fr web agency and custom development.
www.joomla.fr co-administrator.
Please no PM for support request, use the forum for that!!!

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

More
14 years 4 months ago #1738 by devil
Hi Richard,

open plugins/flexicontent_fields/image.php and find (3times):
Code:
$field->{$prop} = '<img class="hasTip" src="'. $src .'" alt ="'.$alt.'" title="'.$tip.'" />';

change it to:
Code:
$field->{$prop} = '<img class="hasnoTip" src="'. $src .'" alt ="'.$alt.'" title="'.$tip.'" />';

and the Tooltip will disappear. Hope this helps...

I think i will make some changes so we have an Switch (on/off)for every imagefield and send it to Emmanuel
btw i will attached it later here...

Joomla-Aktuell - www.joomla-aktuell.de

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

More
14 years 4 months ago #1747 by Richard
Hi,

Do I need to regenerate (upload) the images?

They do seem to be updating on the fly...

Thanks.

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

More
14 years 4 months ago #1748 by devil
Hi,

no Upload again... Try it :D

Joomla-Aktuell - www.joomla-aktuell.de

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

More
14 years 4 months ago #1749 by Richard
Sorry, I found out I had alter'ed the template, so the images were not even displaying correctly :oops: The change works well, but I also removed the 'title' part of the img tag as well.

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