Related Items field template?

More
7 years 6 months ago - 6 years 8 months ago #64389 by lipatovroman
Hi!
Usually I can duplicate any field template file and use it in field settings.
Is it possible to do same with Related Items field?

Explain.
I have Chrome for Windows, macOS, Android and iOS.

On the page Chrome for Windows I want to displays block:

See also Chrome for other OS:
Chrome for macOS, Chrome for Android, Chrome for iOS.

And same for other pages.

I going to use Relation field for this.

So, I need to edit template for this field (insert categories using this method - www.flexicontent.org/forum/20-general-su...egory-from-item.html )
Last edit: 6 years 8 months ago by lipatovroman.

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

More
7 years 6 months ago #64449 by ggppdk
Hello


most fields have layouts,
related items does not have,

but it has an HTML parameter, you can almost achieve the same results using this parameter
(surely a layout file could do a some more)

is it not enough ? what is missing that can not be done ?


-- 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
7 years 6 months ago #64451 by lipatovroman

ggppdk wrote: Hello


most fields have layouts,
related items does not have,

but it has an HTML parameter, you can almost achieve the same results using this parameter
(surely a layout file could do a some more)

is it not enough ? what is missing that can not be done ?


Hi!
As I wrote, I need to add parent category name for each related item.



I had an idea to add your code from another topic .
Code:
$catshelper = new flexicontent_cats($cid); $parents = $catshelper->getParentlist($all_cols=false); if ( count($parents)>=3 ) { $cat = $parents[ count($parents) - 3 ]; $cat_icon = '........'; echo '<a title="'.$cat->title.'" href="'.JRoute::_( FlexicontentHelperRoute::getCategoryRoute($cat->slug) ).'">'.$cat_icon .'</a>' }

And I can't... :(

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

More
7 years 6 months ago #64453 by ggppdk
Hello

right, we cannot do this with the HTML parameter
we need a layout file

it is almost enough to cioy the PHP code of the helper method
into a layout file

I have added a milestone to it but that maybe pushed a little later, we will see:
github.com/FLEXIcontent/flexicontent-cck/issues/649

v3.1.0 is finished and will not risk breaking anything in it now, just a couple of more fixes for it and it will be released


-- 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...
The following user(s) said Thank You: lipatovroman

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

More
7 years 3 months ago #65605 by lipatovroman
Hi!
Waiting template option for this field.

And have new question for this field (not to create new topic)

Very hard to find related items.

I think already selected items should be marked (like in files or images list).

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

More
7 years 2 months ago #65768 by lipatovroman

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

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