orchardcms - Render shape in a view -


i've created contenttype product productpart, since html of product rather complex decided use 1 view content-product.cshtml , render part information manually instead of using shapes. still need render 1 shape price, because need format through service , i'd in productpart driver.

i tried define new zone in view , use placement.info place shape. renders shape's type name instead of html.

orchard.displaymanagement.shapes.shape 

can use approach insert shape? or should choose different approach?

driver:

protected override driverresult display(productpart part, string displaytype, dynamic shapehelper) {     return contentshape("parts_product_price",     () => shapehelper.parts_product_price(         contentpart: part,         contentitem: part.contentitem)); } 

content-product.cshtml:

@model.pricezone() 

placement.info:

<place parts_product_price="pricezone:1"/> 

in content-product.cshtml view want instead:

@display(model.pricezone) 

Comments

Popular posts from this blog

asp.net mvc - SSO between MVCForum and Umbraco7 -

Python Tkinter keyboard using bind -

ubuntu - Selenium Node Not Connecting to Hub, Not Opening Port -