Forums / Setup & design / PHP Scripts into a content item/ Article
Jung Son
Wednesday 03 September 2008 4:05:05 pm
Can I put php scripts into ezpublish contents item or article?or can we wrap external php page within the contents?
If you know the solution, please advice.
Thanks!
Pierre T.
Thursday 04 September 2008 1:45:56 am
Hi Jun and welcome to the ezecosystem ;)
Have a look at : http://ez.no/developer/forum/setup_design/php_code_in_contenthttp://ez.no/developer/forum/developer/how_to_insert_php_code_in_templates
And I was looking for a contribution I think which enabled to hack the kernel of ez and insert php code in online editor... But I don't refind it... I tell you as soon as get it.
Hope it helps !
Regards,
P.
Maxime Thomas
Thursday 04 December 2008 10:08:52 pm
Hi,
As you can see here :
http://ez.no/doc/ez_publish/technical_manual/4_0/concepts_and_basics/content_and_design
On line one of the content section : it's written that content and design are separeted.
I guess it's a very bad idea to put PHP code in a content for this reason.If you want a code to be executed on a particular content, you can make a specific module or make an override and create a specific operator / function.
Another point is that as it's content, it won't neer be interpreted by the template engine...
Max
Maxime Thomas [email protected] | www.wascou.org | http://twitter.com/wascou Company Blog : http://www.wascou.org/eng/Company/Blog Technical Blog : http://share.ez.no/blogs/maxime-thomas