What is great in this module (and different to views_entity_embed) is that the embedded view picks up the content id as argument automatically (I haven't tested other situations, but for content id as context filter it works). In some situations we only ever want to use the current node (where the view is embedded) as context filter and not let the user override the setting.
Therefore I would propose to add an option in filter settings to hide the contextual filter to the user.
| Comment | File | Size | Author |
|---|---|---|---|
| #3 | screen-embed-view-without-argument-field.png | 16.7 KB | anruether |
Comments
Comment #2
a.dmitriiev commentedDo you want a setting to disallow using/setting arguments in the view? Is it correct? So whatever arguments (contextual filters) user sets in any way, just ignore and use only default arguments?
Comment #3
anruetherNo, I want to hide the contextual filter field in the modal so the user cannot see it at all, so that it looks like this:
Comment #4
a.dmitriiev commentedOk, that is possible. I will add this.
Thank you for making the module better with your feedback.
Comment #5
a.dmitriiev commentedComment #7
a.dmitriiev commentedI've added a new settings on the filter format "Hide views arguments (contextual filters) input", by default it is not "on". If this checkbox is checked, modal dialog will not show views arguments input. Also all manually inserted values into shortcode directly will be ignored.
Please check.
Comment #8
a.dmitriiev commentedThe change is in the dev branch only.
Comment #9
a.dmitriiev commentedComment #10
a.dmitriiev commentedComment #11
anruetherSorry for being late to the party ;)
I tested alpha 7 and it works nicely. Thanks a lot!