Jump to content

Cms Page Directory


Recommended Posts

i want to embedd my own code buddy

 

in this case you should edit templat file of your theme, it mean that you must go to the:

themes/your_theme/cms.tpl file and add your code there.

 

remember that this is SMARTY not pure php / html

 

if you want to add php code - you should edit CMS controllers

Link to comment
Share on other sites

Vekia is correct. If you want to add add script or css files to the cms page, that is done in CmsController.php

 

Not sure if this is what you are asking, but find the section that starts like this and add js/css files here:

 

if ($this->assignCase == 1)
$this->addJS(_THEME_JS_DIR_.'cms.js');
$this->addJS(_THEME_JS_DIR_.'jquery-1.3.2.js');
$this->addJS(_THEME_JS_DIR_.'somejsfile.js');

 

Note this will call whatever you add for ALL cms pages. I have not figured out a way to have it for specific cms pages.

 

Then as Alexander stated create your new cms pages in BO and insert your html in the page content section. Its not a pretty solution but it does work. I had to do this same thing to produce this cms page: http://www.whisparde...treatment-ideas

Link to comment
Share on other sites

×
×
  • Create New...