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
# Adding CSS and JS files AppThemes often require their own CSS and JavaScript files. This can be done inline in the template or by linking to a file. #### Adding a CSS file Create a folder.. ```plaintext /DesktopModules/RocketThemes/AppThemes-W3-CSS/rocketcontentapi.example1/1.0/css ``` Create a CSS file called "example1.css" in this folder and add any CSS required. The CSS file is added to the AppTheme by using the dependency file. Create a folder called "dep" in the AppTheme ```plaintext /DesktopModules/RocketThemes/AppThemes-W3-CSS/rocketcontentapi.example1/1.0/dep ``` Create a file called "example1.dep" with the following XML format. This example is using the {appthemefolder} token. ```plaintext
css>
{appthemefolder}/css/example1.css>
true
``` This ensures that the resource "example1.css" is not loaded onto the page multiple times if multiple AppThemes require it. #### Adding a JS file Create a folder.. ```plaintext /DesktopModules/RocketThemes/AppThemes-W3-CSS/rocketcontentapi.example1/1.0/js ``` Create a JS file called "example1.js" in this folder and add any JS required. The JS file is added to the AppTheme by using the dependency file. Create a folder called "dep" in the AppTheme ```plaintext /DesktopModules/RocketThemes/AppThemes-W3-CSS/rocketcontentapi.example1/1.0/dep ``` Create a file called "example1.dep" with the following XML format. This example is using the {appthemefolder} token. ```plaintext
css>
{appthemefolder}/css/example1.js>
true
``` This ensures that the resource "example1.js" is not loaded onto the page multiple times if multiple AppThemes require it.