Changeset 1863918
- Timestamp:
- 04/25/2018 02:53:47 AM (8 years ago)
- File:
-
- 1 edited
-
c9-variables/trunk/README.txt (modified) (7 diffs)
Legend:
- Unmodified
- Added
- Removed
-
c9-variables/trunk/README.txt
r1863913 r1863918 28 28 29 29 * Create a variable using **C9 Variables**, say `ProductFeatures`, with the following content. 30 ``` html30 ``` 31 31 <ul> 32 32 <li>Create new content.</li> … … 37 37 ``` 38 38 * 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 ``` html39 ``` 40 40 Welcome to the release of our latest product that offers the following key features. 41 41 [c9-vars-insert name="ProductFeatures"] … … 52 52 * Create a variable, say `Promo Code`, with content as `CLOUDNINE`. 53 53 * Refer to this variable wherever you would like to access the promotion code. Example 54 ``` html54 ``` 55 55 <a href='http://example.com/product?coupon=[c9-vars-insert name="Promo Code"]'>Click here</a> to claim your promotion code. 56 56 ``` … … 66 66 * Create the same variable `site` with value as `example.com` in your production site. 67 67 * Now, you can author links in your content hassle free using the `site` variable. Example 68 ``` html68 ``` 69 69 <a href='http://[c9-vars-insert name="site"]/products/MyCoolProduct'>Click here</a> to visit the MyCoolProduct. 70 70 <a href='http://[c9-vars-insert name="site"]'>/blogs</a> … … 79 79 80 80 * Create a variable, say `Nested Content`, that refers to the above `ProductFeatures` variable with the following content. 81 ``` html81 ``` 82 82 The following content is from the <strong>ProductFeatures</strong> variable. 83 83 [c9-vars-insert name=’productfeatures’] … … 92 92 93 93 * 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 ``` html94 ``` 95 95 <div style="display: block;"> 96 96 ``` 97 97 * To keep the content hidden on the production site, set `Magic Button` variable value to the following. 98 ``` html98 ``` 99 99 <div style="display: none;"> 100 100 ``` 101 101 * Author the content. Following is a sample content for demonstration purpose. 102 ``` html102 ``` 103 103 [c9-vars-insert name=’magic-button’] 104 104 This content shows the features of the latest release. … … 116 116 * Create a variable for space, say `space`, with value as `draft`. 117 117 * Have your referring pages use the above variable when referring to the links. For example 118 ``` html118 ``` 119 119 Restricted page 120 120 <a href='http://example.com/documentation?space=[c9-vars-insert name="space"]'>Documentation</a>
Note: See TracChangeset
for help on using the changeset viewer.