How exclude only one stylesheet in template

For questions and problems with the CMS core. This board is NOT for any 3rd party modules, addons, PHP scripts or anything NOT distributed with the CMS made simple package itself.
Post Reply
Powerbrand
New Member
New Member
Posts: 3
Joined: Thu Jun 29, 2017 2:20 pm

How exclude only one stylesheet in template

Post by Powerbrand »

Hello:

I have 4 stylesheets (for example: styleheet1, styleheet2, styleheet3 and styleheet4).

If I use {cms_stylesheet}, by default I load the four stylesheets.
If I use {cms_stylesheet name = "styleheet3"} we load the number 3 excluding all others.

Is there any way to EXCLUDE only one stylesheet and load all the others?
(Using CMS 2.2.6.)

Thank You!
User avatar
velden
Dev Team Member
Dev Team Member
Posts: 3483
Joined: Mon Nov 28, 2011 9:29 am
Location: The Netherlands

Re: How exclude only one stylesheet in template

Post by velden »

I'd suggest:

Code: Select all

{cms_stylesheet name = "styleheet1"}
{cms_stylesheet name = "styleheet2"}
{cms_stylesheet name = "styleheet4"}
But I didn't test it.
User avatar
Rolf
Power Poster
Power Poster
Posts: 7825
Joined: Wed Apr 23, 2008 7:53 am
Location: The Netherlands
Contact:

Re: How exclude only one stylesheet in template

Post by Rolf »

Powerbrand wrote:I have 4 stylesheets (for example: styleheet1, styleheet2, styleheet3 and styleheet4).

If I use {cms_stylesheet}, by default I load the four stylesheets.
If I use {cms_stylesheet name = "styleheet3"} we load the number 3 excluding all others.

Is there any way to EXCLUDE only one stylesheet and load all the others?
(Using CMS 2.2.6.)
Don't attach "stylesheets3" to a design, that is all.
- + - + - + - + - + - + -
LATEST TUTORIAL AT CMS CAN BE SIMPLE:
Migrating Company Directory module to LISE
- + - + - + - + - + - + -
Image
Post Reply

Return to “CMSMS Core”