U4-2064 - Adding custom mediaitem to a "folder" and rest of the folder wont appear

Created by Rasmus Fjord 08 Apr 2013, 07:02:19 Updated by Sebastiaan Janssen 21 Apr 2013, 10:11:06


Had a customer calling in about a wierd incident, that i just tested and cannot fix. The customer can pick a folder and then we generate a gallery for them on their product page.

In a gallery 2 mediatypes can occur, "image", and a "youtubeVideo". youtubeVideo contains 1 property, which is just a text field named "youtubeId".

When we do a @myImageFolder.Children.Count() it will first return 10 items(which is fine). If we add a "youtubeVideo" and redo the count it suddenly only returns 1 as a count.

Then if we Sort the folder everything is good.

In the xml only the media id(of the folder) is stored so we ofc do Model.MediaById() through razor.


Jeroen Breuer 08 Apr 2013, 07:28:23

Perhaps it's related to this? http://issues.umbraco.org/issue/U4-1772

Rasmus Fjord 08 Apr 2013, 07:32:15

It could easily be. The "youtubevideo" item is ofc created by the good old right click and create. so dunno if there something that the new upload/sort features is doing

Sebastiaan Janssen 08 Apr 2013, 07:49:40

Could you please update the "Affected versions" field? Thanks!

Rasmus Fjord 08 Apr 2013, 07:54:47

Arh sry forgot that. The solution im seeing this on is 4.11.5. Added it to the meta data.

Sebastiaan Janssen 21 Apr 2013, 10:10:47

This seems to work fine in the upcoming 4.11.7 and must be related to recent changes made to the indexing of media items. Just to make sure, this is my Razor (non-MVC) code:

@ @myImageFolder.Children.Count()

Priority: Normal

Type: Bug

State: Fixed


Difficulty: Normal


Backwards Compatible: True

Fix Submitted:

Affected versions: 4.11.5

Due in version: 4.11.7


Story Points: