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

Datatables CSS not available #2512

Closed
thet opened this issue Sep 10, 2018 · 3 comments
Closed

Datatables CSS not available #2512

thet opened this issue Sep 10, 2018 · 3 comments

Comments

@thet
Copy link
Member

thet commented Sep 10, 2018

The current plone-logged-in-compiled.min.css bundle file does not directly include the datatables css files but tries to import them. Also the paths are wrong which leads to a bunch of 404's - at least for me. See the first line here:

https://github.com/plone/Products.CMFPlone/blob/7cefb8f47585422c182e04ae15b08dd2ea456616/Products/CMFPlone/static/plone-logged-in-compiled.css

The CSS files mist be included inline.
This - among other things - fixes this problem:

plone/mockup#863

/cc @plone/framework-team @plone/release-team

@frapell
Copy link
Sponsor Member

frapell commented Sep 10, 2018

@thet To be honest, I don't know what's the proper way to do it... I tend to prefer (inline), since this way all of the css are included in one big css, and I can backport a bunch of this functionality back to 4.3 instances for customers, without much hassle. In fact, this particular datatables feature was made for a 4.3 instance, where I have to manually compile the whole thing, and also include the modules so the import would work...

Now, @datakurre had an issue with this in plone/mockup@1d944a9 where he needed to replace (inline) to be (css). That's why I am trying to use (css), and so, I included the needed modules in https://github.com/plone/Products.CMFPlone/tree/master/Products/CMFPlone/static/components

I am fine with whatever, but it would be great if we could decide on which to use going forward (If there is documentation about this somewhere, I have missed it)

@datakurre
Copy link
Member

datakurre commented Sep 10, 2018 via email

@sunew
Copy link
Contributor

sunew commented Sep 26, 2018

Fixed after:
plone/mockup#863
#2515
plone/plone.app.upgrade#171

A re-bundling is needed - either by running upgrade steps to 5.1.4 or 5.2.alpha1, or by manually running portal_setup -> Advanced import -> CMFPlone:dependencies profile -> Bundle combination
(deselect "Include dependencies of steps")

sunew added a commit that referenced this issue Sep 26, 2018
mister-roboto pushed a commit to plone/buildout.coredev that referenced this issue Sep 26, 2018
Branch: refs/heads/5.1.x
Date: 2018-09-26T11:01:31+02:00
Author: Sune Broendum Woeller (sunew) <sune@woeller.dk>
Commit: plone/Products.CMFPlone@1bef09d

Recompile plone bundles, after plone/mockup#863, fixing plone/Products.CMFPlone#2512

Files changed:
M CHANGES.rst
M Products/CMFPlone/profiles/dependencies/registry.xml
M Products/CMFPlone/static/plone-compiled.css
M Products/CMFPlone/static/plone-compiled.css.map
M Products/CMFPlone/static/plone-compiled.js
M Products/CMFPlone/static/plone-compiled.min.js
M Products/CMFPlone/static/plone-compiled.min.js.map
M Products/CMFPlone/static/plone-logged-in-compiled.css
M Products/CMFPlone/static/plone-logged-in-compiled.css.map
M Products/CMFPlone/static/plone-logged-in-compiled.js
M Products/CMFPlone/static/plone-logged-in-compiled.min.js
M Products/CMFPlone/static/plone-logged-in-compiled.min.js.map
M Products/CMFPlone/static/resourceregistry-compiled.css
M Products/CMFPlone/static/resourceregistry-compiled.css.map
M Products/CMFPlone/static/resourceregistry-compiled.js
M Products/CMFPlone/static/resourceregistry-compiled.min.js
M Products/CMFPlone/static/resourceregistry-compiled.min.js.map
Repository: Products.CMFPlone

Branch: refs/heads/5.1.x
Date: 2018-09-26T12:06:16+02:00
Author: Sune Broendum Woeller (sunew) <sune@woeller.dk>
Commit: plone/Products.CMFPlone@968fe2e

Merge pull request #2515 from plone/sunew-recompile-resources-datatables-inline2

Recompile plone bundles fixing #2512

Files changed:
M CHANGES.rst
M Products/CMFPlone/profiles/dependencies/registry.xml
M Products/CMFPlone/static/plone-compiled.css
M Products/CMFPlone/static/plone-compiled.css.map
M Products/CMFPlone/static/plone-compiled.js
M Products/CMFPlone/static/plone-compiled.min.js
M Products/CMFPlone/static/plone-compiled.min.js.map
M Products/CMFPlone/static/plone-logged-in-compiled.css
M Products/CMFPlone/static/plone-logged-in-compiled.css.map
M Products/CMFPlone/static/plone-logged-in-compiled.js
M Products/CMFPlone/static/plone-logged-in-compiled.min.js
M Products/CMFPlone/static/plone-logged-in-compiled.min.js.map
M Products/CMFPlone/static/resourceregistry-compiled.css
M Products/CMFPlone/static/resourceregistry-compiled.css.map
M Products/CMFPlone/static/resourceregistry-compiled.js
M Products/CMFPlone/static/resourceregistry-compiled.min.js
M Products/CMFPlone/static/resourceregistry-compiled.min.js.map
@sunew sunew closed this as completed Sep 26, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants