Products
Powered By

Osetailer-doc is an OSEtailer OSELIB taglib with taglib the actual OSELIB package. It contains several powerful tags for the templating document. With the osetailer-doc taglib you are able to remove all content from the template giving the template the job of presentation layout. The content is managed in files with a .cmf type and should contain only a few html and taglib tags. I've been limiting the tags in the content to html <p> <br> and taglib <doc:link ...> tags. The template documents live in the pages directory of the webroot.

The doc:page tag is a powerhouse tag that renders the DOCTYPE tag, the opening html tag, the complete head tags including the title and style, the opening body tag and the closing doc:page tag will render the closing body and html tags. I forgot to mention in that last sentence that doc:page also renders the appropriate div tags with style class and style id as desired. Unless specified the style class equals the product value given and the style id equals the application given.

Tag Idattributerequirementvalue typedefault valuedescription
doc:page This is the initializing tag and is required for other tags to work properly.
 productrequiredstringnoneThis defines the product level of directories, message properties and the default style class.
 applicationrequiredstringnoneThis defines the application level of directories, message properties and the default style id.
 pagerequiredstringnoneThis defines the page level of directories, message properties.
 autostyleoptionalbooleantrueUse auto generated style class and style id?
 styleClassoptionalstringautostyle ? product : nullThe class value of the style attribute.
 styleIdoptionalstringautostyle ? application : nullThe id value of the style attribute.
doc:pagehead This tag uses the ApplicationResources properties file keys to generate the h1 and h2 headers. The h1 header is searched for using header as the key value. It builds upon the header value by also search for product.header and product.application.header keys. The previous values of header and product.header may be erased by using a .override key like product.application.header.override. The h2 header ApplicationResources properties key is byline and is treated the same as the h1 header key.
 styleClassoptionalstringautostyle ? product : nullThe class value of the style attribute.
 styleIdoptionalstringautostyle ? application : nullThe id value of the style attribute.
doc:heading This tag uses the ApplicationResources properties file keys to generate heading level tag with the specified key value.
 leveloptionalinteger1The heading level value. Because of HTML contraints the max value is 6.
 keyrequiredstringnoneThe ApplicationResources properties key for the heading value.
 styleClassoptionalstringautostyle ? product : nullThe class value of the style attribute.
 styleIdoptionalstringautostyle ? application : nullThe id value of the style attribute.
doc:zone This tag includes the .cmf file and surrounding it with div tags giving the style class and style id attributes.
 idoptionalstringcenterThe cms directory and style id specification. This will look for the named cmf file in a directory with the id name. For example it will cms/product/application/center/foo.cmf then will look for cms/product/center/foo.cmf then look for product/center/foo.cmf. A file not found will give unexpected results.
 cmfoptionalstringpageThe cms .cmf file specification.
 styleClassoptionalstringautostyle ? product : nullThe class value of the style attribute.
 styleIdoptionalstringautostyle ? application : nullThe id value of the style attribute.