Alfresco version 5.2
I have a lot of pages with controls/pickers/from_dict.ftl control and it always looks well BUT not in dialogs! On regular pages it is nice, but control looks bad in dialogs, it does not use its CSS in dialogs and looks ugly. Please tell me how to fix that?
How have you configured Alfresco to load the form control's CSS? What have you specified as rule selectors in the CSS? You may have to keep your rule selectors in a simpler form, since you cannot rely on some of the global selectors (e.g. classes from high-level content containers) to be present in the HTML node path to a dialog. Additionally, there may also be dialog specific overrides which you have to account for when relying on style inheritance.
Hi!
I have done no additional confiuration, just have used control like this:
<field id="namespace:id" label-id="the.label"> <control template="controls/pickers/from_dict.ftl"> <control-param name="dictName">some dictionary</control-param> <control-param name="allowNavigationToContentChildren">true</control-param> </control> </field>
and when it is on page I can see it uses object-finder_87bd53dccd4b76a4dfdb56331bcd82c9.css but in dialog the same control does not use this CSS file, maybe there are other problems exists and control looks ugly. For example - images are lost, high is wrong, table heads are visible and so on. Nevertheless it is functional, but ugly, like it has lost all its style.
Ask for and offer help to other Alfresco Content Services Users and members of the Alfresco team.
Related links:
By using this site, you are agreeing to allow us to collect and use cookies as outlined in Alfresco’s Cookie Statement and Terms of Use (and you have a legitimate interest in Alfresco and our products, authorizing us to contact you in such methods). If you are not ok with these terms, please do not use this website.