Configuring the Tags widget
Use the Tags widget to display tags on your page. The tags are then used to filter content. By clicking different tags from the list of tags displayed on the webpage, the user can filter the content on the page.
PREREQUISITES: You have created at least two tags.
For more information about when and how to use tags, see Using tags.
To configure the Tags widget, perform the following:
- After you have dragged the Tags widget on your page, click Edit button in the upper-right corner of the widget.
The Edit window appears in advanced mode.
- In BaseUrl input field enter the URL name of the page which content you want to filter using tags.
This page can be either the same page on which the Tags widget is, or it can also be another page.
For example, you can display the tags on one page of your website, but if the user clicks a tag, the system opens another page and filters its content.
NOTE: You enter the URL name in the following format ~/<URL name of page>. 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), then in BaseUrl input field you enter ~/about-us.
You can find out the URL name of a page in the address bar of the browser, when a page is opened in content editing mode. The URL name is the name after the name of the project (http://…/project name/page-name/…) or you can see the URL name in the properties of the page. For more information, see Editing the properties of a page.
- To filter the items tagged with a particular tag according to their content type, you use input field ContentType:
| To display only: |
In ContentType field, enter: |
| Blog posts |
Telerik.Sitefinity.Blogs.Model.BlogPost |
| Events |
Telerik.Sitefinity.Events.Model.Event |
| News |
Telerik.Sitefinity.News.Model.NewsItem |
| Images |
Telerik.Sitefinity.Libraries.Model.Image |
| Videos |
Telerik.Sitefinity.Libraries.Model.Video |
| Documents |
Telerik.Sitefinity.Libraries.Model.Document |
For example, when you click a tag and you want only events tagged with this tagged to be displayed, in ContentType enter Telerik.Sitefinity.Events.Model.Event.
- Click Save.
-
The system saves the setting and closes the editing mode of the widget. Tags are displayed in a list. The more items are tagged with a particular tag, the bigger font is the system using to display this tag.
For more information about creating tags, see Creating a tag.
For more information about how to tag a content item, see Adding categories and tags to a content item.
For more information about configuring other properties, see Advanced configuration of widgets.