[SOLVED] How to make images in category view, link to every item (item details view)

More
9 years 2 days ago - 9 years 19 hours ago #54564 by chaaya
I am not sure if this is a bug or I am missing something.
I have an image field active in Item. How can I make the link on the image at the category list to go to the item form, just like clicking on the title? I thought this woukd the default behaviour but apparently not.
I have all link image set to yes.

It is version 3.0 BETA6b
I am using Joomla 3.4.1
PHP version 5.6.8
Last edit: 9 years 19 hours ago by ggppdk.

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

More
9 years 1 day ago - 9 years 1 day ago #54583 by ggppdk
Hello

maybe you mean item form instead of item view ??

- blog template does it by default
- other templates display image via a field only
so try this:
- configure the image field (inside "viewing" TAB)
in "Single image" (for category view) this will create a link to the item instead of to a gallery


-- 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...
Last edit: 9 years 1 day ago by ggppdk.

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

More
9 years 1 day ago - 9 years 1 day ago #54584 by chaaya
I see. Yes it works but only in Blog template and only if you change the settings to use image field.
I am using the presentation template which has no such options. What I did is change the template code where the image is displayed and added a href to the item form. It is the same link as set for the title.

As an added feature, for the templates that already have a placeholder for an image, maybe you van include a parameter to use the image field as a link to url, and the default would be the item form.

Thanks for your help.
Last edit: 9 years 1 day ago by ggppdk.

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

More
9 years 1 day ago - 9 years 1 day ago #54585 by ggppdk
Hello

you don't need to customize template code !

if you are using an image field, then configure it inside the VIEWING TAB

for category view , instead of "All thumbnails"
use
"Single Image" or "Single Image with total"

and it will link 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...
Last edit: 9 years 1 day ago by ggppdk.

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

More
9 years 1 day ago #54589 by chaaya
I already tried that. It doesn't make any difference. Is there another setting that I have to change to make it work?

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

More
9 years 18 hours ago #54594 by ggppdk
Hello

yes, if the image field is in not in multi-value mode
- then the item link will not be added in category view


you can test this fix, in file:
plugins/flexicontent_fields/image/image.php

replace
Code:
if ($prop=='display' && $multiple) {
with
Code:
if ($prop=='display') {

- test and i will commit the fix for v3.0 RC
- also will add an inline message in image field configuration, that the single thumb mode will link to item details 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.

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