eZ Community » Forums » Setup & design » PHP Scripts into a content item/...
expandshrink

PHP Scripts into a content item/ Article

PHP Scripts into a content item/ Article

Thursday 04 September 2008 1:05:05 am - 2 replies

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!

Thursday 04 September 2008 10:45:56 am

Hi Jun and welcome to the ezecosystem blunk.gif Emoticon

Have a look at :
http://ez.no/developer/forum/setup_design/php_code_in_content
http://ez.no/developer/forum/deve.../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.

Modified on Thursday 04 September 2008 10:46:23 am by Pierre T.

Friday 05 December 2008 7:08:52 am

Hi,

As you can see here :

http://ez.no/doc/ez_publish/techn...ncepts_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

expandshrink

You must be logged in to post messages in this topic!

36 542 Users on board!

Forums menu

Proudly Developed with from