{boilerplate}
Plugin: Scaffolding Plugin, from version 1.4.1 until version 1.4.18
Deprecated! Imports and renders the current version of a template.
Description
What {boilerplate} does essentially is that it takes the text content of a Page Template (Note: not a Scaffold! You get to Page Templates via 'Browse Space -> Templates') and render that text in the context of the current page. It doesn't matter if there is a {scaffold} macro on that template or not, it just renders the text as wiki text. This is different than creating a page with a template as in the built-in system because that will copy-n-paste the text in once, but if you update the template, the page you created with the template will not get updated.
Usage
Parameters
| Name |
Required |
Default |
Description |
| [default] | | | The name of the page template to import and render. |
Notes
You have a set of products and want all the product pages to have a similar structure. Here are the steps:
Create the template
- First, create a new Page Template (Browse Space -> Templates -> Add new template)
- Then put something like this as the template content:
- Save the template with a name of 'Product Template'
Create the product page
- Now, add a new page
- As the page contents, put the following:
 | Note! This is the name of the template, not the scaffold! |
- Save the page (as, for example, 'Widget 1')
- Once it's saved, you'll be asked to enter the details for the 'Title', 'Cost' and 'Shipping' fields.
- Repeat ad-nausium for all of your products.
Update the original template
After a while, you decide you really want the costs to be listed before the summary. Also, you'd like to specify a release date.
- Edit the 'Product Template' template (Browse Space -> Templates -> Edit)
- Change the text to the following:
- Save your changes and check your product pages. You will need to edit them and fill in the release date for each.
See Also