Hello All,

I have this use case that when i rename a page it should rename the other pages 
with same name  in the same space.

ex., there are 3 pages with names "A"  ,"B"  and "A has / of B" in a space.

when i rename "A" to say "renamedA" we need to change the other pages to" 
renamedA has / of B"  and the same for renaming a page with name "B".

I tried to catch the events when i do a rename action on the page , and there 
are two events fired DocumentSaveEvent and DocumentDeleteEvent and tried to 
apply my logic in my component  to rename the pages with name in the same space 
but it failed . 

i checked the implementation of the rename method and there the object name is 
not changed for the renamed document because of which when i try hql query with 
doc.name=obj.name it fails.

is there any way  through which i can solve my use case?

Regards 
Durga




_______________________________________________
devs mailing list
[email protected]
http://lists.xwiki.org/mailman/listinfo/devs

Reply via email to