41 Posts
RatingAction
5 years ago
4
Topic

Hi, is it possible to change how and where the field description popover appears? Currently it appears as a question mark icon next to the field value. Ideally I'd just like to show the popover as hover over the field label. Alternatively show the icon next to the field label, but not the value. Is that possible?

Get a Book for SEBLOD
5 years ago
3
Level 1

Hello RatingAction, 

actually, you have only those options:

If you need an other way, you can do that manually by adding a code field "Before Render". 

With that you can change the property "form" of you field (add some attributes, change the html,...)  

Regards.

41 Posts
RatingAction
5 years ago
2
Level 2

Thanks for your reply, Lionel. I tried getting somewhere with Typo->HTML but that didn't work out.

Not sure how to go about using the BeforeRender field for this purpose, but will think about it. 

EDIT: Would a position variation work, too? If I set the template to display descriptions as popover, can I specify where to show it in the override?

1283 Posts
Bucklash
5 years ago
1
Level 3

with beforerender can do

$fields[‘some_field’]->form = “...put all of the rendered html here”;

41 Posts
RatingAction
5 years ago
0
Level 4

I haven't been able to figure out how to manipulate the html I want to apply to the label. I tried the position override route, with a success rate of 50%. I've created a table and successfully applied popovers for one content type. Using the exact same method for another content type did not work. As far as I could discern, the popover script is not called, even though the template is set to display descriptions as popover.

For the time being I'm just using the "title" setting in the div. While not quite the same as a popover, it does give more context than nothing.

Get a VIP membership