Utilizing Shortcodes in Menterprise Modules

3 years ago

Utilizing Shortcodes in Menterprise Modules

I am not conviced I used the right terminology in this video.

It should have been XRef Varibales and Static Variables.

Static Variables
(since 2.0) Unlike normal variables, Static Variables are spun once and then repeated. This is great for things like cities or locations, where you want your content to talk about the same thing consistently.

Syntax
Define: [@=city]{New York|Boston|DC}[/spin]

Use: [@city]

Example 1
Input:

[@=city]{New York|Boston|DC}[/spin]
<h1>All About [@city]</h1>
Content about [@city]
<h2>Top Things to Do In [@city]</h2>
MPSS:

<h1>All About New York</h1>
Content about New York
<h2>Top Things to Do In New York</h2>
Notice it's all New York? Because @city was spun out to New York once, and then used each time. If you were to spin it again, you may get DC or Boston, but every occurance would be the same. Hence, it's "static".

Loading comments...