I can't get my custom shape to render

Topics: Troubleshooting
Apr 14, 2013 at 6:40 AM
Edited Apr 14, 2013 at 6:48 AM
NEVERMIND, I had a placement.info line in my layout that was routing the shape to non-existant Zone. Sorry.

I have a driver that returns a ContentShape():
return ContentShape("Parts_MinisiteBlob_Menu", () =>
    return shapeHelper.Parts_MinisiteBlob_Menu(Menu: menuShape);
This code is getting hit no worries.

My placement.info has the following line:
<Place Parts_MinisiteBlob_Menu="Content" />
I have a file in /Views called 'Parts.MinisiteBlob.Menu.cshtml'. This view never gets hit and shape does not render to the page.

I don't really know what else to try :/

If I rename the ContentShape() output by the driver to "Parts_MenuWidget" then it does hit the view for that part. But I don't want to use that view, I want to use my own. So to me it seems like it might be an issue with Placement if it's working for one name but not another.


Note: If I hack the code out of the driver and put it directly in the layout to make the shape, then call @Display() on the shape, it renders just fine.
Apr 17, 2013 at 6:46 AM
You forgot to specify a number after the zone name. Content:1 for example.
Apr 17, 2013 at 6:46 AM
You also need to have an actual zone called Content in your Content shape (check out your content.cshtml to see what zones it has.
Apr 17, 2013 at 6:47 AM
Actually I was redirecting the shape to a non-existant Zone in my Theme's placement file. I missed the leading slash on the zone I was trying to place it in.

Thanks though!