Including Modules - Hiranyaloka/Documentation GitHub Wiki
- Create a single-line text custom field called “Partner Name” and name the template tag “PageDataPartnerName”
- Create a template module for each partner “Partner - Lance Arthur”
-
Add the following code to your Page archive template (or module, if combining with the above multiple page template solution):
<mt:if tag="PageDataPartnerName"> <mt:setvarblock name="partner_module">Partner - <$mt:PageDataPartnerName$></mt:setvarblock> <$mt:include module="$partner_module"$> </mt:if>
Create a page with and enter “Lance Arthur” as the value of the “Partner Name” custom field.
- Publish and View!