Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow arbitrary mediatype names for CSS #982

Merged
merged 2 commits into from
Jan 8, 2015
Merged

Conversation

gamma
Copy link
Contributor

@gamma gamma commented Dec 22, 2014

This adds the ability to the css.php to deliver arbitrary media types that have to be defined in the styles.ini file. The template can now decide to have a style that is only delivered to admins for example.

They are generated from the default ones and any additional one given
by the template. This allows to e.g. split admin styles from end user
styles in a closed wiki. You can then deliver only the user styles
using the metaheaders plugin.
@scrutinizer-notifier
Copy link

The inspection completed: No new issues

@michitux
Copy link
Collaborator

👍

splitbrain added a commit that referenced this pull request Jan 8, 2015
Allow arbitrary mediatype names for CSS
@splitbrain splitbrain merged commit 32e9be2 into dokuwiki:master Jan 8, 2015
@gamma gamma deleted the css.php branch January 8, 2015 11:15
@selfthinker
Copy link
Collaborator

Since this has been merged, all the templates with old style RTL styles are buggy now as basically anything is accepted as a media type now. We should only allow valid media types.

@selfthinker
Copy link
Collaborator

I created #1131 for this.

Another thing I found (which I also mention in #1131):
These changes are also ineffective as the newly added media types will not get a new section per media type (@media <mediatype> {}) but get added without it together with the all styles.

So, even without that bug, these changes are effectively not working. No new media types are added to the resulting css file.

@gamma
Copy link
Contributor Author

gamma commented May 5, 2015

This pull request should have had no influence as described in #1131. However, it is ineffective without #1002 which introduces the media type handling (and #1003 which allows multiple media types for the same style file). It also introduces an event for JS modifications and respective caching which should also allow caching for different templates as #1130 intends (maybe not as effective?!)

Anyway, the situation seems a bit complicated to me. How can we proceed? I wonder: do no unit tests exist to ensure compatibility (maybe I should have attached some with this pull request...)

@selfthinker
Copy link
Collaborator

If this is ineffective without #1002, shouldn't these changes be part of that PR instead?

splitbrain added a commit that referenced this pull request Jul 24, 2015
@splitbrain
Copy link
Collaborator

This has been reverted as discussed in #1131

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants