Closed (fixed)
Project:
Tiny Slider 2
Version:
1.1.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
21 Aug 2023 at 19:38 UTC
Updated:
11 Aug 2024 at 21:38 UTC
Jump to comment: Most recent
Comments
Comment #2
ipwa commentedMarking #3327033: Possibility to make manual slider settings. as duplicate since this has more details.
Comment #3
grasmash commentedI’m working on a merge request.
Comment #4
ipwa commentedThat sound great Matthew we really appreciate this contribution! We do want to keep the config we've exposed as fields we will be adding a lot more options but having the ability to add your own config as JSON sounds really great to us.
Comment #6
grasmash commentedI've submitted the MR but I understand that the changes I made don't align with your plan. My approach was to replace existing config fields with a single JSON field. Alternatively, perhaps we could add a field like "Config mode" that lets the the can choose between defining config as JSON or as fields. Fields would then be displayed conditionally based on that decision.
As a matter of personal opinion, I like the simplicity of defining JSON rather than creating many fields. It seems like a lower maintenance effort and more future-proof approach.
Comment #7
ipwa commentedThat approach sounds good, if you add that to your merge request I'd be happy to review and merge. Thanks for your work it is appreciated!
Comment #11
endrukk commentedI created a new merge request which is building on the one in #8. There is an optional Config JSON field in the settings, if it has a valid JSON object, Tiny slider settings are overwritten by the JSON.
Comment #12
endrukk commentedI extended my merge request. There is an Advanced mode toggle which enables the free text field and hides other fields. A slight improvement on the UI.
Comment #13
brooke_heaton commentedThe MR failed and the patch is not applying to 1.1.x-dev.
Comment #14
ipwa commentedThis is the merge request: https://git.drupalcode.org/project/tiny_slider/-/merge_requests/15
Comment #15
ipwa commentedComment #17
ipwa commentedThanks Matthew for getting this started and Endre for bringing it over the line, great contributions!
Comment #19
peter caritas commentedI'm attempting to use the advanced mode feature and manually override configuration with json settings. After saving the view, the json settings field is set to null and the view is unchanged. Although, the advanced mode checkbox remains checked. Am I using this correctly?
Here are the json settings I'm adding:
Comment #20
bohemier commented@peter your json is invalid. Try this:
see https://jsonlint.com/