Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

Customising the CMS

onBeforeWrite in Page problems


4 Posts   1501 Views


27 January 2010 at 12:37pm Community Member, 2 Posts

hey.guys..i met a problem with the function onBeforeWrite () on Page type.
i want to execute a function once click the [SAVE]or[SAVE and Publish] Function..
but when i put the onBeforeWrite() into Page Type. In the backend, when i click the save button, it shows [Javascript Parse Error],
Where do you think the problem will be?!


27 January 2010 at 1:04pm Forum Moderator, 5511 Posts

It could be your Debug::show() causing the issue. If you have Firebug enabled you can see what the error returned is by looking at the console panel -> response tab.


27 January 2010 at 1:24pm Community Member, 2 Posts

Thanks, willr, the problem is i didnt click the Php extension [clurt]. but i am using the method in my code area...
The firebug do helps a lot.. thanks for your suggestion.


29 January 2010 at 6:07am Community Member, 3 Posts

Hi I am trying to use the same onBeforeWrite for Keywords/Description as you are using, is this working for you?
I am finding it is not adding any keywords or description