PowerCMS 2 has a templating feature that adds useful functionality for certain websites. This feature is most commonly used for news websites and blogs and is not expected to be used by all PowerCMS implementations.
The following tutorial explains the process of setting up a template and how you can create new pages based on that template.
NOTE: Unless you have a specific use for a template you should not select the Use as template option for the pages you create in PowerCMS.
The first step in using the PowerCMS template feature is to create the template that the pages will be based on.
The template is added to PowerCMS like any other page but is distinguished by a different icon.
Content areas are added to the template just like you would any normal content location (page) in PowerCMS.
When you or your client adds new pages based on this template, the new pages will have all the same content areas as the template for them to modify to contain their new information.
As with a normal Content Location (page) in PowerCMS, you need to add the Developer Notes for each content area of your template, to the PHP page you wish to use for these pages.
When creating a new page based on your template you are not creating a new PHP file on your site. Instead, you are creating a different set of content for the same PHP file. This allows you (or your client) to quickly add new pages from within PowerCMS without having to create new files or enter any code.
Adding pages based on a template in PowerCMS can be performed by any Administrator.
Once you have created a new page based on a template in PowerCMS, you can quickly view that page by obtaining the URL variable that is to be added to the end of the template PHP page URL.
Now that you have the URL to use for your new page you can create links throughout your site to that new page you just created. You can insert the link directly within the HTML Editor for any content area in the CMS.
Also...
The PHP file that you applied the Developer Notes to will automatically display the most recent page's content that was added to the CMS. This way, you can easily use that page as a "Most Recent Article" or "Newest Blog Post" without having to update the link everytime you add a new page.
Comments will be sent to the author of this tutorial and may not be answered immediately. For general help from WebAssist, please visit technical support.
Sign in to add commentsYour friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.
These out-of-the-box solutions provide you proven, tested applications that can be up and running now. Build a store, a gallery, or a web-based email solution.