{ genres: ["4kvmcwpf0f2ry5r0nxeps5t3dh","4ecpyyskvgnt244m6xa08pd7m2"] }
OrchardCore.DisplayManagement.Razor.IOrchardDisplayHelper _orchard;
public DemoModel(OrchardCore.DisplayManagement.Razor.IOrchardDisplayHelper orchard)
{
_orchard = orchard;
}
{
"size": 10,
"query": {
"bool": {
"must": [
{% if genres %}
{"match": {
"Book.Genres": {
"query":"{% for genre in genres %}{{genre}} {% endfor %}",
"operator": "or"
}
}
},
{% endif %}
{% if agegroups %}
{"match": {
"Book.AgeGroups": {
"query":"{% for agegroup in agegroups %}{{agegroup}} {% endfor %}",
"operator": "or"
}
}
},
{% endif %}
{% if geographies %}
{"match": {
"Book.Geography": {
"query":"{% for geography in geographies %}{{geography}} {% endfor %}",
"operator": "or"
}
}
},
{% endif %}
{% if represenationgroups %}
{"match": {
"Book.RepresentationGroups": {
"query": "{% for group in represenationgroups %}{{group}} {% endfor %}",
"operator": "or"
}
}
}
{% endif %}
]
}
}
}
Order
or ConfigureOrder
properties in StartupBase
or through taking dependencies in your module manifest. You can adjust your log level to Debug to see the default load order of things, by looking at the order in which migrations run
I've been trying to override the Form.Wrapper.cshtml
in the OrchardCore.Forms
module, but I can't seem to find the proper location to place my override within my module. Things I've tried include:
The location of the wrapper within the OrchardCore.Forms module is Views/Form.Wrapper.cshtml, so if I'm understanding the docs here https://docs.orchardcore.net/en/dev/docs/reference/modules/Templates/#overriding-views and here https://docs.orchardcore.net/en/dev/docs/reference/modules/Widgets/#customizing-the-widget_wrapper-template, one of the above paths should have worked?