Template Cutin Guide

Template Cutin Guide

Overview Uploading a Template layouts sub-page template <$headerplugins> $logo1 <$menu> <$pagetitle> <$body> <$section> <$blog> <$sidebarcontrol> <$sidebarmenu> $single <$snippet> <$include> edittext label $viewlink <$cartitems> <$carttotal> <$domain> <$userfullname> <$userid> <isHomePage> <IsNotHomePage> <else> logic options <$copyright> <$trademark> <$date> <$year> File Versioning Social Media Links

logic options

Purpose Logic macros allow for additional processing inside a content section
Special NotesFor ColdFusion developers, any valid ColdFusion code can be entered inside a section
Example Usage

<first></first> - First Row
HTML entered inside this tag will only be processed for the first row

<not first></not first> - Not First Row
HTML entered inside this tag will only be processed if it's not the first row

<last></last> - Last Row
HTML entered inside this tag will only be processed for the last row

<not last></not last> - Not Last Row
HTML entered inside this tag will only be processed if it's not the last row

[] - Row Number (for text)
The [] will be replaced with the row number. This is currently only used for the $title and $link macros

Example:

For the below code segment, only the last feature section requires a "last" class.


BEFORE

<p>
     <div class="feature">
          content...
     </div>
     <div class="feature">
          content...
     </div>
     <div class="feature last">
          content...
     </div>
</p>

AFTER

<p $repeat name="feature" initorws="3">
     <div class="feature <last>last</last>">
          content...
     </div>
</p>