Icon Fonts break after building plone bundle TTW

The icon font breaks after building the plone bundle TTW. This is Plone 5.0.6.
Am I doing something wrong?

How to reproduce

I go to resource registries and enable Development mode and under Bundles I click plone > Develop CSS.

I then go to the LESS variables and set a custom plone-link-color.

To confirm that it's working I go to the "News" section (works well)

Then I click "Build" (on the plone bundle)



Once it is built I turn off development mode

Now all icon fonts are "broken"

Also in the "Site Setup" area

I was able to reproduce this on freshly installed Plone 5.0.6 sites running locally as well as on Heroku (based on Plone's heroku buildpack)

I think it's been broken ever since bundle merging and the ++plone++unique urls were introduced. All the relative paths gets screwed up.

I think it might be fixed in master Products.CMFPlone with this commit though: https://github.com/plone/Products.CMFPlone/commit/aff6c9768c32f5060713efd37e8c2bcdfa4e995e

So in the meantime LESS variables in the resource registry aren't very useful. At least not in the stock theme.

fwiw, you can use the plone-compile-resources still, clear the build bundle and you'll be good to go.

Thanks Nathan,
My constraint is that I'm teaching TTW theming. Basically I'm feeling out the boundaries of TTW. It looks like, at least for the moment, customizations via the resource registry is one of them.

I don't know why I am click on this bundle, but I got a same issues and everything breaks...

Is it there any options to get back all this icons ?

Thanks

@milanleon you'll need to provide more context. Which version of Plone, what were you doing, etc.

If you go into your Management Interface, e.g. yoursite.com/manage_main and click the Undo tab you may be able to undo whatever thing you just did.

Thank you @tkimnguyen
Everything is on image https://snag.gy/LMjtqY.jpg

I am trying to Add bundle in Resource Registries and when I do SAVE, everythings breaks.
Also, when I check box Development Mode(only logged in users)

Then site totally breaks, icons are back but it's working to slow

I think there is nothing else then new installation

I had the same problem, I've solved it by importing a registry.xml file with this content:

 <?xml version="1.0"?>
 <registry>

   <records prefix="plone.bundles/plone"
     interface='Products.CMFPlone.interfaces.IBundleRegistry'>
     <value key="merge_with"></value>
   </records>

   <records prefix="plone.bundles/plone-logged-in"
     interface='Products.CMFPlone.interfaces.IBundleRegistry'>
     <value key="merge_with"></value>
   </records>

   <records prefix="plone.bundles/resourceregistry"
     interface='Products.CMFPlone.interfaces.IBundleRegistry'>
     <value key="merge_with"></value>
   </records>

   <records prefix="plone.bundles/thememapper"
     interface='Products.CMFPlone.interfaces.IBundleRegistry'>
     <value key="merge_with"></value>
   </records>

 </registry>

I found this solution somewhere on a ticket on github, https://github.com/plone/Products.CMFPlone/issues/1663 Give it a try

1 Like

Thank you @tiberiuichim

I will try asap... Will give you answer ...

Thanks a lot!!

OK but what add-ons do you have in buildout.cfg?

1 Like

Thank you @tkimnguyen

Here is buildout.cfg

eggs =
Plone
Pillow
Products.PloneFormGen
plone.app.mosaic
plone.app.tiles
webcouturier.dropdownmenu

I've trying all the things but nothing... still have this errors, so probably I need new installation...