Opticon Stockholm is on Tuesday September 10th, hope to see you there!
Opticon Stockholm is on Tuesday September 10th, hope to see you there!
Do you have any ContentAreaRenderer in your project? that can be a place where general we retrieve only filtered contents Content area items. and simply use Html.PropertyFor(x=>x.YourContentArea) in rest of the views.
Hi,
I'm interested to understand the problem here. As far as I'm aware, rendering a ContentArea using Html.PropertyFor() will retrieve the same items as using FilteredItems. What type of items are you seeing that you shouldn't be? Expired/not published items? Items which are personalised with visitor groups? Items the user doesn't have permissions to view?
Hmm, could it be a bug for then? The PropertyFor gives me empty divs for expired Commerce items, could this maybe be related to Commerce only? Maybe this should have been a post in the Commerce forum. I will try with CMS items and get back to you.
/Kristoffer
Hi!
I am using the PropertyFor to render the content in a ContentArea and that works just fine except that it iterates throught all items withoiut using FilterdItems.
Is there a default way to have the PropertyFor use FilteredItems when redering? I know there are several ways to solve this by building my own DisplayTemplate etc, but I'm looking for a built in way.
Thanks!
/Kristoffer