Example: Product Features Variable

Following content uses a variable called ProductFeatures to reuse features across site (such as, product page, blog post, etc.)

[c9-vars-insert name=’productfeatures’]

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.

https://cloudnineapps.com/courses/smart-home?promo=[c9-vars-insert name=’promo-code’]

Result:

https://cloudnineapps.com/courses/smart-home?promo=CLOUDNINE
 

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.

http://[c9-vars-insert name=’site’]/blogs

Result:

http://cloudnineapps.com/blogs
 

Example: Nested Variable

Following content demonstrates a variable called Nested Content that uses another variable ProductFeatures. You can use other shortcodes as well.

The following content is from the <strong>ProductFeatures</strong> variable.
[c9-vars-insert name=’productfeatures’]

Result of using the ‘Nested Content’ variable:

The following content is from the ProductFeatures 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.

[c9-vars-insert name=’magic-button’]
This content shows the features of the latest release.
</div>
 

Result (with MagicButton set to ‘<div style="display: none;">’):

This content shows the features of the latest release.

Result (with MagicButton set to ‘<div style="display: block;">’):

This content shows the features of the latest release.