SA Publisher for web generation > System Architect Publisher > Generating a website > Publishing information customized through the usrprops.txt
  
Publishing information customized through the usrprops.txt
You can publish information for properties that you add to an encyclopedia by extending its metamodel with usrprops.txt.
To publish information contained in usrprops.txt file
Open the file and add a PUBLISHER command to each property that you want to publish. For example:
PROPERTY "Some user property” {
PUBLISHER
{
SHOW YES|NO ` default is YES
ORDER nnnn ` default is zero (do not sort)}
}
To hide a property
Use the following code:
PROPERTY "Some_property” {
PUBLISHER
{
SHOW NO 'this will hide property 'Some_property'
}
}
To change printed property order
Use the following code:
PROPERTY "Some_property-1” {
PUBLISHER
{
ORDER 2
}
}
PROPERTY "Some_property-2” {
PUBLISHER
{
ORDER 1
}
}
This code will change the order. Some_property-2 will be printed above Some_property-1.
In the System Architect reporting system, you must open each report used in the System Architect Publisher template, and specify the SAUsrProps metric for the report. The report must also specify XML output (if you select Text output, the SAUsrProps metric will not work).
See also
Generating a website