U4-114 - Remove database requirement for Stylesheets and associated database tables

Created by Morten Christensen 12 Jul 2012, 13:00:53 Updated by Simon Dingley 06 Jun 2016, 11:57:51

Is duplicated by: U4-683

Relates to: U4-8564

Relates to: U4-683

Relates to: U4-934

Subtask of: U4-5830

Stylesheets should only need to be stored on the file system.


Sebastiaan Janssen 24 Aug 2012, 08:10:05

Just like we did for the trees, have a fallback to the database still in place until we can actually remove the tables in a major release.

Sebastiaan Janssen 10 Sep 2012, 12:43:07

Moving this to 6.0.0 as we are running into time constraints and this could easily introduce an unnecessary breaking change (which we can work around, but that workaround would only live for two months so it's extra time/work for very little gain).

Shannon Deminick 14 Jan 2015, 21:31:01

Marked as breaking because:

  • The db tables will be removed
  • The legacy API will not work because stylesheets no longer have Int Ids

Shola 08 Jun 2015, 15:51:01

@Shandem How does/will this affect the RTE Formats dropdown?

Shannon Deminick 15 Jun 2015, 11:35:57

It won't, it will still be the same, we just don't look for it in the db. The stylesheet properties in the file will be formatted so we can parse them. These properties will be appended to the file in the upgrade process

Shola 15 Jun 2015, 14:49:49

@Shandem Oh ok that sounds great, thanks. This is good news as I've currently had to expand the (relatively small) DB limit imposed on the style rules.

Nik 13 Jul 2015, 10:40:58

Will this allow us to use sub folders when creating CSS files in the same way that we can with partial views?

Shannon Deminick 13 Jul 2015, 11:01:25

We can probably do that, but that functionality is not automatically included with this bug being fixed. You can submit a feature request for that or link to an existing one here if you want.

Priority: Normal

Type: Task

State: Fixed

Assignee: Shannon Deminick

Difficulty: Normal

Category: Architecture

Backwards Compatible: False

Fix Submitted:

Affected versions:

Due in version: 7.3.0


Story Points: