Pass viewdatadictionary in blockgrid and blocklist html extensions. Add index to block. #13385
SofusMunch
started this conversation in
Features and ideas
Replies: 1 comment
-
Hi @SofusMunch. I think you are right, that this would be a nice improvement. I'll add it to up-for-grabs for now. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
The current GetBlockListHtml and GetBlockGridHtml extensions don't allow passing viewdatadictionary to the partials. I use nested blocklists, for example in a slider blockgrid component:
Since I need to pass some settings from the gridcomponent to the listcomponents I use viewdatadictionary. Unfortunately I can't use the GetBlockListHtml extension.
Also since I need to set the first slide with an "active" class, I've changed the default blocklist view to add an index value:
I haven't looked at the source code, but if possible I think it would be a good addition if a block had an index property.
Beta Was this translation helpful? Give feedback.
All reactions