Open the menu

    Layout File

    The Layout File is an HTML file that defines the presentation of a page. By adding or editing the properties of a page, it is possible to configure how your final content will be assembled according to the topics "Page Management" and "Channel Management". If the chosen option is " Layout File ", the page will use the provided HTML, transforming its static content into dynamic content, according to the page settings. The HTML file must be placed in the classpath (it can be in the web application of the portal or in a module installed in the portal), in lumisdata/shared/def or in the def directory of a theme.

    Any HTML file can be a Layout File, without the need to be an XHTML, but its content must be valid. For example, the tag <table> needs to be closed, but the tag <br> does not need to.

    In order to transform static information into dynamic information, it is necessary to add markers in the HTML. The markers define which static information should be transformed into dynamic information and how the transformation should occur. The original static information is considered a sample HTML, and should be kept in the Layout File to facilitate prototyping of pages.

    The markers of the Layout File are distinguished from tags and attributes of HTML through namespaces. There are two possible namespaces:

    • http://www.lumis.com.br/lumisportal/xsd/layoutfile/page: Defines tags and attributes related to the page;
    • http://www.lumis.com.br/lumisportal/xsd/layoutfile/el: Defines tags and attributes allowing inclusion of Expression Language on the page.

    The main marker of the Layout File is the tag page:holder. This tag is used to define which element of the HTML will be used to define an area where interface instances can be dragged on the page.

    Example