Developer forum

Forum » CMS - Standard features » Item Types: Item list

Item Types: Item list

Glenn Holm
Reply

Hi.

 

I just updated a solution to 8.3.0.5 so I can use the new item list in Item Types.

 

But it seems like I'm doing something wrong because I can't get it to work.

 

I have created an item type called "Album" which only can be used with ItemList, but how do I select it in the item type called "Galleri" where I have an item list?

 

When I create a paragraph and choose "Galleri", then there is no item list in the paragraph.

 

Hope you can help.

 

Best regards

Glenn

1.PNG 2.PNG

Replies

 
Mikkel Ricky
Reply

You should be able to pick the item type for the list in the Parameters section (see attached image) and then pick the fields on the list using the icon next to the item type picker.

 

Do you have a solution I can take a look at?

 

Best regards,
Mikkel

 

 


 

 

 

 

 

Screen_Shot_2013-10-11_at_09.31.23.png
 
Glenn Holm
Reply

Okay, I don't seem to have that option.

 
Mikkel Ricky
Reply

I have that option on the solution (see attachment). The Parameters are loaded using AJAX and may take some time to load after upgrading the solution. After the first load they will appear instantaneously.

You have to edit the Galleri item type and check "ItemList" under "Enable item type for" to make it available for item lists.

 

 

 

Screen_Shot_2013-10-11_at_10.03.46.png
 
Glenn Holm
Reply

Okay. I found the problem. It seems like it doesn't work in Firefox. I tried in Chrome and I could see it right away.

 

So there might be a problem with Firefox?

 
Mikkel Ricky
Reply

We cannot reproduce this issue in Firefox (tested in the two lastest versions on both Windows and Mac). 

 
Glenn Holm
Reply

Okay, then I don't know what the problem was :)

 

Could you show me an example on how to get the values from an item list?

 

I know that you can use "Item.FieldSystemName" to get values from one find, but not how to do it from a list with multiple items.

 

Hope you can help!

 

/Glenn

 
Mikkel Ricky
Reply
This post has been marked as an answer

You have a loop for each item list field in your item. Example Album paragraph template:

<article class="album">
	<header>
		<!--@Item.AlbumName--><!--@DwTemplateTags-->
	</header>
	<div class="description">
		<!--@Item.AlbumDescription-->
	</div>

	<section class="images">
		<ul>
			<!--@LoopStart(Item.AlbumImages)-->
			<li>
				<img src="<!--@Item.AlbumImages.Image-->"/>
				<!--@Item.AlbumImages.ImageName--> (<!--@Item.AlbumImages.ImageDescription-->)
			</li>
			<!--@LoopEnd(Item.AlbumImages)-->
		</ul>
	</section>
</article>

You can set this paragraph template as default for Album paragraphs using "Item paragraph layouts" on the website Layout settings.

 

Votes for this answer: 1
 
Glenn Holm
Reply

Thank you!

 
Michael Fløe Haug
Reply

I have the same problem. I have a page where I want to loop out the items from an itemlist. My page crashes when I try to make the loopstart and -end on the itemlist's. Page is http://www.mif.dk/Default.aspx?ID=565.

 
Mikkel Ricky
Reply

This is a bug (Bug #16227) and it will be fixed in the next hotfix release of 8.5.1.

Support for Access is being phased out in Dynamicweb 8.5.1 and we strongly recommend that you upgrade to SQL Server.

Best regards,
Mikkel

 
Kristian Kirkholt
Reply

Hi Glenn

The problem TFS#16227  has now been fixed in version 8.5.1.8

You are able to find this build in the download section:

http://developer.dynamicweb-cms.com/downloads/dynamicweb-8.aspx

Please contact Dynamicweb Support if you need any additional help regarding this.

Kind Regards

Dynamicweb Support
Kristian Kirkholt

 

You must be logged in to post in the forum