help for insert field into category_items.php

More
12 years 1 week ago #30646 by GamerLive
Hello, I'm looking a little trick that should not be complicated either, I duplicated the default template multiple times for different classes, I had like a field called specific image (field18) and I would like it to appear before the title of the item in the table view of the class and it is also clickable to point to the item, I just do not know how to call the file field category_items.php
I said that I'm working on the latest version of flexi.

I would like to reuse this trick but with different templates in another field image, thank you in advance.
Sorry for my english.

Portail communautaire sur l'univers des consoles Sony entièrement réalisé avec Flexicontent.

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

More
12 years 1 week ago #30652 by ggppdk
use something like:
Code:
<?php // Link to item $item_link = JRoute::_(FlexicontentHelperRoute::getItemRoute($items[$i]->slug, $items[$i]->categoryslug)); // The image tag with custom thumbnail $img_tag = '<img src="'.$items[$i]->fields['imgfield1']->display_small.'" title="'.$this->escape($items[$i]->title).'" />'; ?> [url=<?php echo $item_link ?>]<?php echo $img_tag; ?>[/url]


All thumbs are:

$items[$i]->fields->display_small_src
$items[$i]->fields->display_medium_src
$items[$i]->fields->display_large_src

in the above replace $items[$i] with $item , depending on the loop of your template


-- 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
12 years 1 week ago #30714 by GamerLive
hello, I'm sorry but using your code it gives me nothing, I tried replacing imgfield1 by field18 but nothing either, just be that I misspoke in my question or that I do not place the code the right place.
I would like to simply display my image field (field18) before the title in the category and display that image can be clickable and point to the item.
A bit like the view tag but a category view, I want to do this on a template from the default duplicated while maintaining the ability to add standard fields after the title.
I attached a screenshot to better understand my question.

And once again a big thank you in advance for your component and the quality of your support.

sorry for my english

Portail communautaire sur l'univers des consoles Sony entièrement réalisé avec Flexicontent.
Attachments:

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

More
12 years 1 week ago #30724 by ggppdk
Hello,
Why don't you use presentation or a copy of presentation template? or some other FLEXIcontent template before trying to modify a FLEXIcontent template


-- 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
12 years 1 week ago #30731 by GamerLive
Re Simply because all the default template is exactly what I want to do, I just want to add clickable image before the title but the rest totally agree, I have other fields to the left then after title and table layout is ideal for rendering I want.
Unfortunately, if this is not possible and too bad I will go and will keep the default template because others do not agree to this category.

Portail communautaire sur l'univers des consoles Sony entièrement réalisé avec Flexicontent.

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

More
12 years 1 week ago #30732 by ggppdk
You can use category layout of presentation template to place image before title, using CSS


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