Integrate Smartybased blog, possible?
Posted: Thu Feb 09, 2006 9:47 am
Hi, I've just set up CMS MS 0.11.2 on my Linux box running Apache 2.0.53-9, PHP 4.3.10 and Mysql 4.1.11-1.
I have for quite some time run a blog on my site. The blog is bblog, and it is based on Smarty templates. Now that I want to use CMS MS on my site I run into a problem. I wish to have access to my blog from the menus created in CMS MS. I tried using the embed tag, but it does not give me all the control I want (I would prefer to use percentages when giving sizes, rather than specifying a width in pix). So I was hoping I could integrate the blog into CMS MS. If I just try to do that I get "Can not redeclare Smary in blog/bblog/inc/Smarty.class.php. I think this makes perfect sense though, since the blog comes with it's own smarty installation. If I remove the line "include /path/Smarty.class.php" from the blog, It tells me it can not extend an unknown class. So the question is, is it doable to do what I want. I would like to telli the blog that these class(es) exist and are already declared, use them.
Is that possible?
I have for quite some time run a blog on my site. The blog is bblog, and it is based on Smarty templates. Now that I want to use CMS MS on my site I run into a problem. I wish to have access to my blog from the menus created in CMS MS. I tried using the embed tag, but it does not give me all the control I want (I would prefer to use percentages when giving sizes, rather than specifying a width in pix). So I was hoping I could integrate the blog into CMS MS. If I just try to do that I get "Can not redeclare Smary in blog/bblog/inc/Smarty.class.php. I think this makes perfect sense though, since the blog comes with it's own smarty installation. If I remove the line "include /path/Smarty.class.php" from the blog, It tells me it can not extend an unknown class. So the question is, is it doable to do what I want. I would like to telli the blog that these class(es) exist and are already declared, use them.
Is that possible?