Ticket #285 (closed Enhancement: fixed)

Opened 8 years ago

Last modified 8 years ago

Webclient: pick up stylesheets automatically

Reported by: jri Owned by: jri
Priority: Major Milestone: Release 4.1
Component: DeepaMehta Standard Distribution Version: 4.0.11
Keywords: Cc: dgf
Complexity: 5 Area: Application Framework / API
Module:

Description

The plugin developer should not required to load the plugin's stylesheets manually.
The framework could pick them up automatically by the means of naming conventions.

Change History

comment:1 Changed 8 years ago by jri

  • Status changed from new to accepted

comment:2 Changed 8 years ago by Jörg Richter

Webclient: reorganize CKEditor files (#285).

Aim is to not have any CKEditor files in /web/style
The contents of that directory is about to be loaded automatically by DM.
It is expected to contain nothing but css files.
CKEditor loads its css himself.

See ticket 285.

comment:3 Changed 8 years ago by Jörg Richter

Webclient: pick up plugin CSS automatically (#285)

A plugin's CSS stylesheets are picked up automatically.
These are all files located in the plugin's /web/style directory.

So, in most cases the plugin developer must no longer care about CSS loading by calling this method:

  • dm4c.load_stylesheet(...)

However, this call is still needed to load external CSS or from other (vendor) directories.

IMPORTANT: plugin developers must adapt the plugins which provide CSS stylesheets.
Just drop the load_stylesheet() call. Otherwise the CSS will be loaded twice.

See ticket 285.

comment:4 Changed 8 years ago by jri

  • Status changed from accepted to closed
  • Resolution set to fixed

comment:5 Changed 8 years ago by Jörg Richter

Webclient: reorganize CKEditor files (#285).

Aim is to not have any CKEditor files in /web/style
The contents of that directory is about to be loaded automatically by DM.
It is expected to contain nothing but css files.
CKEditor loads its css himself.

See ticket 285.

comment:6 Changed 8 years ago by Jörg Richter

Webclient: pick up plugin CSS automatically (#285)

A plugin's CSS stylesheets are picked up automatically.
These are all files located in the plugin's /web/style directory.

So, in most cases the plugin developer must no longer care about CSS loading by calling this method:

  • dm4c.load_stylesheet(...)

However, this call is still needed to load external CSS or from other (vendor) directories.

IMPORTANT: plugin developers must adapt the plugins which provide CSS stylesheets.
Just drop the load_stylesheet() call. Otherwise the CSS will be loaded twice.

See ticket 285.

Note: See TracTickets for help on using tickets.