Try our conversational search powered by Generative AI!

Get page type from content asset folder

Vote:
 

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?

#90626
Sep 15, 2014 11:42
Vote:
 

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

#90629
Sep 15, 2014 11:54
Vote:
 

Oh, that was easy. Thanks! :-)

#90643
Sep 15, 2014 13:37
Vote:
 

You're welcome :-)

#90646
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.