I appologize if this is a stupid question. But, isn't that what I would use on the template for my widget to render the widget properties on my widget's template? What would I use on the template for my page to render the entire widget on my page?
Thanks for your response @AlexSkrypnyk How do I add the template for my widget to the template for my page? I'm sorry if I'm not using the correct terminology here. I'll provide the code I'm using now and maybe that'll clarify the trouble i'm having...
The DocType for my widget is called "wLefty", the DocType for my page is called "Demo".
The template for my Nested Content widget is called wLefty and here is that code...
The template for my page is called Demo (this is where I'm unclear how to add the widget to my page template)...
@inherits Umbraco.Web.Mvc.UmbracoTemplatePage
@{
Layout = "Page.cshtml";
}
@* the fun starts here *@
<h1>LEFTY</h1>
@* How do I add my wLefty widget here? *@
How to render Nested Content widget on Page
I've got a Nested Content widget that has a DocType and a Template. How do I add the template for my widget to the template for my page?
Hi Bh
You can use just all fields, if you have only one item as nested content:
If you have multiple items:
I appologize if this is a stupid question. But, isn't that what I would use on the template for my widget to render the widget properties on my widget's template? What would I use on the template for my page to render the entire widget on my page?
You will use it on the page where the widget will be.
Thanks for your response @AlexSkrypnyk How do I add the template for my widget to the template for my page? I'm sorry if I'm not using the correct terminology here. I'll provide the code I'm using now and maybe that'll clarify the trouble i'm having...
The DocType for my widget is called "wLefty", the DocType for my page is called "Demo".
The template for my Nested Content widget is called wLefty and here is that code...
The template for my page is called Demo (this is where I'm unclear how to add the widget to my page template)...
Did you ever figure this out?
@Greg yes sir I did get it figured out with a boat load of help from @AlexSkrypnyk.
is working on a reply...