RocketCDS
Installation
Integration
RocketCDS
Installation
Integration
Installing AppThemes
Partial And Shared Templates
Razor Tokens
Dependancy
JQuery Validation
DNN Search
File Download
Rocket Tools
ChatGPT
DeepL
Simplisity JS
Command Attributes
Methods
Class Events
Field Data
Utility Functions
Ajax DropDownList
RocketContent
Create an AppTheme
Adding CSS and JS
Adding Resx
Multi-Row AppTheme
DataObjects
Razor Tokens
Shared Templates
Snippets
ArticleLimpet
ArticleRowLimpet
RocketDirectory
Create an AppTheme
DataObjects
Razor Tokens
Shared Templates
MenuManipulator
Category Menu
Text Search
Property Filter
Tag Filter
Secure Document
Snippets
RSS feed
Related Articles
ArticleLimpet
RocketForms
Create an AppTheme
DataObjects
Functionality
Module Settings
# Tag Filters Tag filters are used to select only articles with those properties attached. The templates to deal with tag filters can use special razor token to help build a standard tag filter system. **Token to add a tag button.** ``` @TagButton(p.Key, p.Value, "rocket-tagbuttonOff", "rocket-tagbuttonOn",sessionParams) ``` **Token to inject the required JS for the tag system.** ``` @TagJsApiCall(moduleData.SystemKey,"#rocket-blog", "rocket-tagbuttonOff", "rocket-tagbuttonOn", sessionParams) ``` *Example of tag button on the website view* ``` @inherits RocketDirectoryAPI.Components.RocketDirectoryAPITokens
@using DNNrocketAPI.Components; @using RocketDirectoryAPI.Components; @AssigDataModel(Model) @{ var displayList = new List
(); }
@foreach (var g in moduleData.GetPropertyModuleGroups(catalogSettings)) { foreach (var p in propertyDataList.GetPropertyTagList(g.Key)) { if (!displayList.Contains(p.Key)) {
@TagButton(p.Key, p.Value ,sessionParams)
displayList.Add(p.Key); } } }
@TagButtonClear("Effacer", sessionParams)
@TagJsApiCall(moduleData.SystemKey, "#rocketlistcontainer", sessionParams) ``` Create property group checkbox in module settings. "ThemeSettings.cshtml" to select which property groups should be included on the website view. ``` @FilterGroupCheckBox(groupId, groupName) ``` Example: ```
@ResourceKey("RC.propertygroups")
@foreach (var p in groupDict) {
@FilterGroupCheckBox(p.Key, p.Value)
}
``` ## Module Template Definition A module template needs to be created on the AppTheme with an entry in the dependancies files. This enables the tag filters to be selected from the module settings. *Exanple of dependancy file* ```
Tags.cshtml
Tag Filters
```