Category view for Tags

More
6 years 7 months ago #68598 by kspoddar
I have created category view for tags and the images for this is from a particular image field. I have made the changes in the configuration. The image field used is say Imagefield1. Is it possible also to extract image from a different image field let's say ImageField2?

I looked at the configuration setting but it appears that only one image field can be used.

Thank you,

Cheers!
Kirti

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

More
6 years 7 months ago #68608 by ggppdk
Replied by ggppdk on topic Category view for Tags
Hello

i don't understand you

if ImageField1 is empty then you will like to use image from ImageField2 ?


-- 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
6 years 7 months ago #68609 by kspoddar
Replied by kspoddar on topic Category view for Tags
Yes. In category views for tab, it should take any one of the image fields.

Thanks

Cheers!
Kirti

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

More
6 years 7 months ago #68610 by ggppdk
Replied by ggppdk on topic Category view for Tags
Hello

you can only use 1 image field with current templates
olny by custom code you could use 2 field in your category_items.php layout file

e.g. something like
Code:
if ( !empty($item->fields['somefield1'])->display) ) echo $item->fields['somefield1'])->display else echo $item->fields['somefield2'])->display


-- 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
6 years 7 months ago #68611 by kspoddar
Replied by kspoddar on topic Category view for Tags
Thanks for your prompt response. I will try this.
"somefield1" will be the image field name, is that right?

Cheers!
Kirti

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

More
6 years 7 months ago - 6 years 7 months ago #68614 by ggppdk
Replied by ggppdk on topic Category view for Tags
Hello

yes, it is the field name

1. edit layout configuration and add the 2 image fields in the "render-only" position
2. also inside layout configuration e.g. for blog layout (or layouts that are duplicates of it, e.g. blog-2)
set not to show image

3. at appropriate place in files
category_items.php
category_items_html.php

add the code that i have given you above


-- 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: 6 years 7 months ago by ggppdk.

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

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