MakerMike Renderer
Values from the Query:
For All HTML Fields
You can access a specific column index:
<mm-column><COLUMN_NAME>[<INDEX>]</mm-column>
For the Template Section Only
This format will be rendered as each value returned by the query result.
<mm-column><COLUMN_NAME></mm-column>
Text Resources
For all fields you can access text resources with the following format:
<mm-text><PATH_SEGMENT_NAME></mm-text>
Usage example:
<h1><mm-text><PATH_SEGMENT_NAME></mm-text></h1>
Image Resources
For All HTML Fields
You can access image resources with the following format:
<mm-image><PATH_SEGMENT_NAME></mm-image>
Allowing you to use the image resource in an <img> tag.
Usage example:
<img> src="<mm-image><PATH_SEGMENT_NAME></mm-image>" width="auto" height="auto">
Path Segments
For All HTML Fields
You can access path segments if you have declared at least one in your page path with the following format:
<mm-path-segment><PATH_SEGMENT_NAME></mm-path-segment>
Example of a page path with multiple path segments:
user_info_page/<user_name>/<user_last_name>
Example of valid values for the page path:
user_info_page/john/williams
To get the name john value from the page path, you can use the <mm-path-segment> tag, between the tag, you have to write the desired path segment name, in this case user_name, so your tag should look like:
<mm-path-segment>user_name</mm-path-segment>
To get the last name williams value, you can do:
<mm-path-segment>user_last_name</mm-path-segment>
Portlet Tags
For All HTML Fields
Portlets can be referenced in the html column of Page table and in any html column of Portlet table such as pre, template etc.
Usage example:
<mm-portlet><PORTLET_NAME></mm-portlet>
Export Variables
For All HTML Fields
You can access export variables from the exports column with the following formats:
<mm-export><EXPORT_VARIABLE_NAME></mm-export>
Usage example:
<h1><mm-export><EXPORT_VARIABLE_NAME></mm-export></h1>