Template pour champ de type "relation"

1 year 1 month 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.

1 year 4 weeks 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 review. Thanks!

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

1 year 4 weeks 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.

1 year 3 weeks 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.

1 year 3 weeks 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 review. Thanks!

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

Moderators: vistamediajoomlacornerggppdk
© 2018 Flexicontent. All Rights Reserved.