Skip to Content
author's profile photo
Former Member

How to order the display of attributes in configclass

Hi , when i create a new attributes in configclass(cc.xml)these attrubute are displaying in random order. how can i make them to display in a perticular order? thanks in advance..

kranthi

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

1 Answer

  • author's profile photo
    Former Member
    Oct 07, 2005 at 08:11 AM

    Hi Kranthi,

    The default ordering of attributes is based on the type of the attribute and then the alphabetical order. Eg. an integer property with name <i>x</i> will be displayed before a string property of name <i>a</i>.

    If you need to specify the display order of the attributes manually, then you need to introduce a new property in the plugin.header.properties file for the plugin that contains the configclass.

    The property is:

    <i>plugin.attributesOrder.X=<attribute_list></i>

    where X is the name of the configclass.

    The possible construction of the attribute list is quite complex. However, if you just want to control the way that attributes within your class are ordered, then just list them in the order that you want (in one line). If you also need to change the display order of the attributes of an inherited class, then let me know and I will send you the additional information.

    One severe limitation of this method is that since the <i>plugin.header.properties</i> files are not merged for different configarchives, if you are delivering a configclass in an existing plugin, but different configarchive, then you need to specify the ordering in the <i>plugin.header.properties</i> file that exists in the archive which originally delivers the plugin.

    Regards,

    Aditya

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      Hey,

      Unfortunately not. This is the only currently implemented method in the Configuration Framework to handle attribute ordering. Its only really helpful if you start your own plugin, or can modify the original configmeta.

      Regards,

      Aditya