CataBlog has a new Admin page dedicated to the CataBlog Template System. If you didn't notice, the template section is right under CataBlog's 'Add New' page. Here you may make your own template files to use with the ShortCode template parameter or edit the system templates, known as 'views' in CataBlog. There are four views:
DefaultThis template is used when you do not specify a template parameter in your ShortCodes.
SingleThis template is used when you enable the 'Public' option and view a Single CataBlog page.
ArchiveThis template is used when you enable the 'Public' option and view a CataBlog Category page.
StoreThis template is used to render the Buy Now Button.
All template files are stored in your WordPress uploads folder:
wp-content/uploads/catablog/templates/ and may be edited directly on the server as well. If, for whatever reason, you need to restore just the default template files, simply delete the templates directory inside the catablog uploads directory.
Editing a Template
To edit a template, all you do is directly manipulate the HTML code in the tabs of the CataBlog Template Admin Panel. You may paste or type your code in to the text box.
CataBlog uses a token system for inserting variable data into your template. By placing these tokens into your template code, which should look just like HTML otherwise, you can plug your catalog's values into your template. Here is a list of all the currently supported tokens with a description of their value.
Catalog Item Tokens
%MAIN-IMAGE%: The catalog item's primary image thumbnail, wrapped with an anchor tag for the LightBox.
%SUB-IMAGES%: All of the catalog item's secondary image thumbnails, each wrapped individually with a LightBox anchor tag.
%IMAGE-ORIGINAL%: The full url for each catalog item's original primary image upload.
%IMAGE-THUMBNAIL%: The full url for each catalog item's primary image thumbnail.
%IMAGE-LIGHTBOX%: The full url for each catalog item's primary full size LightBox image. This will point to the original upload if the "Render New LightBox Image" feature is disabled.
%IMAGE-PATH%: The full url path the LightBox images directory, if the LightBox is disabled it will point to the original uploaded file.
%TITLE%: The title for each catalog item
%TITLE-LINK%: The title rendered as a link for each catalog item. No link is rendered if the link value itself is empty.
%DESCRIPTION%: The description for each catalog item.
%EXCERPT%: A shorter version of the description.
%CATEGORY%: A comma separated list of each catalog item's categories.
%CATEGORY-SLUGS%: A string of category slugs for each catalog item, very useful for setting html class attributes.
%DATE%: The date for each catalog item. The format will match the Date Format in General Settings.
%TIME%: The time for each catalog item. The format will match the Time Format in General Settings.
%ORDER%: The order value for each catalog item.
%LINK%: The link value for each catalog item.
%PERMALINK%: The full path permalink for each catalog item.
%PRICE%: The price, without currency symbol for each catalog item.
%PRODUCT-CODE%: The product code for each catalog item.
%BUY-NOW-BUTTON%: This will render the buy now button for each catalog item with a price greater than zero. The store view in CataBlog Templates will be used to render this button.
Catalog System Tokens
%IMAGE-WIDTH%: The thumbnail width in pixels, this is set in Options Panels.
%IMAGE-HEIGHT%: The thumbnail height in pixels, this is set in Options Panels.
%LINK-TARGET%: The system wide link target, set this in the Options Panel.
%LINK-REL%: The system wide link relationship, set this in the Options Panel.
Deprecated Tokens Please, stop using these as soon as possible.
%PAYPAL-EMAIL%: The email address set in the store tab of the Options Panel.
%TITLE-TEXT%: The catalog item's title, no link will be wrapped around this title.
%IMAGE%: The url to the thumbnail image.
%IMAGE-FULLSIZE%: The url to the full size "LightBox" version of the image.