Category List: Link item-image to its item

More
11 years 9 months ago #33692 by elysium
Hello Flexicontent communtiy

Unfortunately I coulnd't find a similar thread with a resolution which works for me:

In Category List View, i'm displaying a single small thumbnail image, which's uploaded into the item/article with a single image field.

How can I link this image automatically to the related Item in this Category List View?

Regards
elysium

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

More
11 years 9 months ago #33694 by ggppdk
Category Layout of Blog template has parameters
-- to display an image field as item image and
-- also a another parameter for linking the image to the item

To link the image of another template you will need
1. to disable popup in category view in image field parameters
2. edit category_items.php add an <A> before and after the image field like this (take care to change image fieldname below:
Code:
echo '<a href="'.JRoute::_(FlexicontentHelperRoute::getItemRoute($items[$i]->slug, $items[$i]->categoryslug)).'" class="hasTip" title="'.JText::_( 'FLEXI_READ_MORE_ABOUT' ) . '::' . htmlspecialchars($items[$i]->title, ENT_COMPAT, 'UTF-8') .'">'; echo FlexicontentFields::getFieldDisplay($items[$i], 'myimagefieldname', $values=null, $method='display'); echo '';

i guess it makes sense to add a parameter to image field for linking to item , when image field is displayed in category view


-- 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 #33710 by elysium
Many thanks!

I did get it today with the blog-template. Unfortunatley the blog template item/category-view isn't that fleixble as I need it. I'm going to try later the other possibility without the blog template.

I'll leave another comment here asap

Regards
elysium

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

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