File Include in CMS?

I created some pages in the CMS section and I’m trying to do a file include that will appear on mutiple CMS pages. I tried the following, both of which failed… any suggestions?

{include file="cms_nav/bedroom.tpl"}

{include file="index.php?target=pages&page_id=bedroom"}

cms pages do not process smarty tags, so this wont work.

It can’t be done directly in the CMS but you could add some pages using this method - [url]http://vb.cs-cart.com/showthread.php?t=358[/url] - then you can include that file find as the pages are made from templates.



Then in the CMS use the link function instead of actually creating page content.



You’ll need to capture the page into the mainbox template in order for it to look the same as the ‘normal’ CMS pages.



Simon

sounds like you are you trying to make a custom page (bedroom.tpl), if so the instructions to do so can be found here…

[url]http://vb.cs-cart.com/showthread.php?t=358[/url]

Thanks for the pointers guys. Is there any reason why smarty tags cannot work with CMS or why this functionality cannot be added? Does anyone know how to do an include using PHP tags (or will I run into the same problem)?

PHP tags will be processed as per usual.

Base64 coding runs so I would presume that everything else would.



Jesse

[quote name=‘disneyana’]I created some pages in the CMS section and I’m trying to do a file include that will appear on mutiple CMS pages. I tried the following, both of which failed… any suggestions?

{include file="cms_nav/bedroom.tpl"}

{include file="index.php?target=pages&page_id=bedroom"}[/QUOTE]



Parse Smarty tags in the content of static pages! This future must by default, i think.