Create a style element tag

The style element tag is used to reference a style sheet component selected as the default style sheet in an authoring template, or a style sheet component referenced within a site area or content item using a component reference.

To directly reference a specific style sheet component, use a component tag.

This is the format of a style element tag:

 [StyleElement source=" " name=" " start=" " end=" " ]

To create a style element tag:

  1. Click Insert a Tag from a presentation template or element design field. The Tag Helper dialog opens.

  2. Select Style sheet as the tag type.

  3. Select a source type. This is added to the tag as the source=" " parameter:

      Template

        This option uses the style sheet specified in the authoring template of the current content item. You do not specify a name when using template as the source. To use this option, have selected a default style sheet in the related authoring template.

      Path

        This option uses the first style sheet element matching the name, specified in the name parameter, from either the current site area or content item in that order. To add a style sheet to a site area or content item, you need to use a component reference element and select a style sheet component as the component reference.

      1. If a source type of "path" is selected, also select a content item and then select the component reference element used to reference the stylesheet.

  4. Click OK to add the tag to design.

Once you have added the tag to design, you can also add the following parameters to the tag:

Table 1. Additional tag parameters

Tag parameters Details
start=" "

end=" "

The start and end attributes are used to wrap the data returned by a tag within other tags, such as HTML. These attributes are not mandatory.


Parent

Create web content tags

December 14, 2011
   

 

Made style sheet two words. Apr 1, 2011 1:26:17 PM

});


+

Search Tips   |   Advanced Search