21294 Posts in 5734 Topics by 2602 members
|
Page:
1
|
Go to End | |
| Author | Topic: | 500 Views |
-
Show Content from 2 pages

19 February 2011 at 7:45am Last edited: 19 February 2011 7:45am
Hi,
i´ve a little question. I have an menu with an submenu. Each item has several pages.
An example:
About us -> People -> Page 1
About us -> People -> Page 2If I sit on page "People" I wanna get the content from Page 1 and 2 in HTML.
Here is my code:
<% if Children(1) %>
<div class="text"></div>
<div id="Pagination"></div>
<div id="hiddenresult" style="display:none;"><!--This part of the code should repeat if there are more than two pages
at the first time $content should be content of page 1
at second time $content should be content of page 2-->
<% control children(1) %>
<div class="result $firstlast">
$content
</div>
<% end_control %></div>
<% else %><div class="text">
$Content
</div>
<% end_if %>I hope it´s clear what I´m wanna do. Can anyone help?
Thanks,
Sascha -
Re: Show Content from 2 pages

19 February 2011 at 4:17pm
Did you test that code? Looks like it should work. Don't forget $content should be $Content.
| 500 Views | ||
|
Page:
1
|
Go to Top |


