Template Override for "fieldgroup.php" System Plugin?

More
6 years 2 months ago - 6 years 2 months ago #74688 by ggppdk
Hello

you need to use the real field name
e.g. 'mygal' thus {{mygal}}
e.g. 'age'  thus {{age}}

e.g for and image gallery field with name 'mygal' you can use
{{mygal}}
or
{{mygal##single_total}}   (show a single thumbnail that will open up the gallery that show all other images, and will also show a total)
or
etc


-- 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 2 months ago by ggppdk.

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

More
6 years 2 months ago - 6 years 2 months ago #74694 by Dave LeDev
Hm. I may have to persist with a core edit. I'd have to create the markup necessary for every new field I make. And if I need to change it, I'll have to do it with however many fields I end up at the time. Currently 21 and rapidly growing!
Last edit: 6 years 2 months ago by Dave LeDev.

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

More
6 years 2 months ago - 6 years 2 months ago #74697 by ggppdk
Hello

sure regardless of custom display being possible already

we do need a good enough "default" display layout

so what about adding the a CSS class with fieldname
changing
Code:
<div class="fc-field-box">
to
Code:
<div class="fc-field-box field_' . $grouped_field->name . '">
thus you will have a unique class

plus i will move the PHP / HTML code of the loop to a layout file ... 
(same layout structure like other fields)
code will be move to
tmpl/value_default.php


-- 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 2 months ago by ggppdk.

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

More
6 years 2 months ago #74699 by ggppdk
Hello

ok moving value loop code to template file is as easy as any other field

done, this should benefit other users using the fieldgroup field

Please try v3.2.1.15-rc
github.com/FLEXIcontent/flexicontent-cck/releases

you can now duplicate layout file tmpl/value_default.php
customize new file
and then select the new layout file in field configuration


-- 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 2 months ago #74714 by Dave LeDev
Good thing I made a backup. Something broke tremendously. 



A text compare shows it's happening here. New code on right.



Restoring the old code removes the warnings.

Not yet tested on a server that's likely better configured than my localhost.
I installed it as a normal component without further configuration.

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

More
6 years 2 months ago #74715 by Dave LeDev
Ah, that'd do it. /plugins/flexicontent_fields/fieldgroup/tmpl/value.php isn't included in the RC.

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

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