Directory styles

Build 1501 on 14/Nov/2017  This topic last edited on: 22/Mar/2016, at 16:39

There are two kinds of directory styles: table and grid.

There are two kinds of directory styles: table and grid.

Table

It is configured in the elements I4Config/tables/table. Each table has an attribute called @name and a list of columns in colRef with attribute called @name that must match a column in I4Config/columns/column/@name.

There is also a attribute called @hideMenu which if true will hide the listing menu.

Column

I4Config/columns/column has five attributes @name, @label, @width, @sort and @weight.

@name is the name of the column, as it is referenced by the attribute I4Config/tables/table/colRef/@name.

@label is the label for the column. If not set, then it defaults to the value of the <b>Name</b> property. If set to an empty string, then the column will have no title. It is then translated using the Default StringScope.

@width is the width in pixels of the column.

@weight is the weight of the column, the lower the number the quicker the column will get hidden when browser is made smaller. If -1 then column is not hidden. If 0 then column is not hidden and width can be changed, this is set to 0 if width is not set.

@sort is the sort for the column. Allows the column header to be selected to sort the results, needs to match a sort in the searchContext used.

 

The column has a I4Config/columns/column/xslt element, this list of xslt fragments allowing to render this column. The xslt fragment item used to render an object of a specific type is the one, which objectTypeName property matches the best the type of the object to be rendered.

Grid

The I4Config/tiles/tile is the xslt to display the grid or preview of an object.  The containing Node is the xslt fragment itself.

The tile has attributes @name, @searchContext , @objectTypeName and @hideMenu.

@name Optional name of this Xslt

@objectTypeName is the name of the optional object type this xslt fragment is associated to.

@searchContext is the name of the optional seach context this xslt fragment is associated to.

@hideMenu which if true will hide the listing menu.