Return to doc.sitecore.com

Documentation

 

1.  Description

The Text XSL Rendering is designed to display the value of the "text" field in the Sitecore content tree. The appearance of the displayed text can be controlled via the rendering’s properties. The Text Rendering can be setup to display the static text as well.   

Please refer to the XSL section for more information on about creating XSL renderings.

2.  Installation Guide

The XSL Text rendering is distributed as a standard Sitecore package. Thus to start using it, you should install the package. Please refer to the ' Installing Modules and Packages ' article if you are not familiar with the standard Sitecore Packager tool.   

After the package installation, you will see the XSL Text rendering in the list of XSL renderings.   

Thus you will be able to place it on a (sub)layout or tie via placeholder like any usual rendering.

 

3.  User Manual

The Text is an XSL rendering, thus you can work with it like with any other XSL rendering.

The Text XSL rendering is adjusted via several parameters.   

Open the Parameters tab of the rendering (double-click on the rendering) and set properties as described in the example below.      

    

You can also define the properties in the xslSimpleMenu rendering (see <!--parameter --> section in the rendering’s source code).   

Valid Attributes:  

 

StaticText

Property value:

The text which should be rendered.

 

TextClass

Property value:

The CSS class of the text.

 

TextField

Property value:

The field's name containing the text.

Note:

If the StaticText property is initialized, then the TextField property is ignored.

 

TextStyle

Property value:

The CSS style of the text.