Shape is not being rendered.

Topics: Troubleshooting
Jan 1, 2012 at 5:52 AM
Edited Jan 1, 2012 at 5:52 AM

I  Have a custom content content item. And i am trying to display it using following code.


I have checked in debugger that ContentItem is not null but still related shape is 
not rendered.Instead what is rendered is following text: 


Also, I have a alternate defined for content in my Theme.That is also not rendered.

  Please suggest what could be going wrong?

Jan 1, 2012 at 6:13 AM

Display is for rendering shapes. A content item is not a shape. What are you trying to do?

Jan 1, 2012 at 11:44 PM


I want to display all the content in the ContentItem. What shape should I use?

I am not so clear but I have seen some module using @Display(Model.ContentItem) to display the content. What is this for? 



Jan 2, 2012 at 1:49 AM

The ItemController by default displays the content item.

What exactly is it you need to do that ItemController doesn't?

Jan 2, 2012 at 9:15 AM

Thanks A lot Guys. I really appreciate the prompt support you have been providing to the community.

I think I was not passing the right shape to the display method. I was trying to to get a content item-template alternate selected for the content item in my theme. And i  was using 

@Display(@Model.ContentItem) in the view but as Bertrand pointed out Model.ContentItem is not a shape, so it was not working.

But later i changed above code to @Display(@Model) and It started working.


Thanks and Regards,