Skip to content

Commit

Permalink
Merge pull request #708 from Timo-Breumelhof/feature/707-CurrentDate-…
Browse files Browse the repository at this point in the history
…ExcludeCSS

Add ExcludeCSS SKO closes #707
  • Loading branch information
david-poindexter authored Apr 12, 2024
2 parents 8b88e3c + 92d37cb commit cb75031
Show file tree
Hide file tree
Showing 4 changed files with 60 additions and 11 deletions.
45 changes: 45 additions & 0 deletions content/tutorials/themes/theme-objects/cssexclude/index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
---
uid: cssexclude
locale: en
title: CSSEXCLUDE Theme object
dnnversion: 09.02.00
previous-topic: cssinclude
next-topic: currentdate
related-topics: theme-objects,themes,create-theme
links:
---

# CSSEXCLUDE Theme Object Introduction

Allows you to exclude a Stylesheet (that DNN would normally load) from being loaded

**Current Version:** 01.00.00


## Include in Theme

### ASCX
``` html
<%@ Register TagPrefix="dnn" TagName="CssExclude" src="~/Admin/Skins/DnnCssExclude.ascx" %>
<dnn:CssExclude runat="server" name="DnnDefault" />
```

### HTML Token
[DNNCSSEXCLUDE]

### HTML Object Token
``` html
<object id="DNNCSSEXCLUDE" codetype="dotnetnuke/server" codebase="DNNCSSEXCLUDE">
```

| Attribute | Description | Default | Posssible Values | DNN Version |
| --- | --- | --- | --- | --- |
| Name | Name of the framework or library to remove | | DnnDefault<br/>Bootstrap<br/><br/> | 01.00.00 |
## Examples:
### Don't load Default.css
~~~html
<dnn:CssExclude runat="server" name="DnnDefault" />
~~~
15 changes: 8 additions & 7 deletions content/tutorials/themes/theme-objects/currentdate/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,15 @@ uid: currentdate
locale: en
title: Current Date Theme object
dnnversion: 09.02.00
previous-topic: cssinclude
previous-topic: cssexclude
next-topic: ddrmenu
related-topics: theme-objects,themes,create-theme
links:
---

# Current Date Theme Object Introduction

Displays the current date
Displays the current date

**Current Version:** 01.00.00

Expand All @@ -20,19 +20,20 @@ Displays the current date

### ASCX
``` html
<%@ Register TagPrefix="dnn" TagName="CURRENTDATE" Src="~/Admin/Skins/CurrentDate.ascx" %>
<dnn:CurrentDate runat="server" id="dnnCurrentDate" />
<%@ Register TagPrefix="dnn" TagName="CURRENTDATE" Src="~/Admin/Skins/CurrentDate.ascx" %>
<dnn:CurrentDate runat="server" id="dnnCurrentDate" />
```

### HTML Token
[CURRENTDATE]
[CURRENTDATE]

### HTML Object Token
``` html
<object id="dnnCURRENTDATE" codetype="dotnetnuke/server" codebase="CURRENTDATE"></object>
<object id="dnnCURRENTDATE" codetype="dotnetnuke/server" codebase="CURRENTDATE"></object>
```

| Attribute | Description | Default | Posssible Values | DNN Version |
| --- | --- | --- | --- | --- |
| CssClass | CSS Class of the rendered | SkinObject | A Valid CSS Class | 01.00.00 |
| DateFormat | Format string for the Date text.<br/>If this is left empty the Dat | Date Format of the current language. | A valid (.NET Date Format)[https://docs.microsoft.com/en-us/dotnet/standard/base-types/standard-date-and-time-format-strings] | 01.00.00 |
| DateFormat | Format string for the Date text.<br/>If this is left empty the Dat | Date Format of the current language. | A valid (.NET Date Format)[https://docs.microsoft.com/en-us/dotnet/standard/base-types/standard-date-and-time-format-strings] | 01.00.00 |
7 changes: 3 additions & 4 deletions content/tutorials/themes/theme-objects/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -120,14 +120,13 @@ The <dnn:BREADCRUMB...> block should be placed in the Theme on the spot you want
|ACTIONBUTTON|Displays an action from the **module action menu**.|
|[BREADCRUMB](xref:breadcrumb)|Displays the path to the current tab (`>` is the default separator). Example: `PageName1 > PageName2 > PageName3`|
|[CSSINCLUDE](xref:cssinclude)|Load Custom Stylesheet for your Theme|
|[CSSEXCLUDE](xref:cssexclude)|Prevents a stylesheet reference from being included in the page.|
|CONTROLPANEL|Displays the DNN control panel. If the **CONTROLPANEL** theme object is not used in the theme, then DNN inserts a control panel control at the top of the page.|
|[COPYRIGHT](xref:copyright)|Displays the copyright notice for the website.|
|[CURRENTDATE](xref:currentdate)|Displays the current date on the server.|
|[DDRMENU](xref:ddrmenu-overview)|Displays a menu using the **DDRMenu** control.|
|DNNCSSEXCLUDE|Prevents a stylesheet reference from being included in the page.|
|DNNCSSINCLUDE|Adds a stylesheet reference to the page.|
|DNNJSEXCLUDE|Prevents a JavaScript file reference from being included in the page.|
|DNNJSINCLUDE|Adds a JavaScript file reference to the page.|
|JSEXCLUDE|Prevents a JavaScript file reference from being included in the page.|
|JSINCLUDE|Adds a JavaScript file reference to the page.|
|DOTNETNUKE|Displays the copyright notice for DNN.|
|HELP|Displays a **Help** link, which sends an email to the website's administrator, using the user's default email client.|
|HOSTNAME|Displays the host title linked to the host URL. The host title and host URL are defined on the host settings page.|
Expand Down
4 changes: 4 additions & 0 deletions content/tutorials/toc.md
Original file line number Diff line number Diff line change
Expand Up @@ -233,6 +233,10 @@
###[Install Your Theme](xref:install-extension)
##[Theme Objects](xref:theme-objects)
###[Breadcrumb](xref:breadcrumb)
###[CSSINCLUDE](xref:cssinclude)
###[CSSEXINCLUDE](xref:cssexclude)
###[COPYRIGHT](xref:copyright)
###[CURRENTDATE](xref:currentdate)
###[DDRMenu](xref:ddrmenu-overview)
####[Overview](xref:ddrmenu-overview)
####[Reference Guide](xref:ddrmenu-reference-guide)
Expand Down

0 comments on commit cb75031

Please sign in to comment.