Forums / Setup & design / Using EZ class where a script will be placed in page and then run...

Using EZ class where a script will be placed in page and then run...

Author Message

Richard Francken

Wednesday 23 March 2005 1:59:30 am

Hi,

On this moment I have a website with static pages. In HTML page I'm using java script.

In the head there are some includes of scripts and some standard functions.

In the body there are some scripts. Those scripts get content from a partner. The follow line is the most important:

document.writeln('<sc'+'ript language=javascript src="http://www.mobilemoney.biz/wizard2.asp?mmpart0_1=content&mmchar0_1='+getparam("mmchar0_1")+'&mmstart0_1='+getparam("mmstart0_1")+'&mmsection0_1='+getparam("mmsection0_1")+'&mmphonetype0_1='+getparam("mmphonetype0_1")+'&mmmoreinfo0_1='+getparam("mmmoreinfo0_1")+'&cat=0&choice1=1&rows=10&cols=2&hidesex=&refname=wmemotion&language=nl&sections=0&phones=&mmcountry0_1=&mmdisplaytype="></sc'+'ript>');

This documentwriteline is for every type of content different. I want to use EZ as my new CMS so I can easy manage new content. I'm looking a way that I can create a class in EZ with a property so I can place in the specific code. The results need to be that, if I select a page the page will be build up with the specific script in it and with the content from my partner.

I don't get it work. Is there any one who has experience with this?

Thanks a lot,

Richard

Ɓukasz Serwatka

Wednesday 23 March 2005 2:51:30 pm

Hi Richard,

That`s great that you want to use eZ publish in your project!

You can add "text filed" data type to your class which can be use to display plain xhtml code or you can use match[node] for template override and paste your code in to tpl file.

Personal website -> http://serwatka.net
Blog (about eZ Publish) -> http://serwatka.net/blog

Richard Francken

Thursday 24 March 2005 2:27:18 am

Hi Lukazs,

I'll work this out. Thanks.

Richard

Jonathan Dillon-Hayes

Monday 28 March 2005 2:54:38 am

Howdy!

Basically, you would put that javascript directly into an override template for the site.

It's the same as embedding an ad server script (which I assume is probably what you're trying to do).

If you're trying to pass around ad server stuff, I would HIGHLY suggest against embedding it for any kind of display. The best way is to manage it as an attached text file from your partners in eZ.

Jonathan

---------
FireBright provides advanced eZ deployment with root access
http://www.FireBright.com/