Forums / Developer / Redirect after removing Image

Redirect after removing Image

Author Message

Christoph S.

Tuesday 30 November 2010 7:44:00 am

Hi,

I've got a custom User edit page and I was looking for something like "RedirectURIAfterPublish" for removing an Image. So far, I found out, that there is no "out of the Box" solution. Now I want to try to adjust the ezp-core with something like "RedirectURIAfterRemovingImage" but I just don't now where to start.

Does anyone have a hint for me, where in the kernel the functionality for removing the users image ist stored?

Thanks in advance

Chris

Magnus Hellman

Wednesday 01 December 2010 2:30:09 am

"

Does anyone have a hint for me, where in the kernel the functionality for removing the users image ist stored?

"

Have a look at kernel/classes/datatype/ezimage/ezimagetype.php and the method customObjectAttributeHTTPAction().

Note: It's used for all images, not only user images and it doesn't store anything.

Also you may want to take a look inside kernel/content/edit.php for the redirects.

Although I would recommend another way of extending the core functionallity, simply becuase it'll cause less headache when you upgrade.

Without knowing anything details about your custom user edit page I don't really know what's suitable. Perhaps a module or a custom action?

Christoph S.

Thursday 09 December 2010 7:35:12 am

"
"

Does anyone have a hint for me, where in the kernel the functionality for removing the users image ist stored?

"

Have a look at kernel/classes/datatype/ezimage/ezimagetype.php and the method customObjectAttributeHTTPAction().

Note: It's used for all images, not only user images and it doesn't store anything.

Also you may want to take a look inside kernel/content/edit.php for the redirects.

Although I would recommend another way of extending the core functionallity, simply becuase it'll cause less headache when you upgrade.

Without knowing anything details about your custom user edit page I don't really know what's suitable. Perhaps a module or a custom action?

"

Thanks for the hints!

My problem was, that I wanted to display the standard user/edit pages in the third level, like Main Menu -> Sub Menu -> 3rd Level -> My profile. All went fine, except when the button "remove image" was clicked. Then ezp switches from user/edit to content/edit and my Submenus disappeared. I solved that with a little frontend hack and without touching the core functionallity.