Understanting "Link to URL" image field feature

More
11 years 9 months ago #27352 by Rooney
Hi,

I am trying to understand the "Link to URL" feature of the image field. I have created an image field to use as a teaser image in category view. Because of the structure of the page I want to display the page title below the article title. In category view this is no problem.

Clicking on the image shall open an article or another page that is not related to the article used as a teaser. Therefore I cannot use the "Link image" feature in category view. For this reason I wanted to use the "link to URL" feature of the image field for a custom URL, but I discovered that this is only working in item and not in category view. Is this correct?

Rooney

Joomla! 3.9.24 and FC 3.3.9

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

More
11 years 9 months ago #27353 by ggppdk
mmm, link URL should work in all category views using templates that display the field display HTML (via a template position or manually).

This is not the case for some templates, e.g. blog template, does a custom resize of the original image and then links the image to the item.


-- 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 9 months ago #27360 by Rooney
Ok. That's the reason then. I am using a copy of the original blog template. Is there a way to be able to use both: either linking a custom URL or the article?

Rooney

Joomla! 3.9.24 and FC 3.3.9

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

More
11 years 9 months ago #27364 by ggppdk
You could disable template layout parameter for image, and add the image field in one of the blog's template positions


-- 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 9 months ago #27365 by Rooney
Hmm. Have to think about that. Thanks!

Rooney

Joomla! 3.9.24 and FC 3.3.9

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

More
11 years 9 months ago #27366 by ggppdk
also in your copied blog template you could remove all code within:
Code:
if ($this->params->get('lead_use_image', 1)) : ... $endif;

and use this:
Code:
if ($this->params->get('lead_use_image', 1)) : if ($this->params->get('lead_image')) : FlexicontentFields::getFieldDisplay($items[$i], $this->params->get('lead_image'), $values=null, $method='display'); echo $items[$i]->fields[ $this->params->get('lead_image')]->display; $endif; $endif;

same for intro_image section


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