3

I have written a event handler that fires when a component is saved. I want newly created component to be localized in all the child publications. How can one find a lit of child publications. There is a property for finding parents publication but for child there is none.

1 Answer 1

5

You can use

BluePrintChainFilterData

Here's an example:

BluePrintChainFilterData filter = new BluePrintChainFilterData();
filter.Direction = BluePrintChainDirection.Down; var result =
ClientAdmin.GetListXml({THE_ID_OF_YOUR_ITEM}, filter);

This will return you XML containing all the data of your children elements.

There's different properties available on the BluePrintChainFilterData, if you're looking to filter down, sideways, shared items etc, these are all in the api docs.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.