Stylesheets
Version: - stringSummary
Returns links to stylesheet files associated with the current page.
Settings
The value is generated automatically based on various Dynamicweb settings.
E.g. (Stylesheet tab > Stylesheet > Page > Template tab > Include panel > Stylesheet field)
Remarks
This tag can be used on master templates.
(File Manager tab > Templates folder > Master folder)
The value is returned as a HTML code snippet containing <link>
tags.
Examples
Outputting the template tag
@GetString("Stylesheets")
Check if tag has a value
@if(!string.IsNullOrWhiteSpace(GetString("Stylesheets"))) {
@* Tag has value, so let's do something useful here. *@
}
Assign tag to a value for later use
@{
string storedTag = GetString("Stylesheets");
}
Outputting the template tag
<!--@Stylesheets-->
Check if string has a value
<!--@If Defined(@Stylesheets)-->
Let's output this tag here: <strong><!--@Stylesheets--></strong>
<!--@EndIf(@Stylesheets)-->