Alright, I’ve been following any custom theme bundle instructions I can find, including OroCRM docs, an Atwix article about the topic, and forum posts (as late as February). So far can not get CSS from my theme to load properly. My goal: create a theme bundle, that (like implied in Oro docs) should load CSS files via the settings.yml in the theme folder. I’ll have templates at some point too, plus will want to use LESS, but as a minimum I need CSS.
Here are my main sources:
1. The theme shows as ‘active’ when I run: oro:theme:list, and shows the correct settings.yml content
2. Symfony Profiler says my bundle is enabled
3. oro_assetic.css_debug_all is set to true in config.yml (and config_dev.yml), but all CSS still compiles to a single file
4. I am running these commands after each change:PHP123php app/console cache:clearphp app/console oro:assets:install --env=dev --symlinkphp app/console assetic:dump --env=dev
Here’s my settings.yml:YAML1234567# src/SwagThemeBundle/Resources/public/themes/swag/settings.ymllabel: Swag Themeicon: bundles/oroui/themes/demo/images/favicon.icostyles:# - bundles/oroui/themes/oro/css/style.css- bundles/swagtheme/themes/swag/css/less/main.less- bundles/swagtheme/themes/swag/css/style.css
Lastly, here’s my src/ file structure:1234567891011121314151617181920src/└── MyCompany/└── MyThemeBundle/├── Controller/│ └── DefaultController.php├── DependencyInjection/│ ├── Configuration.php│ └── SwagThemeExtension.php├── Resources/│ ├── config/│ │ ├── oro/│ │ │ └── bundles.yml│ │ └── services.yml│ └── public/│ └── theme/│ └── my/│ ├── css/│ │ └── style.css│ └── settings.yml└── MyThemeBundle.php
Any thoughts would be very helpful. I’ve been on this for a few days and can’t understand what’s wrong.
UI Developer at E7 Solutions