Loading...

All project content is available for reading, but you need to be a member of the project for Subversion checkout of source code, or to create/modify any information.
Login if you are a member. Apply here to request membership (open to all).

Ticket #257 (new question)

Opened 6 years ago

Last modified 6 years ago

Possible bug?

Reported by: magnus.claesson@… Owned by: alexander@…
Priority: major Component: EPiImage
Keywords: Cc:

Description

When I Copy a page in EPiServer the image references in the "ImageGallery" will point at the old page pagegolder.

The normal behaviour should copy the images as well and load it in the new page pagefolder?

Change History

comment:1 Changed 6 years ago by alexander@…

I haven't been able to find out how EPiServer triggers this behavior, so haven't been able to add it to EPiImage. Anyone?

comment:2 Changed 6 years ago by ulrika.lindeberg@…

We fixed this by adding an event EventHandler<EPiServer.CopyPageEventArgs> in Global.asax, and in the eventhandler create a new page files folder for the new page, copy the images - if any - in the EPiImageGalleryImageCollection from the old page to the new location and change the filepath in the new file to the new images.

Note: See HelpUser/Tickets for help on using tickets.