Forums / Developer / How to find class_identifier in pagelayout while in edit

How to find class_identifier in pagelayout while in edit

Author Message

Brendan Pike

Sunday 20 August 2006 6:15:28 pm

I want to include a javascript function in my body tag but only when editing a certain class type. I realise you shouldn't use $node in pagelayout but $module_result doesn't seem to present this information while in edit mode. Can someone educate me on the correct way please.

www.dbinformatics.com.au

We are always interested in hearing from experienced eZ PHP programmers and eZ template designers interested in contract work.

Sergey Shishkin

Sunday 20 August 2006 9:51:57 pm

Try to use <b>append-block</b> or <b>set-block</b> in edit-mode template for this class to add javascript.
http://ez.no/doc/ez_publish/technical_manual/3_8/reference/template_functions/variables

Brendan Pike

Wednesday 23 August 2006 7:52:13 pm

Thanks Sergey, worked well :)

www.dbinformatics.com.au

We are always interested in hearing from experienced eZ PHP programmers and eZ template designers interested in contract work.