I've got a sliding banner that I'm having issues with. It's working correctly on my dev site but the pre go live site with an identical partial view is not setting an active item where the item IsFirst.
I've tried a condition instead but this works for the dev site but not the pre live site. I have cleared the App_Data folder and recycled the web app but with no joy.
IsFirst giving strange results
Hi guys,
I've got a sliding banner that I'm having issues with. It's working correctly on my dev site but the pre go live site with an identical partial view is not setting an active item where the item IsFirst.
Using Umbraco 7.1.6
This is my code:
Any help would be much appreciated :)
Hi Richard,
You will need to use the ToContentSet method, this was a breaking change in v7.1 and v6.2 which I documented here
e.g.
Jeavon
Hi Jeavon,
I've just tried that and it's made no difference :(
Rich
I've tried a condition instead but this works for the dev site but not the pre live site. I have cleared the App_Data folder and recycled the web app but with no joy.
New code:
is working on a reply...