Try our conversational search powered by Generative AI!

Get page type from content asset folder


Hi! I want to trigger an event on a media file if this file resides in the "for this page" folder of a certain page type, is this possible? I've made an IInitializableModule that catches events on my media type and can traverse its parents until I reach the content asset folder, but how do I get the page that folder belongs to?

Sep 15, 2014 11:42

I think you can use the ContentOwnerId for that, in the ContentAssetsFolder class

Sep 15, 2014 11:54

Oh, that was easy. Thanks! :-)

Sep 15, 2014 13:37

You're welcome :-)

Sep 15, 2014 13:47
This topic was created over six months ago and has been resolved. If you have a similar question, please create a new topic and refer to this one.
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.