You use the Tags widget to display tags on your page. You use tags filter content by clicking different tags from the list of tags displayed on the webpage.
For details about tags, see Use tags.
After you place the Tags widget on your page, open the widget designer by clicking the Edit button in the upper-right corner of the widget.
In the Tags dialogue, configure configure what tags are displayed and how:
All tags All tags will be displayed in the list.
Selected tags... A custom selection of tags is displayed. To select one or more tags you want to display, click the Select button.
Only tags used by content type... A custom selection of tags is displayed. Only tags assigned to the selected content type items will be displayed in the list.
Show item count The count of all items to which the tag is assigned is displayed.
Show empty tags Tags that are not assigned to any item are displayed.
Sort tags By default, tags are sorted by their title (A-Z). You can select a different sorting criterion:
Template Select the template you want to use to list tags on the webpage.
CSS classes Expand More options section to specify CSS class names and apply additional CSS classes to the Tags widget.
PREREQUISITES: You must create custom classifications first. For more information, see Create custom classifications.
To display a custom simple list classification, you can use the Tags widget. Complete the following:
In Advanced settings, you specify individual properties of the widget - the TemplateName. This property gets the template you chose in the Template dropdown menu.
Model settings display all properties directly bound to the Tags widget model. Access these properties by clicking the Model button in Advanced settings and configure them:
NOTE: You must enter the URL name in the following format ~/. For example, if the title of the page is About us, the automatically generated URL name is about-us (in case you have not changed it). In BaseUrl input field you must enter ~/about-us.
~/
about-us
ContentId Use this property if you want to only show tags that are assigned to a specific content item. To do this, specify the content item ID. For example, if you want to only show tags that are assigned to a news item News 1, specify its ID in the ContentId property. In the Only tags used by content type... option select News.
ContentProviderName If you have more than one provider added to the selected content type, you can use a provider different than the default one. To do this, specify the name of this provider.
NOTE: If you leave this property value empty, the default provider is used.
ContentTypeName Gets the content type you chose in the Only tags used by content type... option:
CssClass Gets and sets an additional CSS class.
DynamicContentTypeName If you selected a dynamic content type in Only tags used by content type... option, the content type name will be populated in this property.
FieldName Gets the name of the property that contains the taxonomy.
SerializedSelectedTaxaIds In case tags are specifically selected, the IDs of the selected tags are serialized and populated in this property. For example: ["3f47d0b8-2d22-6e58-888c-ff0000bfc4e0"]
["3f47d0b8-2d22-6e58-888c-ff0000bfc4e0"]
ShowEmptyTaxa Gets whether to show tags that are not assigned to any item.
ShowItemCount Gets whether to show the count of all items to which the tag is assigned.
SortExpression Adds additional sorting expression for the tags. The default value is Title ASC.
Title ASC
TaxaToDisplay Gets the value you selected in the Which tags to display? option:
TaxonomyId Specifies the taxonomy ID which taxons will be displayed. By default, the selected taxonomy is Tags.
TaxonomyProviderName If you have more than one provider added to the selected taxonomy, you can use a provider different than the default one. To do this, specify the name of this taxonomy provider.
UrlKeyPrefix Gets or sets the URL key prefix, which is used when building and evaluating URLs together with the ContentView controls.
UrlEvaluationMode Use this property to specify the URL evaluation mode filter - the URL segments or query string. The supported options are:
http://[sitefinity]/page/-in-tags/tags/site1-tag1
http://[sitefinity]/page?taxonomy=tags&propertyName=tags&taxon=site1-tag1
TaxaCountLimit Use this property to specify the maximum number of taxa to be displayed.
Increase your Sitefinity skills by signing up for our free trainings. Get Sitefinity-certified at Progress Education Community to boost your credentials.
This free lesson teaches administrators, marketers, and other business professionals how to use the Integration hub service to create automated workflows between Sitefinity and other business systems.
This free lesson teaches administrators the basics about protecting yor Sitefinity instance and its sites from external threats. Configure HTTPS, SSL, allow lists for trusted sites, and cookie security, among others.
The free on-demand video course teaches developers how to use Sitefinity .NET Core and leverage its decoupled architecture and new way of coding against the platform.
To submit feedback, please update your cookie settings and allow the usage of Functional cookies.
Your feedback about this content is important