T
tinglis
Guest
Hello, I am currently subscribed to the IDataEvent and performing some actions when new blog posts are published. We have currently added translations to our posts and after retrieving the BlogPost object from the event, {var item = (BlogPost)manager.GetItemOrDefault(contentType, itemId);}, I am unable to identify the language of the post. There is a property in the BlogPost item, "AvailableLanguages":["","en","es"], but this property does not indicate the language of the content of the item I'm currently looking at. Two options would be viable. 1) How am I able to identify the language of the BlogPost item? 2) How am I able to query for a specific language of the blog post? Even though it appears the event.ItemId from IDataEvent is the same when either language is published, using manager.GetItemOrDefault(contentType, itemId); returns the language of the item that raised the event. I wish Sitefinity's documentation would have the structure of their objects. There has to be something that identifies the language. Thanks for the help.
Continue reading...
Continue reading...