From edd4ff409d06b0980197ce8f58f4ae38710cec8d Mon Sep 17 00:00:00 2001 From: Timo Breumelhof Date: Thu, 11 Apr 2024 14:58:25 +0200 Subject: [PATCH 1/6] Add ExcludeCSS SKO closes #707 --- .../themes/theme-objects/cssexclude/index.md | 45 +++++++++++++++++++ .../themes/theme-objects/currentdate/index.md | 17 +++---- .../tutorials/themes/theme-objects/index.md | 7 ++- 3 files changed, 57 insertions(+), 12 deletions(-) create mode 100644 content/tutorials/themes/theme-objects/cssexclude/index.md diff --git a/content/tutorials/themes/theme-objects/cssexclude/index.md b/content/tutorials/themes/theme-objects/cssexclude/index.md new file mode 100644 index 000000000..fff06fbf3 --- /dev/null +++ b/content/tutorials/themes/theme-objects/cssexclude/index.md @@ -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" %> + +``` + +### HTML Token + [DNNCSSEXCLUDE] + +### HTML Object Token +``` html + +``` + +| Attribute | Description | Default | Posssible Values | DNN Version | +| --- | --- | --- | --- | --- | +| Name | Name of the framework or library to remove | | DnnDefault
Bootstrap

| 01.00.00 | + +## Examples: + +### Don't load Default.css +~~~html + +~~~ + diff --git a/content/tutorials/themes/theme-objects/currentdate/index.md b/content/tutorials/themes/theme-objects/currentdate/index.md index c9775462e..108149d6d 100644 --- a/content/tutorials/themes/theme-objects/currentdate/index.md +++ b/content/tutorials/themes/theme-objects/currentdate/index.md @@ -1,9 +1,9 @@ --- -uid: currentdate +uid: current date 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: @@ -11,7 +11,7 @@ links: # Current Date Theme Object Introduction -Displays the current date + Displays the current date **Current Version:** 01.00.00 @@ -20,19 +20,20 @@ Displays the current date ### ASCX ``` html -<%@ Register TagPrefix="dnn" TagName="CURRENTDATE" Src="~/Admin/Skins/CurrentDate.ascx" %> - + <%@ Register TagPrefix="dnn" TagName="CURRENTDATE" Src="~/Admin/Skins/CurrentDate.ascx" %> + ``` ### HTML Token -[CURRENTDATE] + [CURRENTDATE] ### HTML Object Token ``` html - + ``` | 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.
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 | \ No newline at end of file +| DateFormat | Format string for the Date text.
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 | + \ No newline at end of file diff --git a/content/tutorials/themes/theme-objects/index.md b/content/tutorials/themes/theme-objects/index.md index e8174313d..a0ced2c0a 100644 --- a/content/tutorials/themes/theme-objects/index.md +++ b/content/tutorials/themes/theme-objects/index.md @@ -120,14 +120,13 @@ The 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|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.| From 8c6d530bcf973143a532d4bad07f1ee42fdc0821 Mon Sep 17 00:00:00 2001 From: Timo Breumelhof Date: Thu, 11 Apr 2024 15:00:39 +0200 Subject: [PATCH 2/6] Correct for overview page (link to ExcludeCss) --- content/tutorials/themes/theme-objects/index.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/content/tutorials/themes/theme-objects/index.md b/content/tutorials/themes/theme-objects/index.md index a0ced2c0a..33c23c1b7 100644 --- a/content/tutorials/themes/theme-objects/index.md +++ b/content/tutorials/themes/theme-objects/index.md @@ -120,7 +120,7 @@ The 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|Prevents a stylesheet reference from being included in the page.| +|[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.| From c1a0fcdfed9b27668b34025af4b50cd8b63a9134 Mon Sep 17 00:00:00 2001 From: Timo Breumelhof Date: Thu, 11 Apr 2024 16:45:44 +0200 Subject: [PATCH 3/6] Corrected general TOC --- content/tutorials/toc.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/content/tutorials/toc.md b/content/tutorials/toc.md index a4168338e..8223dd377 100644 --- a/content/tutorials/toc.md +++ b/content/tutorials/toc.md @@ -233,6 +233,10 @@ ###[Install Your Theme](xref:install-extension) ##[Theme Objects](xref:theme-objects) ###[Breadcrumb](xref:breadcrumb) +###[CSSINCLUDE](xref:cssinclude) +###[CSSEXINCLUDE](xref:cssexinclude) +###[COPYRIGHT](xref:copyright) +###[CURRENTDATE](xref:breadcrumb) ###[DDRMenu](xref:ddrmenu-overview) ####[Overview](xref:ddrmenu-overview) ####[Reference Guide](xref:ddrmenu-reference-guide) From 19a013e5ad0c92955a0909dfab30e52860add3fe Mon Sep 17 00:00:00 2001 From: David Poindexter Date: Fri, 12 Apr 2024 13:46:52 -0400 Subject: [PATCH 4/6] Resolve typo in `cssexclude` xref --- content/tutorials/toc.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/content/tutorials/toc.md b/content/tutorials/toc.md index 8223dd377..95b47805c 100644 --- a/content/tutorials/toc.md +++ b/content/tutorials/toc.md @@ -234,7 +234,7 @@ ##[Theme Objects](xref:theme-objects) ###[Breadcrumb](xref:breadcrumb) ###[CSSINCLUDE](xref:cssinclude) -###[CSSEXINCLUDE](xref:cssexinclude) +###[CSSEXINCLUDE](xref:cssexclude) ###[COPYRIGHT](xref:copyright) ###[CURRENTDATE](xref:breadcrumb) ###[DDRMenu](xref:ddrmenu-overview) From 44c5687ce00f22917762acddf15d9a7934a81b1e Mon Sep 17 00:00:00 2001 From: David Poindexter Date: Fri, 12 Apr 2024 13:47:11 -0400 Subject: [PATCH 5/6] Resolve typo in `currentdate` xref --- content/tutorials/themes/theme-objects/currentdate/index.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/content/tutorials/themes/theme-objects/currentdate/index.md b/content/tutorials/themes/theme-objects/currentdate/index.md index 108149d6d..9ce7176bd 100644 --- a/content/tutorials/themes/theme-objects/currentdate/index.md +++ b/content/tutorials/themes/theme-objects/currentdate/index.md @@ -1,5 +1,5 @@ --- -uid: current date +uid: currentdate locale: en title: Current Date Theme object dnnversion: 09.02.00 From 92d37cb0d632cd93443b0a58f6426166ff7634e2 Mon Sep 17 00:00:00 2001 From: David Poindexter Date: Fri, 12 Apr 2024 13:47:28 -0400 Subject: [PATCH 6/6] Resolve typo in `currentdate` xref --- content/tutorials/toc.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/content/tutorials/toc.md b/content/tutorials/toc.md index 95b47805c..be1a3a0be 100644 --- a/content/tutorials/toc.md +++ b/content/tutorials/toc.md @@ -236,7 +236,7 @@ ###[CSSINCLUDE](xref:cssinclude) ###[CSSEXINCLUDE](xref:cssexclude) ###[COPYRIGHT](xref:copyright) -###[CURRENTDATE](xref:breadcrumb) +###[CURRENTDATE](xref:currentdate) ###[DDRMenu](xref:ddrmenu-overview) ####[Overview](xref:ddrmenu-overview) ####[Reference Guide](xref:ddrmenu-reference-guide)