Reemplazo de un elemento de contenido de Plone sin romper la integridad del enlace

In a Plone site I have a page that I want to replace with a folder. However, this page has a number of incoming links from elsewhere in the site. Since I'm using the link-by-UID feature, these links will break if I force the deletion of the page so that I can create the folder in its place.

What is the best way to turn the page into a folder and keep all the incoming links working?

preguntado el 01 de febrero de 12 a las 22:02

Create a custom method which allows you to "fix" page UID after the old object and UID have been forcefully deleted having link integrity disabled? Fix being = set UID the same as old UID. -

Manually fiddling with the UIDs is asking for trouble. (At the very least, there's a couple race conditions because some other new object might get that UID in the meantime, somebody might already rely on the new UID of the folder, etc.. Might be slightly safer to keep the page, create the folder, then swap the UIDs then delete the page.) -

The Plone UID is a random 128bit value, so creating one content item per second there's no danger of finding a collision until well after all the stars in the universe have burnt themselves out ;) -

1 Respuestas

yo usaría Productos.contentmigration con un CustomQueryWalker (though you will have to temporarly disable the link integrity check but it works).

Respondido 02 Feb 12, 13:02

No es la respuesta que estás buscando? Examinar otras preguntas etiquetadas or haz tu propia pregunta.