Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Next »

Overview

FarCry allows you to nominate whatever naming structure you like for templates. However, there is a special convention for FarCry template naming that can help you avoid unnecessary coding and configuration. Just follow the default naming standards for templates and you'll find a lot of things just fall into place.

Standard Webskins

Webskins are views for the content types in your system and should be located in your project's ./webskin/typename folder, where typename is replaced with the exact name (ie. case sensitive) of the relevant content type.  For example, a template called displayPageStandard.cfm for a dmNews content type would be located at ./webskin/dmNews/displayPageStandard.cfm

Name

Purpose

Security

display*

"display" is the prefix for any template that will be shown in the presentation tier.

Anonymous users can view.

displayPage*

"displayPage" is the prefix for templates that display a full page, ie. typically incorporating HTML/HEAD/BODY elements.

 

displayPageStandard.cfm

The default full page view.  In the absence of any additional information, the framework will attempt to render this view.

 

displayTeaser*

"displayTeaser" is the prefix for templates that show a teaser view or excerpt for a content item. Often these are referenced by publishing rules or in listings of content items.

 

  • No labels