Most Powerful Open Source ERP

Guideline Document Content Does Not Contain $Macros

Macros introduce dependencies and reduce portability of a document.
  • Last Update:2019-07-15
  • Version:001
  • Language:en

Document Content Does Not Contain $Macros

It is not allowed to use macros (${this_is_a_macro}) in web pages. In case elements like a table of content needs to be added to a document, please define this on the websection by declaring a renderer for this web section and have the renderer load the default container and content layout and then render the actual page differently.

Currently allowed exceptions include:

  • Sale Offer/Sale Order generation - placeholders for dynamic table integration

The same applies to hrefs where by default no ${placeholder} should be used either.

Currently allowed exceptions include:

  • Use of SubstitutionMappingDicts is discouraged, because this makes a document viewable correctly only in the context of the respective web section and potentially throws errors when a mapping dict is not accessible through acquisition (most of dicts I found were located in the custom skin folder, bad enough).