Use replaceable text in custom templates
When you create a template for others to use on your site, imagine the text that needs to change whenever the template is used, which should display in a consistent format.
For example, in a module template, you may want to always show the module's title, code, and tutor at the top of the first page. You can help maintain this consistency by using replaceable text in your template. When someone creates a page or set of pages from your template, the replaceable text is substituted with new text entered by the person creating the page.
- Browse to the site containing your template.
- Go to Edit > More, then select the Current site tab. You need edit or admin permissions on your site's home page to do this.
Select the template you wish to edit, then select Edit:
- The SiteBuilder banner changes to green, denoting the transition to the template editor.
- Select Edit replaceable text.
- Select Create replaceable text.
In the Site templates pop-up window, enter the text to replace. All instances of this text in the template will be replaced by a term entered by the page editor. To avoid unintended replacements, use a unique term – for example:
Enter brief instructions to other editors, such as:
Enter your module code
- Specify whether you want the replaceable text to be case sensitive or not.
Specify whether you want to replace instances of the text in the page content and page properties (headings, title bar captions, link captions, descriptions and keywords) – or the page content only.
- Select Save.
Continue to add more replaceable text as required – for example, the module title and tutor.
- When you've finished, select Done.
Once you make your template visible in the template gallery, it's available for other people to choose when they create a page on your site. When someone selects your template from the gallery, they see an extra field for each piece of replaceable text alongside the instructions you specified.
Email webteam at warwick dot ac dot uk
How to report a problem