Home

Global Navigation: XML Attributes

Required

btnID

btnSWF

Optional

btnLabel

  • Default = btnID. Content of the button label text.

btnSize

btnLabelAlign

  • Default is “CENTER”. The horizontal alignment of the button label text. The vertical alignment is handled in the btn.swf itself.

btnLabelLetterSpacing

  • NO LONGER USED since version 1.54

btnAddLabelSpace

btnStayActive

  • Default = “true”. If this is “true”, the button will remain in its active state when release, until another button in the same group is released. If set to “false”, the button will immediatly go back to its rollOut state after it has been released. Often this is used for a “Home” button.

btnPosX

  • Default is ”+0”. If it is ”+0” than this means this button has the same X position as its parent button. If you want it to be 30 pixels more to the left, use ”+30”. If the button should be placed at absolute x position of 30 pixels, use “30”.

btnPosY

  • Default is ”+0”. See “btnPosX” for details.

btnSpacingX

  • Default is “0”

btnSpacingY

  • Default is “0”

btnMakeRoomY

btnMakeRoomAddSpace

btnAutoActivate

  • Default is “false”. If the group this button resides in is activated, this button will be activated automatically. If you use the global navigation in Gaia, you don't have to use this because it's better to handle it in Gaia by the xml page node attribute “defaultChild”.

btnReselect

  • Default is “false”. Normally a button cannot be selected again after it has been activated. If you need to reselect it, you can do so by setting this attribute to “true”. Sometimes it is necessary, for example when you want to deselect all the buttons in the submenu.

btnHide

  • Default is “false”. Use this if you don't need a button, but the functuality of it. For example, you don't need a visible “Home” button, instead the user can click on the logo of your website. But the navigation has to be deactivated in that case.

btnDisabled

  • Default is “false”. If set to “true”, the button will be visible, but with alpha=0.3 and mouseEnabled=false. Use this if the button should be visible, but not active yet. For example when the Website you are working on goes online before all the content is ready. So the visitors get the whole picture of the site but also see where they cannot click yet.

btnJoker

  • Default is ””. btnJoker can be used for anything. You can store a value which can be used in the btn.swf. For example to have different colors for certain navigation levels and so on.

Screenshot of XML file

global_navigation_xml.txt · Last modified: 2011/11/11 18:55 (external edit)
 
Recent changes RSS feed Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki