Table cell properties - display in editor
Hi,
I am wondering if there is any way that the properties defined on a CMS_INPUT_TABLE via the attribute propertyConfig can be used to change the styling of the given cell within the editor.
So if I have a selection of predefined colors in the cell properties, could the selected cell be displayed in that color for the editor as well as the output channel? If so, how?
Otherwise the editor won't have an indication that the cell properties are in effect, am I right?
Kind regards
-
Hello Jan,
just use bgcolor (if you are using CMS_INPUT_DOMTABLE), e.g.:
bgcolor:background color[#FFFFFF:none|#FF0000:red|#00FF00:green]
Or if you are using an inline table within CMS_INPUT_DOM the syntax within the style template could be:
<CMS_INPUT_COMBOBOX name="bgcolor" useLanguages="no">
<ENTRIES>
<ENTRY value="#FFFFFF">
<LANGINFOS>
<LANGINFO lang="*" label="normal"/>
</LANGINFOS>
</ENTRY>
<ENTRY value="#FF00">
<LANGINFOS>
<LANGINFO lang="*" label="red"/>
</LANGINFOS>
</ENTRY>
<ENTRY value="#00FF00">
<LANGINFOS>
<LANGINFO lang="*" label="green"/>
</LANGINFOS>
</ENTRY>
</ENTRIES>
<LANGINFOS>
<LANGINFO lang="*" label="background color"/>
</LANGINFOS>
</CMS_INPUT_COMBOBOX>Best regards
Holger1 -
Hi Holger,
thanks for the quick response, that helps.
Beyond that, it seems that the "align" cell property is always visible. Can this be removed? It's not an option we currently want to expose to the editor.
Kind regards
0 -
Hello Jan,
unfortunately, as far as I know, this is not intended.
If you never want to support align and have another property that should be displayed instead, you could simply use the field for this other property.
align:Name of other property[option1:name opt1|option2:name opt2]
Disadvantage (apart from the fact that the align option cannot be used in the future because invalid values are saved): if you use a textfield and an editor uses a valid key word for align, it will be used within the cell for displaying the content => so this option is not recommended at all!
Otherwise can you can also use it like this, so that only left can be selected:
align:textalignment[left:always left|:]
Advantage: If you want to expose the option to the editors later, you just have to add more options.
If only the SiteArchitect is used, you can use
align: [:]
However, this (actually invalid) notation is not supported within the ContentCreator. An unlabelled text field will be displayed there.
If you need a clean solution for hiding the align option, please create a feature request via ‘Submit idea’ here:
https://firstspirit-portal.crownpeak.com/Best regards,
Holger1 -
Hi Holger,
I've just given the following notation a try and the option actually disappears from the cell properties dialog in the SiteArchitect:
align:Ausrichtung[left:Links]
Sadly, we are indeed using the ContentCreator, where the option remains visible (as a text box). I'll revert to the second notation you described which should be most viable for now.
Thanks for your help!
Kind regards
1
Vous devez vous connecter pour laisser un commentaire.
Commentaires
4 commentaires