Im not really sure what you want to accomplish or if you really want to use partials, but:
The @RenderSection("content_section", false) should only be referenced once, in you master template (thats what the error message says) and when you want to put content in that section, you write:
in each different template i have different design
SubTemplate 1 < section class="sec1">design1 < /section>
SubTemplate 2 < section class="sec2">design2< /section>
SubTemplate 3 < section class="sec3">design3< /section>
.......
in Master Template i have Navigation, Header and footer. I want that i could put different sortable sections, with different design and content in the body like:
RenderSection in foreachLoop
Hi,
first of all - i´m new in Umbraco but i learned a lot in the last 2 Month. I want to use the RenderSection Methode in a foreach Loop.
In my Templates every Template have this Section defined.
This is my error: The following sections have been defined but have not been rendered for the layout page "~/Views/Master.cshtml": "content_section".
this is myCode: @helper GetNodes(){
is there a work around ? Thanks for help
Im not really sure what you want to accomplish or if you really want to use partials, but:
The
@RenderSection("content_section", false)
should only be referenced once, in you master template (thats what the error message says) and when you want to put content in that section, you write:Hi Dennis, thank you for your answer
in each different template i have different design
SubTemplate 1 < section class="sec1">design1 < /section>
SubTemplate 2 < section class="sec2">design2< /section>
SubTemplate 3 < section class="sec3">design3< /section>
.......
in Master Template i have Navigation, Header and footer. I want that i could put different sortable sections, with different design and content in the body like:
< html>< header>< nav>ss< /header>
< section class="sec2">Content< /section>
< section class="sec3">Content< /section>
< section class="sec1">Content< /section>
< section class="sec3">Content< /section>
< section class="sec1">Content< /section>
....
< footer>< /footer> < /html>
Ok, so did my suggestion work for you?
sorry no - because i already implent this sectiob
is working on a reply...