Templates can also be called Theme's. This is the file where we add the js and css.
Usually a Theme will have a Master Page. The Master page will define the HTML, language, meta data and favicon. The Theme will pass the css and js to the Master page.
In Base Theme (BaseTheme.ascx), which come out-of-box, the css and js will come from the CMS, as defined in Site Configuration.
If you want to create another Theme, you can get the resources from CMS, as above, but the style will be the same. You might have to add style sheets statically into the theme folder.
Base Theme has some key features.
- Implements Master Page File
- Has a top style Resource Control to output the CSS files [TODO LINK to page with description on this]
- Sets Properties for Advantage Page Name - this will be the Drop Down text within the CMS
- Has a bottom Resource Control to output JS files [TODO LINK to a page with desc on this]
- Inherits from AdvantagePageTemplate
- Defines the Zone Container
- Fills the top Resource Control with CSS - these values are from Site Configuration: note, there are 2 setups here - Base Theme section and Style Sheets section.
Creating a Template File
You can modify the template that exists, or setup a new one. Please make sure to read the steps above. Here are the important things to note:
- The AdvantagePageName should be set as a different string key to prevent confusion