Posted on 26/02/2016 16:58:29
Hi Nicolai,
The attachment is an example from a product detail page, where we are rendering a list of items (FAQ's related to the product).
The Item has a fields have multiple fields
- Keywords
- Products associated with this FAQ
- Theme
- Format
- ...
We are already getting a list of the relevant FAQ, but we need to match the item's fields against a product's field to do some extra HTML: Ex:
- FAQ 1 - related to keywords and theme
- FAQ 2 - related to formart and theme
Because the Item list is being rendered in a seperate template I cannot do stuff like this:
if (item.GetString("Format") == product.GetString("X)) {
@* do some extra stuff *@
}
Does this make sense? Do you know how we could do that currently?
Best Regards,
Nuno Aguiar