Getting the entry body in a backend_save

Creating and modifying plugins.
Post Reply
satollo
Regular
Posts: 13
Joined: Wed Jul 05, 2006 9:41 am
Contact:

Getting the entry body in a backend_save

Post by satollo »

I know, it's a stupid question by I'm not able to get out by myself: haw can I extract the body (anche the extended) in ba backend_save hook?

Thank you!

Satollo
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: Getting the entry body in a backend_save

Post by garvinhicking »

Hi!

In backend_save, the body of your entry is in this variablE:

Code: Select all

$eventData['body']
$eventData['extended']
HTH,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
Timbalu
Regular
Posts: 4598
Joined: Sun May 02, 2004 3:04 pm

Re: Getting the entry body in a backend_save

Post by Timbalu »

I just grab this thread and would like to ask:

Can we do something similar to

Code: Select all

                case 'backend_publish':
                case 'backend_save':
                    do something with $eventData['nuggetXX']
              
with staticpage entries too, without setting new hooks into event_staticpages?

Edit: Found them

Code: Select all

                case 'backend_staticpages_insert':
                case 'backend_staticpages_update':
;)

Are there any other plugins which provide backend textareas, like the serendipity_html_nugget_plugin, which I have to include also?
Regards,
Ian

Serendipity Styx Edition and additional_plugins @ https://ophian.github.io/ @ https://github.com/ophian
Post Reply