Aller au contenu principal

Table cell properties - display in editor

Commentaires

4 commentaires

  • Holger Höbbel

    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
    Holger

    1
  • Jan Sänger

    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
  • Holger Höbbel

    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,
    Holger

    1
  • Jan Sänger

    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.