This topic contains 10 replies, has 4 voices, and was last updated by mmiasnikov 6 years, 8 months ago.
- Topic
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:
Some notes:
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:123php app/console cache:clearphp app/console oro:assets:install --env=dev --symlinkphp app/console assetic:dump --env=dev
Here’s my settings.yml:1234567# 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.cssLastly, 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.phpAny thoughts would be very helpful. I’ve been on this for a few days and can’t understand what’s wrong.
Thanks!
UI Developer at E7 Solutions
http://www.e7solutions.com
The forum ‘OroCRM – HTML, JavaScript, CSS, Design Questions’ is closed to new topics and replies.