Skip to content

Including Modules

Nick-smallworld edited this page Apr 28, 2011 · 4 revisions

Including Modules Defined via Custom Field

  1. Create a single-line text custom field called “Partner Name” and name the template tag “PageDataPartnerName”
  2. Create a template module for each partner “Partner - Lance Arthur”
  3. 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>
    
  4. Create a page with and enter “Lance Arthur” as the value of the “Partner Name” custom field.

  5. Publish and View!

Clone this wiki locally