pierrot10 Posted October 20, 2011 Share Posted October 20, 2011 Dear All, PHP Issue: I need to add a PHP code into one of my CMS page. I need to display image that are store into a special folder. Then my script is going to list all of the picture. My Question, I do not know how to add a PHP code. Firstly I found that solution Into my cms.tpl I modified the code at the line 44 as the folowwing: {if $cms->id==12} {php} echo 'wwwwww'; {/php} {else} {$cms->content} {/if} But the wwwwww is not display in my page TinyMCE: I also have a probleme when I wish to add a picture in my TinyMCE. When I click on the picture icon in order to select an image in a folder, I only have a access to the root. I can not navigate to a tree to the place where are located the image. I have the same probleme while I wont to create a link to a pdf file, to be downloaded. I thin it is a TinyMCE parameter, but I absolutely do not know why and how. Can some one help me? Thank in adance Cheers Link to comment Share on other sites More sharing options...
pierrot10 Posted October 20, 2011 Author Share Posted October 20, 2011 Any idea? I have to find a solution very asap. Your help will help me a lot Link to comment Share on other sites More sharing options...
pierrot10 Posted October 24, 2011 Author Share Posted October 24, 2011 I got the solution for the PHP {if $cms->id==2} {include_php file='themes/prestashop/test.php'} {else} {$cms->content} {/if} And then in tools/smarty/Smarty.class.php change public $allow_php_tag = false to true. Do not forget to delette the file in /tool/smarty/cache and compile. However, I do not have a solution for the TinyMCE and it will help if you have any idea Thank 2 Link to comment Share on other sites More sharing options...
Recommended Posts