What is a Template Object?

Template Objects are inserted in the DOM. Template Objects have a tag.

 

Attributes:

  • Tag:
    • HTML Tag like style, div, …
    • Special Tags: none, break
    • “None” objects, are only for organisation, this does not generate any object in the DOM.
    • “Break” Tags are special, which get replaced by the “<pagebreak></pagebreak>” tag, which is used in mpdf to get an page break.
  • Description
  • Query + Repeated field
  • Payload
  • Inner HTML
  • Sort Order
  •  

Template Object could have Subobjects

 

Template Object could have Attributes.

Example: onlick, style, ….

Options:

TODO: THIS IS A GLOBAL OPTION!! 

 

The Option filter_xxxx allows you to use constant placeholders in html template object, eg to use the same query with different results.

SELECT * FROM table WHERE id = ##id##

Key: filter_id
Value: 1  

Will replace ##id## in query with 1.

SELECT * FROM table WHERE id = 1