Having your Module Output Template as Inline code provides an easy way to customize the HTML which is returned by the module.
-
Login to Agility.
-
Navigate to Settings > Module Definitions.
-
Click New Module Definition.
-
Enter the Name, ReferenceName, and Description for your module.
-
Create fields for your Module via the Form Builder tab for your module definition.
-
Click the Output Template tab and select Inline Code.
-
Save your Module Definition and return to the Output Template tab and select Edit Inline Code or navigate to Settings > Inline Code > Module Definitions > {Your Module Name}.
-
HTML will be automatically generated with your properties available for use. Simply customize the HTML to your liking. To access module properties, use the following syntax: @Model[“fieldReferenceName”]
-
Click Save when satisfied and preview your changes. When ready to publish, click Publish to synchronize the template with your production web server.
Comments
0 comments
Please sign in to leave a comment.