Comments (8)
+1
On Wednesday, September 10, 2014, Harish Chouhan [email protected]
wrote:
Hello @devinsays https://github.com/devinsays, is there a way to choose
files already uploaded? I am using a Logo setting in my client project. In
case the logo image is removed, we have to upload a image again. Similar to
Options framework is there no way to allow users to pick a image already
uploaded?Reply to this email directly or view it on GitHub
#14.
from customizer-library.
I did a little digging through the core code. It looks like WP_Customize_Image_Control allows you to access uploads within the same "context", i.e. you've uploaded one, removed it, then uploaded another. But not the whole media library.
Do you have an example of a theme that has a control like this? I could see how they've implemented it.
from customizer-library.
@devinsays I have never seen it in any theme. Honestly I have avoided customizer until you released this code. Been using your options framework since ages.
from customizer-library.
I think this would be a great addition as well. I've seen this in plugins like this:
https://github.com/RescueThemes/rescue-about-widget/blob/master/index.php
Clicking "Insert Image" will load the Media Gallery showing existing images and also allows for new uploads.
from customizer-library.
@jamigibbs Ye, it is easier to implement that in theme Options, plugin settings or widget area. Like @devinsays said earlier, it has to do with how the customization is implemented in the core. I have download few premium themes to see if anyone has this but so far no luck.
from customizer-library.
Themify (http://themify.me) has very advanced customizer controls built into their theme framework, which does use the media library, rather than uploading every time. In fact, everything about their use of customizer is exemplary, to say the least. I just wish I was better at developing so I could figure out how they do it.
from customizer-library.
This is currently winding its way through core:
https://core.trac.wordpress.org/ticket/21483
from customizer-library.
This landed in 4.1.
from customizer-library.
Related Issues (20)
- Support Panels implementation HOT 4
- Q: Initializing Default Options HOT 3
- Add documentation for placeholder, range, etc. HOT 2
- How to check that settings are being sanitized HOT 2
- Request to add tags to new versions HOT 2
- Hook Additional Options onto Action HOT 7
- Problem when saving choices control HOT 5
- Add option for repeatable fields HOT 1
- Handle ads option HOT 1
- radio select options as images HOT 9
- Default Options - any way to call after theme setup
- Get default helper function not displaying default HOT 1
- Can't clear color values
- Can't add two or more sections to a custom panel HOT 1
- Adding a wysiwyg editor in the customizer-library
- Anyway to add classes to each option
- Image ID instead of URL
- How to "+ Add a Widget" option in section?
- Style missing HOT 3
- Rename body class customizer section from Strathcom Theme Option to something else
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 customizer-library.