Active
Project:
Image Annotator
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
12 Mar 2013 at 12:19 UTC
Updated:
14 Mar 2013 at 14:27 UTC
Thank you for this great module! :)
I'm wondering if it is possible to hide the field collection (fc) information by default and show for example only fc #1 when the user hovers the annotator #1 in the image?
Comments
Comment #1
attiks commentedIt is possible, but will need some custom javascript code, I don't have time for the moment to implement this, but if you can supply a patch I can provide feedback.
Comment #2
design.er commentedUnfortunately my project was canceled yesterday so i don't need this solution anymore and don't have the time to dig deeper. Nevertheless i have a working solution. The name of the field collection is custom, so I couldn't create a patch. But here is my code... maybe it will help others.
In my special case I needed the Field Collection information inside/right beneath the image annotator so I had to append each Field Collection field to the appropriate annotator number.
The CSS class of the Field Collection:
.field-name-field-infosIn the image_annotator.js paste the following code on line 121:
I also needed this css code:
Just replace the
field-name-field-infosby your field collection css name.Stefan