Skip to Main Content
Software Help

Including Parameters Values in your Content

NOTE: If you are planning to use this let me know! There are some odd behaviors here involving how our editor handles the special codes so depending upon your plans this may not fit your needs.


In some situations it is important to be able to have your content change in very minor ways based upon how it is requested. This might be the inclusion of a different phrase or having content change more dramatically based upon how the page was requested (inclusion of special parameters).

Although you could use javascript in your page to do most of this, in cases where other special custom server controls are being used, this trick causes the server to process the parameters and apply them to your content area before any information is returned to the client.

This system uses the idea of defining variables which can then be inserted in an many locations as desired throughout your page.

Custom text format used for this feature:
{var default:name=value} Set the default value for a variable. This value will be used whenever your page is viewed and the request URL does not include a parameter to set the value.
{var:name} Insert the value of the named variable. The value can be set using the previous "default" method and is changed to the URL query/parameter value if provided.

Usage Examples:

If you have a page with the following content.

    "This is my page. The value is {var:test}."

When viewing this page using the URLs at the left, it's content will display as follows:
URL Used Page Content Returned Notes
http://<your page path>/default.aspx "This is my page. The value is ." This occurs because no value was specified for the "test" variable.
http://<your page path>/default.aspx?text=fun "This is my page. The value is fun." This occurs because the value was specified as a parameter in the URL.

If the page content were modified to:

"{var default:test=message}This is my page. The value is {var:test}."

Then the results of these same URL requests would be:
URL Used Page Content Returned Notes
http://<your page path>/default.aspx "This is my page. The value is message." This occurs because the value was specified by the default value setting.
http://<your page path>/default.aspx?text=fun "This is my page. The value is fun." This occurs because the default value was specified as a parameter in the URL and therefore changed.