Design and CSS styles
Version 5.x > Design and CSS styles > Editing CSS Stylesheet in CMS View modes: 
User avatar
Member
Member
DahlinDev - 4/6/2010 4:14:15 PM
   
Editing CSS Stylesheet in CMS
Can someone explain to me the advantage of having the css stylesheet stored in the database vs the file structure?

It appears Kentico best practices are to edit css style sheets through the CMS. What advantages does this give?

I only see disadvantages. You lose intellisense and the ability to keep your style sheet in a source control management repository.

I do know you can check the stylesheet out to make edits using your favorite editor,but after you check the stylesheet back in the local file is destroyed.

User avatar
Kentico Developer
Kentico Developer
kentico_helenag - 4/13/2010 4:14:06 AM
   
RE:Editing CSS Stylesheet in CMS
Hello,

the advantage of stylesheet in database is that editors can make changes via web browser interface (they do not need the access to your file system).

If you are connected to file system easily and prefer it you can use file system stylesheets with no worries.

Best regards,
Helena Grulichova

User avatar
Member
Member
DesignByOnyx - 4/14/2010 12:35:54 AM
   
RE:Editing CSS Stylesheet in CMS
For starters, you can always upload CSS files to App_Themes/<SiteName>, and Kentico will automatically include it in the <head> section.

Reasons I like the web interface:

1) I really like the /*# categorization #*/ offered by the web interface. My style sheets are usually around 1000+ lines long, and the categories allow me to easily jump to different sections of my style sheet. This also forces me to be more organized with my style declarations.

2) As a front end developer, I have really improved my knowledge of all possible attributes and short-hand declarations by not relying on intellisense to show me all of my options. While I really like intellisense and admit that it is faster, I have become a better developer without it.

3) As already mentioned, being able to work on styles from any computer with a web browser has made life so simple for me.

User avatar
Member
Member
DahlinDev - 4/14/2010 2:06:36 AM
   
RE:Editing CSS Stylesheet in CMS
DesignByOnyx, I do agree the categorization in the web interface is very nice. You guys also make a good point about being able to update the style sheet from anywhere without needing the system files.

Thanks for the feedback.

User avatar
Member
Member
positivepurchasing - 11/13/2012 10:44:30 AM
   
RE:Editing CSS Stylesheet in CMS
I completely agree with your original post. Kentico as usual has turned something simple into something overly complicated.

Kentico you should think about developers in the real world that actually have to make this nightmare work.

Everything in Kentico is so over complicated!

User avatar
Kentico Customer Success
Kentico Customer Success
kentico_martind2 - 11/14/2012 11:59:05 AM
   
RE:Editing CSS Stylesheet in CMS
Hi,

I'm very sorry if you feel it this way but many people appreciate that they are able to change something just using web interface.

If you think that something in the Kentico should be changed and it will help others, please feel free to write your suggestion at Kentico UserVoice.

Best regards,
Martin Danko