Comments (7)
Any sort of javascript errors or similar showing up in your browser's developer tools console?
from cmb2-snippet-library.
Hello Michael, thanks for your quick reply...
...nope, but I've just noticed one thing (weird):
- the upload button works in Chrome
- it doesn't in Firefox (dev edition - the one I was working when I wrote this thread)
- No js console errors in both
Now, after uploading an image with Chrome, it started to work Firefox too (???).
But, in both cases, the uploaded image do not appear in the theme template where I've included the dynamic_sidebar...
The same behaviour was for the Color Picker...
mmmh...
from cmb2-snippet-library.
It's this one that you're working with, right? https://github.com/CMB2/CMB2-Snippet-Library/blob/master/widgets/widget-example.php If not, please point to the one you are using.
It may be an example that needs refreshed/touched up, as I'm seeing it's 2 years old at this point, and if you've customized it since, then i'd just need to see what you have to try and offer any amount of support.
from cmb2-snippet-library.
...yep, is this one with no personal customization. ANd I didn't noticed how "old" it was...
But right now I'm just testing for solutions in widget dev - and I'd like to leverage on CMB2 power...
from cmb2-snippet-library.
Noted.
One thing I'm seeing is that despite having an image field set up, the example code doesn't actually use that field at all in the widget output. So it's not so much that something is broken, it's just that it doesn't utilize every field provided in the output. Also since these are meant to be snippets and customized to one's needs, not the end of the world.
from cmb2-snippet-library.
OK Michaeal, got it - very kind as usual...
...in fact I admit that I didn't thoroughly checked the whole code, as I thought that these was tested and working example snippets, to be considered as a starting point (I mean, I thought these was sort of "official" snippets lib coded & suggested by CMB2... but now I've just read the "Notes" section in the CMB2-Snippet-Library Read Me...)
;)
from cmb2-snippet-library.
It's in the weeds of nitpicky details, but in part it depends on what you define as "tested and working". For example the use, or lack of a use of a created field, in some widget output doesn't constitute that this isn't tested or not working in my mind. The primary purpose of the snippet is to show how to use CMB2 in a widget as a whole, which I believe it's doing still. If it was causing a fatal error that we could easily prevent with some guard statements or similar, then that would definitely be considered "not working" or "not tested extra thoroughly", and need updated/addressed.
On the flipside, I could also see some need to consider removing the non-used field as it's just adding what I'll call code noise.
from cmb2-snippet-library.
Related Issues (20)
- [Help needed] Conditionally replacing a field for another HOT 3
- "required" validation not working. HOT 4
- Auto complete not working in third row HOT 11
- How to return programmatic values and selected options for cmb2 fields HOT 2
- Show_on_cb option based on meta-value (Not working?) HOT 7
- The form is as follows: HOT 8
- Option page and submenus example doesn't work HOT 1
- Default values not applicable in theme option page HOT 10
- edit form not saving HOT 2
- Autocomplete doesn't work if field id starts not from underscore symbol HOT 2
- Autocomplete works only on Post type forms HOT 3
- Possible issue with 'Dynamically Changing Group Title From Subfield' (row counts are getting off)
- Snippet "options-pages-with-tabs-and-submenus" : where is CMB2 2.4.0 ? HOT 1
- Title throwing error HOT 3
- Hope to find help for submenu cpt settings/tabs? HOT 3
- Overriding WP Core post_status field issue HOT 4
- Overriding Meta save for Taxonomy Terms
- [Help] Custom admin taxonomy page view and cmb2 fields HOT 3
- limit-number-of-repeat-fields in taxonomy page HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cmb2-snippet-library.