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

"Please Note:
  • At the specific request of Ibexa we are changing this projects name to "Exponential" or "Exponential (CMS)" effective as of August, 11th 2025.
  • This project is not associated with the original eZ Publish software or its original developer, eZ Systems or Ibexa".

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.