Templates functionality available:
- wzTemplates capabilities:
- A standard Discuss post with existing capabilities (tagging, images, links, embedding), primarily for static content.
- Can reference another post containing a wzTemplate, enabling nesting.
- wzTemplates will be available on all Discuss forums.
- You are welcome to test the templates.
In order to use the new template functionality, given some post you want to use as a template, copy its’ topic id and post number in the post (first post is number 1). When you want to use the template, insert the following bbcode tag into the post:
[wzTemplate topic=<topic_id> post=<post_number>][/wzTemplate]
Templates also support named parameters. In order for a post to use a named parameter in its’ content, wrap it in {{}}. For example:
This is a greeting.
Hello {{first_name}}
Parameters are provided by name, prefixed with p_. For example, in order to use that template:
[wzTemplate topic=123 post=1 p_first_name="Shira"][/wzTemplate]
Will render as
This is a greeting.
Hello Shira.
See example the Greeting Template post and the usage of the greeting template.
See example of the Red Template post and the usage of the red template.
This is the option for templets in a post
