This topic contains 2 replies, has 1 voice, and was last updated by gbyrne 6 years, 9 months ago.
- Topic
I’m having trouble creating a theme. I’m following this tutorial:
https://github.com/orocrm/platform/blob/master/src/Oro/Bundle/LayoutBundle/Resources/doc/example.md#getting-startedSo far I’ve gotten oro to recognize my theme with app/console oro:theme:list
12345678910List of available themes:demo- icon: bundles/orofrontend/default/images/favicon.icooro- label: Custom Oro Theme- icon: bundles/override/images/cat_hi.jpggolf (active)- label: Golf- icon: bundles/skeeter/themes/golf/images/favicon.jpg- screenshot: bundles/skeeter/themes/golf/images/screenshot.pngI’ve set my golf theme as the active theme
12345#app/config/config.yml***oro_theme:active_theme: golf***My theme is in a bundle called SkeeterBundle. I’ve followed the quick start guide (along with some others) and set up the golf theme in src/SkeeterBundle/Resources/public/themes/golf.
My theme.yml
1234#src/SkeeterBundle/Resources/public/themes/golf/theme.ymllabel: Golficon: bundles/skeeter/themes/golf/images/favicon.jpgscreenshot: bundles/skeeter/themes/golf/images/screenshot.pnggroups: [ main,commerce ]
My setting.yml
12345#src/SkeeterBundle/Resources/public/themes/golf/settings.ymllabel: Golficon: bundles/skeeter/themes/golf/images/favicon.jpgscreenshot: bundles/skeeter/themes/golf/images/screenshot.pnggroups: [ main,commerce ]My default.yml
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859#src/SkeeterBundle/Resources/public/themes/golf/default.ymllayout:actions:- @setBlockTheme:themes: 'SkeeterBundle:layouts:golf/default.html.twig'- @addTree:items:head:blockType: headtheme_icon:blockType: external_resourceoptions:href: '=data["theme"].getIcon()'rel: shortcut iconhead_style:blockType: containerhead_script:blockType: containerbody:blockType: bodyheader:blockType: containernavigation_bar:blockType: containermain_menu:blockType: containeroptions:attr:id: main-menuleft_panel:blockType: containeroptions:attr:id: left-panelmain_panel:blockType: containeroptions:attr:id: main-panelclass: contentcontent:blockType: containerfooter:blockType: containertree:root:head:theme_icon: ~head_style: ~head_script: ~body:header:navigation_bar: ~main_menu: ~left_panel: ~main_panel:content: ~footer: ~57,25 BotAnd my default.html.twig
12345678910111213141516171819202122232425262728293031323334353637383940#src/SkeeterBundle/Resources/public/themes/golf/default.html.twig{% block head_widget %}<head{{ block('block_attributes') }}><meta http-equiv="cache-control" content="max-age=0" /><meta http-equiv="cache-control" content="no-cache" /><meta http-equiv="expires" content="0" /><meta http-equiv="pragma" content="no-cache" />{{ block_widget(block) }}</head>{% endblock %}{% block _header_widget %}<header{{ block('block_attributes') }}>{{ block_widget(block) }}</header>{% endblock %}{% block _main_menu_widget %}<div{{ block('block_attributes') }}>{{ block_widget(block) }}</div>{% endblock %}{% block _left_panel_widget %}<div{{ block('block_attributes') }}>{{ block_widget(block) }}</div>{% endblock %}{% block _footer_widget %}<footer{{ block('block_attributes') }}>{{ block_widget(block) }}</footer>{% endblock %}{% block _main_panel_widget %}<div{{ block('block_attributes') }}>{{ block_widget(block) }}</div>{% endblock %}I don’t receive any errors, however after clearing my cache and loading mywebsite/skeeter, nothing from my theme appears in the html. Any suggestions would be great, thanks.
The forum ‘OroPlatform’ is closed to new topics and replies.