Template pour champ de type "relation"

More
7 years 3 months ago #68977 by id-pop
Bonjour,
Je souhaite pouvoir ajouter sur les liens de certains champs de type "relation" une classe spécifique (jcepopup) histoire de pouvoir afficher certaines infos en popup et pas d'autres.
Comment est-ce possible ? En effet, j'ai vu que je pouvais modifier la classe dans "flexicontent.fields.php à la ligne 5121 mais la modification est pour l'ensemble des champs et je ne souhaite ajouter cette classe que sur certains champs.
Merci,
Alexandre

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

More
7 years 3 months ago #68979 by ggppdk
Hello

you want to add a CSS class to the links creation by our "relation" field ?

in short are you talking about our "relation" field ?
or of our "weblink" field ?
or other ?


-- 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 3 months ago #68982 by id-pop
Hi,
Yes, I want to add a specific class to the links creation in a relation field. I don't want to add a class on every relation field. Just on some of them. That's why I was looking for a "template" (like in text field).
I am not speaking of weblink.

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

More
7 years 2 months ago #69072 by id-pop
Hi,
I have tried to add a class using javascript but it doesn't work (the jcepopup class must be added before the page is generated). Did you find a solution ?

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

More
7 years 2 months ago #69082 by ggppdk
Hello

the relation field has an "HTML" parameter to create the display of the related items
but the template effects is applied of all related items exactly the same

in upcoming version (already implemented) the relation fields supports custom layouts

but in your case you do not want to decide the CSS classinside the layout
in your case you want to decide the CSS class inside item form, and this is not implemented
- in item form you can only select items


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