wzhao6898 Posted March 25, 2010 Share Posted March 25, 2010 Hi there,I'm trying to use Tool->CMS to create a FAQ page for our web site. I have an existing FAQ page using dojo library for nice displays. When I tried to create a new page using TinyMCE editor, some tag information got removed every time, even when using "HTML source editor". For example. when I enter in the HTML source editor, the resulting page source likes this: How can I get around this, and to "really" edit the HTML source for a page.Thanks,David Link to comment Share on other sites More sharing options...
archproject Posted April 1, 2010 Share Posted April 1, 2010 Hi there, I just posted on how to get a nice FAQ page like yours using the TOOLS>CMS ....http://www.prestashop.com/forums/viewthread/49734/configuring___using_prestashop/faq_in_cms/ and I went to your site and saw your FAQ section .. it looks great .. how do you do that ? can You please share it with me ?RegardsArchproject Link to comment Share on other sites More sharing options...
wzhao6898 Posted April 1, 2010 Author Share Posted April 1, 2010 Hi Archproject,Thanks for your reply. I actually later on got it to work to a certain degree like you saw on our web site. I used dojo javascript library there (just google dojo). One trick is that when you set up dojo library, you need first insert the necessary include tags in the header.tpl file, and since CMS's TinyMCE editor will automatically remove javascript codes, you need to follow the instruction in this post (http://www.prestashop.com/forums/viewthread/46890/configuring___using_prestashop/solved_what_the_hell_why_wont_ps_let_basic_html_to_be_added_in_cms) to disable javascript on your web browser before editing your page using CMS tool.You can use our FAQ page source as an example when you set up yours.BTW, does anybody know how to write a whole new page in prestashop with all the theme, and layout specification in place? What I want to do is to create a FAQ.php page, rather than a cms?cms_id=9, or content/9-faq pageThanks,David 1 Link to comment Share on other sites More sharing options...
Star Posted April 1, 2010 Share Posted April 1, 2010 Quote Hi Archproject,BTW, does anybody know how to write a whole new page in prestashop with all the theme, and layout specification in place? What I want to do is to create a FAQ.php page, rather than a cms?cms_id=9, or content/9-faq pageThanks,David Put the following codes on a page named faq.php and upload it to the root.<?php include(dirname(__FILE__).'/config/config.inc.php'); include(dirname(__FILE__).'/init.php'); include(dirname(__FILE__).'/header.php'); $smarty->display(_PS_THEME_DIR_.'faq.tpl'); include(dirname(__FILE__).'/footer.php'); ?> And make a faq.tpl and put it into your themes folder {capture name=path}{l s='FAQ'}{/capture} {include file=$tpl_dir./breadcrumb.tpl} {l s='Frequently Asked Questions'} write whatever you want on the page. {l s='Home'} That is it. Link to comment Share on other sites More sharing options...
Star Posted April 1, 2010 Share Posted April 1, 2010 Quote Hi there, I just posted on how to get a nice FAQ page like yours using the TOOLS>CMS ....http://www.prestashop.com/forums/viewthread/49734/configuring___using_prestashop/faq_in_cms/ and I went to your site and saw your FAQ section .. it looks great .. how do you do that ? can You please share it with me ?RegardsArchproject I just answered your question on how to do it here:http://www.prestashop.com/forums/viewthread/49734/#219664 Link to comment Share on other sites More sharing options...
Recommended Posts