#1 April 2, 2012 11:48am

Farnsworth
Member
Registered: March 30, 2012
Posts: 13

Sharing Template Resources

In BigTree, page resources are template agnostic. Because resources are tied to pages, not templates, content is not deleted when switching to a new template, so long as the same resource id is used in both templates. Using a standard naming convention in all of you templates can save you, and your users, lots of work.

I preface all common resources with "page_". "page_header" and "page_content" in the majority of templates. "page_gallery", "page_intro", "page_subheader", etc. By using this naming convention, I can switch a page to a gallery template, for example, and not re-enter the heading and page content.

I'm sure there are other cool ways to take advantage of resource naming. Any thoughts?

Offline

Board footer

Powered by FluxBB

The Discussion Forum is not available on displays of this size.