Giter VIP home page Giter VIP logo

Comments (8)

MickeyKay avatar MickeyKay commented on August 21, 2024

+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.

devinsays avatar devinsays commented on August 21, 2024

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.

hchouhan avatar hchouhan commented on August 21, 2024

@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.

jamigibbs avatar jamigibbs commented on August 21, 2024

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.

hchouhan avatar hchouhan commented on August 21, 2024

@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.

WebTrooper avatar WebTrooper commented on August 21, 2024

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.

devinsays avatar devinsays commented on August 21, 2024

This is currently winding its way through core:
https://core.trac.wordpress.org/ticket/21483

from customizer-library.

devinsays avatar devinsays commented on August 21, 2024

This landed in 4.1.

from customizer-library.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.