AddProcessDataResx
Description: Adds resource paths to the process data for later use by resource key tokens. Can include portal-specific, app-theme-specific, and optionally the core API resx paths.
Signaturepublic IEncodedString AddProcessDataResx(AppThemeLimpet appTheme, bool includeAPIresx = false)
Example
@DnnRocket.AddProcessDataResx(appTheme, true)
DropDownLanguageList
Description: Renders a dropdown list of enabled languages for the portal, with flags.
Signaturepublic IEncodedString DropDownLanguageList(SimplisityInfo info, String xpath, String attributes = "", String defaultValue = "", bool localized = false, int row = 0, string listname = "")
Example
@DnnRocket.DropDownLanguageList(Model.Info, "genxml/dropdown/language")
DropDownCurrencyList
Description: Renders a dropdown list of available currencies.
Signaturepublic IEncodedString DropDownCurrencyList(SimplisityInfo info, String xpath, String attributes = "", String defaultValue = "", bool localized = false, int row = 0, string listname = "")
Example
@DnnRocket.DropDownCurrencyList(Model.Info, "genxml/dropdown/currency")
DropDownCultureCodeList
Description: Renders a dropdown list of culture codes for the portal.
Signaturepublic IEncodedString DropDownCultureCodeList(SimplisityInfo info, String xpath, String attributes = "", String defaultValue = "", bool localized = false, int row = 0, string listname = "")
Example
@DnnRocket.DropDownCultureCodeList(Model.Info, "genxml/dropdown/culturecode")
DropDownCountryCodeList
Description: Renders a dropdown list of country codes.
Signaturepublic IEncodedString DropDownCountryCodeList(SimplisityInfo info, String xpath, String attributes = "", String defaultValue = "", bool localized = false, int row = 0, string listname = "")
Example
@DnnRocket.DropDownCountryCodeList(Model.Info, "genxml/dropdown/countrycode")
DropDownSystemKeyList
Description: Renders a dropdown list of active system keys.
Signaturepublic IEncodedString DropDownSystemKeyList(SimplisityInfo info, String xpath, String attributes = "", String defaultValue = "", bool localized = false, int row = 0, string listname = "")
Example
@DnnRocket.DropDownSystemKeyList(Model.Info, "genxml/dropdown/systemkey")
ResourceCSV
Description: Output CSV list of resx values. Example: @ResourceCSV("RocketIntra", "test1,test2,test3")
Signaturepublic IEncodedString ResourceCSV(String resourceFileKey, string keyListCSV, string lang = "", string resourceExtension = "Text")
Example
@DnnRocket.ResourceCSV("MyResources", "key1,key2,key3")
ButtonTextIcon
Description: Renders a button with text followed by an icon, based on a button type.
Signaturepublic IEncodedString ButtonTextIcon(ButtonTypes buttontype, String lang = "")
Example
@DnnRocket.ButtonTextIcon(ButtonTypes.Save)
ButtonIconText
Description: Renders a button with an icon followed by text, based on a button type.
Signaturepublic IEncodedString ButtonIconText(ButtonTypes buttontype, String lang = "")
Example
@DnnRocket.ButtonIconText(ButtonTypes.Save)
ButtonText
Description: Renders a button with an icon followed by text.
Signaturepublic IEncodedString ButtonText(ButtonTypes buttontype, String lang = "")
Example
@DnnRocket.ButtonText(ButtonTypes.Delete)
ButtonIcon
Description: Renders a button with only an icon, using the button text as the title attribute for accessibility.
Signaturepublic IEncodedString ButtonIcon(ButtonTypes buttontype, String lang = "")
Example
@DnnRocket.ButtonIcon(ButtonTypes.Edit)
ResourceKeyMod
Description: Gets a resource string, automatically prepending the key with a module reference and an underscore.
Signaturepublic IEncodedString ResourceKeyMod(String moduleRef, String resourceFileKey, String lang = "", String resourceExtension = "Text")
Example
@DnnRocket.ResourceKeyMod("MyModRef", "MyKey")
ResourceKey
Description: Gets a resource string from the resource paths previously added via AddProcessDataResx.
Signaturepublic IEncodedString ResourceKey(String resourceFileKey, String lang = "", String resourceExtension = "Text")
Example
@DnnRocket.ResourceKey("WelcomeMessage")
ResourceKeyJS
Description: Gets a resource string and escapes single quotes for safe use within JavaScript code.
Signaturepublic IEncodedString ResourceKeyJS(String resourceFileKey, String lang = "", String resourceExtension = "Text")
Example
var message = '@DnnRocket.ResourceKeyJS("AlertMessage")';
RenderLanguageSelector
Description: Renders a language selector component with a dictionary for selector fields.
Signaturepublic IEncodedString RenderLanguageSelector(string scmd, Dictionary<string, string> sfieldDict, AppThemeSystemLimpet appThemeSystem, SimplisityRazor model)
Example
@DnnRocket.RenderLanguageSelector("changelang", new Dictionary<string, string>(), appThemeSystem, Model)
RenderRemoteLanguageSelector
Description: Renders a remote language selector component.
Signaturepublic IEncodedString RenderRemoteLanguageSelector(string scmd, string sfields, AppThemeSystemLimpet appThemeSystem, SimplisityRazor model)
Example
@DnnRocket.RenderRemoteLanguageSelector("changelang", "{}", appThemeSystem, Model)
RenderTemplate
Description: Renders a Razor template string with the given model.
Signaturepublic IEncodedString RenderTemplate(string razorTemplate, SimplisityRazor model, bool debugMode = false)
Example
@DnnRocket.RenderTemplate("<div>Hello @Model.Get('name')</div>", myModel)
RenderPlugin
Description: Renders a plugin based on its registered interface key. The 'systemdata' object must be available in the model.
Signaturepublic IEncodedString RenderPlugin(string interfaceKey, string cmd, SimplisityRazor model)
Example
@DnnRocket.RenderPlugin("myplugin", "showdetails", Model)
RenderXml
Description: Renders a display of the XML model from a SimplisityInfo object for debugging purposes.
Signaturepublic IEncodedString RenderXml(SimplisityInfo info, string xmlidx = "")
Example
@DnnRocket.RenderXml(Model.Info)
RenderImageSelect
Description: Renders an image selection interface.
Signaturepublic IEncodedString RenderImageSelect(string systemKey, string imageFolderRel, bool singleselect = true, bool autoreturn = false)
Example
@DnnRocket.RenderImageSelect("mysystem", "/Portals/0/Images")
RenderDocumentSelect
Description: Renders a document selection interface.
Signaturepublic IEncodedString RenderDocumentSelect(string systemKey, string docFolderRel, bool singleselect = true, bool autoreturn = false)
Example
@DnnRocket.RenderDocumentSelect("mysystem", "/Portals/0/Documents")
TranslationLock
Description: Renders a lock/unlock icon for managing the translation state of a field. It includes a hidden checkbox to store the state.
Signaturepublic IEncodedString TranslationLock(SimplisityInfo info, string xpath, bool active = true, int row = 0)
Example
@DnnRocket.TranslationLock(Model.Info, "genxml/textbox/title")
Translate
Description: Renders a translation icon that can be clicked to trigger a translation action for a specific field.
Signaturepublic IEncodedString Translate(SimplisityInfo info, string xpath, bool active = true, int row = 0)
Example
@DnnRocket.Translate(Model.Info, "genxml/textbox/summary")
TranslationKeyUp
Description: Generates an 'onkeyup' HTML attribute. When the user types in a field, this script will automatically set the corresponding translation lock to 'locked'.
Signaturepublic IEncodedString TranslationKeyUp(string fieldId, bool active = true, int row = 0)
Example
<input type='text' @DnnRocket.TranslationKeyUp("title") />
EditFlag
Description: Displays the flag image for the current editing culture code from session parameters.
Signaturepublic IEncodedString EditFlag(SessionParams sessionParams, string classvalues = "")
Example
@DnnRocket.EditFlag(Model.SessionParams, "my-flag-class")
DisplayFlag
Description: Displays a flag image for a given culture code, if the image file exists.
Signaturepublic IEncodedString DisplayFlag(string cultureCode, string classvalues = "")
Example
@DnnRocket.DisplayFlag("fr-FR")
DisplayEngineFlag
Description: Displays a flag image from a remote engine URL for a given culture code.
Signaturepublic IEncodedString DisplayEngineFlag(string engineUrl, string cultureCode, string classvalues = "")
Example
@DnnRocket.DisplayEngineFlag("https://myothersite.com", "de-DE")
ImageUrl
Description: Display Thumbnail Image. Creates and returns a URL for a resized version of an image. Supports various output formats and cropping. By default, PNGs remain PNGs, and other formats are converted to WEBP. The cache holds a lock on the image file, so use DNNrocketUtils.ClearThumbnailLock() before deleting the original image.
Signaturepublic IEncodedString ImageUrl(string engineUrl, string imgRelPath, int width, int height, string imgType, bool cropCenter)
Example
@DnnRocket.ImageUrl("", "/Portals/0/my-image.jpg", 200, 200, "webp", true)
InjectHiddenFieldData
Description: Renders all nodes under 'genxml/hidden/*' as hidden input fields in the HTML. This is useful for passing data from the model to client-side scripts.
Signaturepublic IEncodedString InjectHiddenFieldData(SimplisityInfo sInfo)
Example
@DnnRocket.InjectHiddenFieldData(Model.Info)
CKEditor4legacy
Description: Legacy CKEditor 4 implementation. Consider using @Editor() instead.
Signaturepublic IEncodedString CKEditor4legacy(SimplisityInfo info, string xpath, bool localized = false, int row = 0, string listname = "", string langauge = "", bool coded = false, string filename = "ckeditor4startup1.js")
Example
@DnnRocket.CKEditor4legacy(Model.Info, "genxml/richtext/content")
Editor
Description: Renders a rich text editor (defaulting to Jodit). The specific editor template can be configured in the portal settings or specified directly.
Signaturepublic IEncodedString Editor(SimplisityInfo info, string xpath, SimplisityRazor model, int row = 0, string listname = "", string editorRazorTemplate = "EditorJoditDefault.cshtml")
Example
@DnnRocket.Editor(Model.Info, "genxml/richtext/content", Model)
LinkInternalUrl
Description: Generates a URL for an internal DNN page (tab) with a specific culture code and optional extra parameters.
Signaturepublic IEncodedString LinkInternalUrl(int portalid, int tabid, string cultureCode, PortalSettings portalSettings = null, string[] extraparams = null)
Example
@DnnRocket.LinkInternalUrl(0, 55, "en-US")
TabSelectListOnTabId
Description: Renders a dropdown list of portal tabs (pages), structured as a tree. The value of each option is the TabId.
Signaturepublic IEncodedString TabSelectListOnTabId(SimplisityInfo info, String xpath, String attributes = "", Boolean allowEmpty = true, bool localized = false, int row = 0, string listname = "", bool showAllTabs = false)
Example
@DnnRocket.TabSelectListOnTabId(Model.Info, "genxml/dropdown/pagelink")
GetTabUrlByGuid
Description: Gets the URL for a tab by its unique GUID.
Signaturepublic IEncodedString GetTabUrlByGuid(String tabguid)
Example
@DnnRocket.GetTabUrlByGuid("a1b2c3d4-e5f6-7890-1234-567890abcdef")
LinkPageURL
Description: Creates an anchor tag linking to an internal DNN page. The tab ID is read from a SimplisityInfo field.
Signaturepublic IEncodedString LinkPageURL(SimplisityInfo info, string xpath, bool openInNewWindow = true, string text = "", string attributes = "")
Example
@DnnRocket.LinkPageURL(Model.Info, "genxml/data/linkedpageid", text: "Read More")
LinkURL
Description: Creates an anchor tag for a URL stored in a SimplisityInfo field. Automatically handles adding 'https://' if missing.
Signaturepublic IEncodedString LinkURL(SimplisityInfo info, string xpath, bool openInNewWindow = true, string text = "", string attributes = "")
Example
@DnnRocket.LinkURL(Model.Info, "genxml/textbox/websiteurl", true, "Visit Website")
DataSourceList
Description: Renders a dropdown list of data sources (MODULEPARAMS) for a given system key.
Signaturepublic IEncodedString DataSourceList(SimplisityInfo info, int systemkey, string xpath, string attributes = "", bool allowEmpty = true, bool localized = false)
Example
@DnnRocket.DataSourceList(Model.Info, 1, "genxml/dropdown/datasource")
GetTreeTabList
Description: Generates a tree-structured HTML list of portal tabs with checkboxes for selection.
Signaturepublic IEncodedString GetTreeTabList(int portalId, List<int> selectedTabIdList, string treeviewId, string lang = "", string attributes = "", bool showAllTabs = false)
Example
@DnnRocket.GetTreeTabList(0, new List<int>(), "mytree")
ModSelectList
Description: Renders a dropdown list of modules for a given portal, showing module references.
Signaturepublic IEncodedString ModSelectList(SimplisityInfo info, String xpath, int portalId, String attributes = "", bool addEmpty = true)
Example
@DnnRocket.ModSelectList(Model.Info, "genxml/dropdown/moduleid", 0)
CheckBoxRowECOMode
Description: Creates a checkbox for ECOMode in the settings of a module.
Signaturepublic IEncodedString CheckBoxRowECOMode(SimplisityInfo rowData, bool defaultValue = true)
Example
@DnnRocket.CheckBoxRowECOMode(Model.Info)