Portal Engine Questions on portal engine and web parts.
Version 7.x > Portal Engine > Inheriting Related products View modes: 
User avatar
Certified Developer 12
Certified Developer 12
chetan2309-gmail - 11/18/2013 6:49:21 PM
   
Inheriting Related products
Hi,

I have a requirement like this

- Parent Product
- Product1
- Product2
- Product1


I want to attach related documents to Parent Product and want every Node inside it like - Product1, Product2 etc to inherit those related documents from the Parent.

Is it possible to achieve this directly from the product?

Is there any way around. I have like 500 products catalogue and most of them share a common related documents. Doing it manually will be difficult for the form contributors.

Thanks,
Chetan





User avatar
Kentico Consulting
Kentico Consulting
Kentico_RichardS - 11/19/2013 4:13:55 AM
   
RE:Inheriting Related products
Hi Chetah,

Thank you for your message.

Unfortunately to achieve this you would need to create additional global event handlers ( http://devnet.kentico.com/docs/devguide/event_handlers_overview.htm )
Which would fire whenever you create and update document -> You would check if the document represents SKU and if yes you would get the object of parent Node and get all his related documents (which are stored in CMS_Relationship ) and then assign them using ObjectRelationshipInfoProvider Class to the current node.

Regretably I dont think there is a easier way than this.

Kind regards,
Richard Sustek