Portal Engine Questions on portal engine and web parts.
Version 5.x > Portal Engine > query related to Document Type View modes: 
User avatar
Member
Member
Heni - 2/1/2010 2:08:53 PM
   
query related to Document Type
Hello,

We have one document type Product. Under product we have different categories.

Product:
=>Furniture
=>Chair
=>Tables
=> Carpets etc.
=>Carpet1
=>Carpet2

Now we have another document type as Booking Event.

Event:
Event1
Event2

Now we want when somebody is creating new event e.g. Event3. Whatever categories we have under product should be added under that newly created Event.

So final look,

Event1
Event2
Event3
=>Furniture
=>Chair
=>Tables
=> Carpets etc.
=>Carpet1
=>Carpet2

How we can achieve this? Any help will be appreciated.

Thanks

User avatar
Kentico Developer
Kentico Developer
kentico_martind - 2/2/2010 12:19:30 AM
   
RE:query related to Document Type
Hello,

You can write custom code into OnAfterInsert method of CustomTreeNodeHandler to ensure this. Basically you will need to check if current document is of type cms.event and if so you acquire appropriate documents under product page and create them under event as well. Please see Select documents and Create documents sections in Dev.Guide for more details and code samples.

Best Regards,

Martin Dobsicek