Fahadsohail Posted March 25, 2013 Share Posted March 25, 2013 Hello Friends i want to add my cms own coding page but i dont know where i have to put my all coding and how to show my cms page in my website please can anyone describle me how to do this and where is main cms file and code for page ? Link to comment Share on other sites More sharing options...
Alex Simonchik BelVG Posted March 25, 2013 Share Posted March 25, 2013 Hi, you can create any CMS page from backend Preferences->CMS Regards Link to comment Share on other sites More sharing options...
Fahadsohail Posted March 26, 2013 Author Share Posted March 26, 2013 i want to embedd my own code buddy Link to comment Share on other sites More sharing options...
vekia Posted March 26, 2013 Share Posted March 26, 2013 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 More sharing options...
Fahadsohail Posted March 27, 2013 Author Share Posted March 27, 2013 but i have 2 pages so i need to pages code and in cms.tpl i can add just one. Link to comment Share on other sites More sharing options...
Whispar1 Posted March 27, 2013 Share Posted March 27, 2013 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 More sharing options...
Recommended Posts