hqarrse
08-05-2012, 08:09 AM
I can't find a way to show CMS widgets in the standard VB4 mobile style.
Before I started digging deeper I did this:
- Made a single column grid/layout and added a recent posts widget below the main content
- Set the section for my mobile front page to use the layout
- Copied the template vbcms_widget_recentposts_page in to the mobile theme
Looking at the debug of a normal style page generation I can see that the sequence of templates is:
vbcms_content_article_page
(1)vbcms_grid_12
(1)vbcms_page
(1)vbcms_widget_column <-- not rendered in mobile style
(1)vbcms_widget_recentposts_page
When the mobile style is used, the debug is not shown, but by altering templates, I found that vbcms_widget_column and below is not rendered.
I then searched the file system for references to the mobile style (has an abnormal parentid of -2 which I thought might be the key. Seemingly not) or some sort of conditional to render the widget templates or otherwise but with no success. I just cannot find a conditional for style that affects CMS page rendering.
If anyone can shed any light on why widgets aren't rendering in the mobile style I'd be really grateful!
Before I started digging deeper I did this:
- Made a single column grid/layout and added a recent posts widget below the main content
- Set the section for my mobile front page to use the layout
- Copied the template vbcms_widget_recentposts_page in to the mobile theme
Looking at the debug of a normal style page generation I can see that the sequence of templates is:
vbcms_content_article_page
(1)vbcms_grid_12
(1)vbcms_page
(1)vbcms_widget_column <-- not rendered in mobile style
(1)vbcms_widget_recentposts_page
When the mobile style is used, the debug is not shown, but by altering templates, I found that vbcms_widget_column and below is not rendered.
I then searched the file system for references to the mobile style (has an abnormal parentid of -2 which I thought might be the key. Seemingly not) or some sort of conditional to render the widget templates or otherwise but with no success. I just cannot find a conditional for style that affects CMS page rendering.
If anyone can shed any light on why widgets aren't rendering in the mobile style I'd be really grateful!