Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
Hello,
I would like to create nested template ex:
Master - Page 1 - Sub page 1
I have tried:
@section content { @RenderSection("innerContent") }
But I am getting an error.
Can someone please help.
Thanks,
K
Hi Kusum
You can't create 3 level nested template. But, you can create how many you want partial views.
So first level - layout(master template), second level - template(view), third and all other levels - partial views.
Alex
I next 3 deep in a few places on our site and haven't had any issues... what have you encountered that makes you say you cannot do it Alex?
Hello I got the solution :
Ex :
@section content { @RenderSection content }
Hi
Why do you need to render section inside the section?
Hello Alex,
I needed to do so because I had two master for my website.
Regards,
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
Nested Templates - Umbraco 7
Hello,
I would like to create nested template ex:
Master - Page 1 - Sub page 1
I have tried:
But I am getting an error.
Can someone please help.
Thanks,
K
Hi Kusum
You can't create 3 level nested template. But, you can create how many you want partial views.
So first level - layout(master template), second level - template(view), third and all other levels - partial views.
Thanks,
Alex
I next 3 deep in a few places on our site and haven't had any issues... what have you encountered that makes you say you cannot do it Alex?
Hello I got the solution :
Ex :
@section content { @RenderSection content }
Hi
Why do you need to render section inside the section?
Alex
Hello Alex,
I needed to do so because I had two master for my website.
Regards,
K
is working on a reply...