Dashboard > Community Wiki > ... > Dialogs overview > Change dialog label position
Change dialog label position Log In View a printable version of the current page.

Added by GrĂ©gory Joseph , last edited by GrĂ©gory Joseph on May 20, 2008  (view change)
Labels: 

The default label location for controls on a dialog is positioned to the left of the control. Being that horizontal space is at a premium, many developers prefer to have the label on top of the control. I could not find any reference to this in documentation, so I looked at the source and found that Magnolia looks for a data node type of "boxType". the default boxType is 2Col, which means the label is on the left and the control on the right. A boxType of 1Col puts the label on top of the control. AFAIK you cannot control the formating in any other way.

To edit your dialog:

  1. Choose a contentNode that has a control on it (edit, or fckEdit, etc) and a label.
  2. Right click the contentNode and choose New node data.
  3. Rename the data node "boxType"
  4. Give it a value of "1Col"

Note you need to do this for each control on the page.

In its previous incarnation on JspWiki, this page was last edited on Feb 9, 2007 10:11:11 AM by TerryJeske
Other known authors include :

Powered by a free Atlassian Confluence Open Source Project License granted to Magnolia International. Evaluate Confluence today.
Powered by Atlassian Confluence 2.7, the Enterprise Wiki. Bug/feature request - Atlassian news - Contact administrators