Example: Product Features Variable
Following content uses a variable called ProductFeatures to reuse features across site (such as, product page, blog post, etc.)
Result:
- Create new content.
- Modify content.
- Search content.
- Delete content.
Example: Promo Code Variable
Following is a link that uses a variable called Promo Code to manage promotion code in one place only.
Result:
Example: Site Variable
Following is a link that uses a variable called site to dynamically update link when content is promoted from development to production.
Result:
Example: Nested Variable
Following content demonstrates a variable called Nested Content that uses another variable ProductFeatures. You can use other shortcodes as well.
[c9-vars-insert name=’productfeatures’]
Result of using the ‘Nested Content’ variable:
- Create new content.
- Modify content.
- Search content.
- Delete content.
Example: Magic Button!
Following is a link that uses a variable called Magic Button to keep the content visible only in the development site and keep content ready in production, but not visible yet. Make the content visible on day of release by simply updating the variable value. It uses the HTML div tag and display attribute as illustrated below.
This content shows the features of the latest release.
</div>
Result (with MagicButton set to ‘<div style="display: none;">’):
Result (with MagicButton set to ‘<div style="display: block;">’):