Trying to share a theme
Posted: Sat Nov 17, 2012 1:38 pm
I ported a twitter bootstrap theme into CMSMS and was hoping to share it in the themes section. So I exported the theme and then saved it as theme.xml.
My original template is called bootstrap_home and bootstrap_2col and I have 2 menu templates called bootstrap_top and bootstrap_side
I created a new install of CMSMS and imported it using Layout->Theme Manager->Import and I get the following behavior:
The template name gets prepended with what I named it (theme in this example )
Imported template name: theme : bootstrap_home
Imported menu name: theme : bootstrap_top {menu template="theme : bootstrap_top"}
So..at first glance everything looks right, however upon trying to load the homepage I get the OMG you broke the page error:
Error: at line 73 in file C:\wamp\www\bootstrap\lib\smarty\sysplugins\smarty_internal_write_file.php:
unable to write file C:\wamp\www\bootstrap\tmp\templates_c\86ec7d2a4ac782b624e0d54bae598ea3^e40808981b07a1cf3e732d509f955dfec26260a8.module_db_tpl.MenuManager;theme : bootstrap_top.php
If I go back through and rename my menu templates back to bootstrap_top and bootstrap_side...and then go into the main imported templates and edit the references there to match then everything works again. So...it doesn't like something with the "prefix : " part of the import. Once I take that part out of the menu filenames everything works fine.
I don't want to share something that users will have all sorts of trouble with so I wanted to see if anybody has seen this issue.
I've stripped out a bunch of extra elements in the theme and attached it if someone else wants to give it a shot.
My original template is called bootstrap_home and bootstrap_2col and I have 2 menu templates called bootstrap_top and bootstrap_side
I created a new install of CMSMS and imported it using Layout->Theme Manager->Import and I get the following behavior:
The template name gets prepended with what I named it (theme in this example )
Imported template name: theme : bootstrap_home
Imported menu name: theme : bootstrap_top {menu template="theme : bootstrap_top"}
So..at first glance everything looks right, however upon trying to load the homepage I get the OMG you broke the page error:
Error: at line 73 in file C:\wamp\www\bootstrap\lib\smarty\sysplugins\smarty_internal_write_file.php:
unable to write file C:\wamp\www\bootstrap\tmp\templates_c\86ec7d2a4ac782b624e0d54bae598ea3^e40808981b07a1cf3e732d509f955dfec26260a8.module_db_tpl.MenuManager;theme : bootstrap_top.php
If I go back through and rename my menu templates back to bootstrap_top and bootstrap_side...and then go into the main imported templates and edit the references there to match then everything works again. So...it doesn't like something with the "prefix : " part of the import. Once I take that part out of the menu filenames everything works fine.
I don't want to share something that users will have all sorts of trouble with so I wanted to see if anybody has seen this issue.
I've stripped out a bunch of extra elements in the theme and attached it if someone else wants to give it a shot.