hi folks,
I've downloaded C1 4.0 and played around for hours and I think this is really cool stuff compared with other CMS products :D
Coincidentally, I guess I found a bug on __Content Spots__ - using default demo site, there are two options "Change the theme" & "Manage spots". But whatever I change the sequence by moving items up & down I ALWAYS get "Manage spots" above "Change the theme"...
weren't this supposed to be rendered according to my settings?
Thanks.
Comments: ** Comment from web user: wysocki **
I've downloaded C1 4.0 and played around for hours and I think this is really cool stuff compared with other CMS products :D
Coincidentally, I guess I found a bug on __Content Spots__ - using default demo site, there are two options "Change the theme" & "Manage spots". But whatever I change the sequence by moving items up & down I ALWAYS get "Manage spots" above "Change the theme"...
weren't this supposed to be rendered according to my settings?
Thanks.
Comments: ** Comment from web user: wysocki **
Hi!
This is not a bug. This is the way the Razor function "Content.ShowContentSpots" is implemented:
```
var spots = Data.Get<Content.ContentSpot>().Where(f=> spotIds.Contains(f.Id)).ToList();
```
The above code gets data items from the data type as they are pre-ordered and merely uses the list fo IDs to find the next match in the data type.
You can change the code in this Razor function so that the items are ordered according to the list of the IDs when retrieved. Replace the above code with something like that:
```
var spots =
from id in spotIds
join s in Data.Get<Content.ContentSpot>().Where(f=>spotIds.Contains(f.Id)).ToList() on id equals s.Id
select s;
```