Plugin Directory

Changeset 1863918


Ignore:
Timestamp:
04/25/2018 02:53:47 AM (8 years ago)
Author:
nitinvp
Message:

Removed html format tag.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • c9-variables/trunk/README.txt

    r1863913 r1863918  
    2828
    2929* Create a variable using **C9 Variables**, say `ProductFeatures`, with the following content.
    30 ```html
     30```
    3131<ul>
    3232  <li>Create new content.</li>
     
    3737```
    3838* Now you can refer to this variable from another post or page using the `c9-vars-insert` shortcode. For example, here is a blog post snippet referring to the above `ProductFeatures` variable.
    39 ```html
     39```
    4040Welcome to the release of our latest product that offers the following key features.
    4141[c9-vars-insert name="ProductFeatures"]
     
    5252* Create a variable, say `Promo Code`, with content as `CLOUDNINE`.
    5353* Refer to this variable wherever you would like to access the promotion code. Example
    54 ```html
     54```
    5555<a href='http://example.com/product?coupon=[c9-vars-insert name="Promo Code"]'>Click here</a> to claim your promotion code.
    5656```
     
    6666* Create the same variable `site` with value as `example.com` in your production site.
    6767* Now, you can author links in your content hassle free using the `site` variable. Example
    68 ```html
     68```
    6969<a href='http://[c9-vars-insert name="site"]/products/MyCoolProduct'>Click here</a> to visit the MyCoolProduct.
    7070<a href='http://[c9-vars-insert name="site"]'>/blogs</a>
     
    7979
    8080* Create a variable, say `Nested Content`, that refers to the above `ProductFeatures` variable with the following content.
    81 ```html
     81```
    8282The following content is from the <strong>ProductFeatures</strong> variable.
    8383[c9-vars-insert name=’productfeatures’]
     
    9292
    9393* Create a variable for magic button, say `Magic Button`, that uses the HTML `div` tag and `display` attribute. You can also use a version based name, such as, `Magic Button V1.0`. To keep the content visible on the development site, set `Magic Button` variable value to the following.
    94 ```html
     94```
    9595<div style="display: block;">
    9696```
    9797* To keep the content hidden on the production site, set `Magic Button` variable value to the following.
    98 ```html
     98```
    9999<div style="display: none;">
    100100```
    101101* Author the content. Following is a sample content for demonstration purpose.
    102 ```html
     102```
    103103[c9-vars-insert name=’magic-button’]
    104104This content shows the features of the latest release.
     
    116116* Create a variable for space, say `space`, with value as `draft`.
    117117* Have your referring pages use the above variable when referring to the links. For example
    118 ```html
     118```
    119119Restricted page
    120120<a href='http://example.com/documentation?space=[c9-vars-insert name="space"]'>Documentation</a>
Note: See TracChangeset for help on using the changeset viewer.