Custom Attributes in the Structure File

In Consolo’s Configuration Tool you can set your own attributes to be included in the file structure.xml. This possibility is very useful if editors should be able to set some menu options to “new” or “hot”, or if some menu options should have a different text or image.

The attributes you define will be displayed under Properties in Consolo’s Page Structure window, where the editor can modify them.

Exactly how your web site interprets the new attributes is decided by you. For html-based web sites it may be necessary to make changes to the supporting function getStructure(), maybe by creating new class-variants, and in Flash® you solve this with action script’s xml-class.

 

To add your own attribute, open the Configuration Tool for the current web site and go to the Client Configuration tab. Select Structure Attribute, click New Attribute and set the following values:

Title

The label for type-in-field in Consolo’s Page Structure window.

Attribute Name

The name of the attribute in structure.xml.

 

 

Then you can also select from these attribute types:

text

Accepts all characters.

number

Accepts the characters 0 to 9 and - , . (dash, comma and period).

date

Accepts the characters 0 to 9 and - , (dash and comma) and allows a maximum of  10 characters.

time

Accepts the characters 0 to 9 and : , (colon and comma) and allows a maximum of  5 characters.

checkbox

Enables the value to be set to 1 or 0 with a check box.

readonly

Text that is displayed to the editor but cannot be changed.

 

 

In the Configuration Tool you can also set what pages and folders the attributes will be applied to. This is done with the following settings:

Use on pages

Sets wether the attribute will be applied to pages.

Use on folders

Sets wether the attribute will be applied to folders.

On level

Sets wether the attribute will only be applied on a certain level. The value 1 corresponds to the first level of the Page Structure.

With search path

Sets wether the attribute should only be applied to files and folders that begin with this search path. Use Consolo’s pageKey-format.