Portal Engine Questions on portal engine and web parts.
Version 7.x > Portal Engine > Unable to render webpart inside page template View modes: 
User avatar
Certified Developer 12
Certified Developer 12
chetan2309-gmail - 12/17/2013 8:18:14 PM
   
Unable to render webpart inside page template
I am seeing a strange behaviour

I have Document type "PM - A" whose page template name is also same "PM - A". below this I have document and page template type "PM - B". Now If I am placing a webpart inside PM -b as shown in figure below, its not rendering. However If I am placing it at a level of Pm - A its rendering. I have limited visibility of this webpart by allowing it to render only for doctype - PM -B. this approach is working , however in future this will create problems for me. Any idea, how can I debug this problem. I have checked what all document types can reside under one another. Any pointers?

- PM - A
- PM - B
- webparts

User avatar
Kentico Legend
Kentico Legend
Brenden Kehren - 12/18/2013 11:57:43 AM
   
RE:Unable to render webpart inside page template
Do you have any visual inheritance setup on the template? How about at the page level? This would cause the issue you're explaining.

User avatar
Certified Developer 12
Certified Developer 12
chetan2309-gmail - 12/18/2013 12:04:49 PM
   
RE:Unable to render webpart inside page template
yeah I changed it to inherit from master template it seems to be working now. Though I am still clueless what was causing it not to render.

Could you please point me to any right docs you know?

Thanks FroggEye!!

User avatar
Kentico Legend
Kentico Legend
Brenden Kehren - 12/18/2013 12:09:11 PM
   
RE:Unable to render webpart inside page template
Here are the developer docs. It works very well and once you grasp how it works you'll never go back to the old way of thinking.