I have a categories' hierarchy in my system that needs to be changed when the parent item's value has changed.
When a create a new category in my system, I always save the path of hierarchy. For example: I've created a category called Category 1, after that I will create a category called Category 1.1 that is Category 1's child.
The path of hierarchy would be: Category 1 > Category 1.1
I would like to call a event receiver, to update all categories children. Is that possible?
Category 1 (Path: Category 1) Category 1.1 (Path: Category 1 > Category 1.1) Category 1.1.1 (Path: Category 1 > Category 1.1 > Category 1.1.1)
When I updated the name of Category, all paths need to be changed. If I change the name from Category 1 to Category X, all paths need to be changed.