Developer forum

Forum » Templates » @Item.RenderList - SelfItem missing

@Item.RenderList - SelfItem missing

Jacob Storgaard Jensen
Reply

Hi guys,

It seems to me that I can't use the @Item.RenderList to publish items that are children of an item without specifying ID's...

If I put the below code in the template of my References page I get the output I want (all References listed fine), BUT when I insert the same code on my template of the Reference Category page items I get nothing!


<!--@Item.RenderList(ItemType:Reference;ListTemplate:ItemPublisher/List/Referenceliste-Stor.html;ItemFieldsList:*;ListPageSize:50;IncludeAllChildItems:True;ListSourceType:SelfPage;)-->

So my question is: isn't SelfItem missing somehow or is there a bug?

I've got this hierarchy:

  • References (Page where ItemPublisher module is set on paragraph to render a list with all Reference items)
    • Reference Category 1 (On this PageItem I would like to use Item.RenderList to render all child Reference items of this Reference Category)
      • Reference 1
      • Reference 2
    • Reference Catergory 2 (On this PageItem I would like to use Item.RenderList to render all child Reference items of this Reference Category)
      • Reference 3
      • Reference 4

 

Been looking for a long time on this one:
http://templates.dynamicweb.com/TemplateTags/Dynamicweb-template-tags/Module-tags/Item-publisher/Item-Render.aspx


Replies

 
Jacob Storgaard Jensen
Reply

Damn, found my error... ROFL! Won't even tell it, too embarrassing! :-)

 
Nicolai Høeg Pedersen
Reply

Great! -Glad we could help smiley

 
Jacob Storgaard Jensen
Reply
This post has been marked as an answer

Forgot to remove dwcontent from the class of my content placeholder which I didn't need to be a placeholder... which of course rendered the element empty... there you have it. Embarrassed! cheeky

Votes for this answer: 1

 

You must be logged in to post in the forum