Hej guys,
I have a 3 level structure of Item pages in my site navigation
Every Level page is it's own Item type. 1) News 2) Group 3) Article
- News
- News_Group1
- Article1
- Article2
- Article3
- News_Group2
- Article1
- Article2
- News_Group1
When I am at News page, I want to have a list of all News_Groups with help of Item publisher
I am trying to achieve something like this:
@{
if(itemsAny){
foreach (LoopItem i in GetLoop("ItemPublisher:Items.List"))
{
var Title = i.GetValue("ItemPublisher:Item.Title");
<h3>@Title</h3>
<div>
@foreach (LoopItem i2 in i.GetLoop("ItemPublisher:Items.List"))
{
<span> <<<--- I need my Article.Title here --->>> </span>
}
</div>
<div>@i.TemplateTags()</div>
}
}
}
My question is, while I am listing all groups, can I somehow access all articles (children of Group)?
In module settings I am including all clind items http://screencast.com/t/aM0m0jWhn32
/Dmitrij