Hi we have started to upgrade some DW9 sites to DW10. The DW9 sites were upgraded to the recommended versions and the code (custom and API) updated accordingly.
We have created a DW 10.21.5.0 and the setup went well on my local development machine (using the powershell installation method).
We would like to maintain our way of using our current template set up with Dw_Frontpage.cshtml referencing a Main.cshtml, but using the new
@inherits Dynamicweb.Rendering.ViewModelTemplate<Dynamicweb.Frontend.PageViewModel>
and
@inherits Dynamicweb.Rendering.ViewModelTemplate<Dynamicweb.Frontend.ParagraphViewModel>
with the content being rendered with @RenderBody in the Main.cshtml
We have some issues rendering paragraphs however (very simple standard paragraphs, not item types)
We use @Model to get some Page properties like @Model.ID and @Model.Path. Even @Model.Cart.TotalProductsCount and @Model.Cart.CartOrderlines
For Paragraphs we see @Model.Text and @Model.Image etc in our intellisense, but the paragraphs just dont render.
I expected there would be @Model.Paragraphs in the PageViewModel?
Could anyone give us a heads up on how to put together a standard way of doing this in DW10?
Rds
Kevin