Coder Social home page Coder Social logo

Comments (1)

nliautaud avatar nliautaud commented on June 18, 2024

Totally agree.
I'm waiting for the feature to be reviewed and possibly merged on ContentTools side.

The basics should be easy to implement, but I'll have to decide how to keep track of the files in a pico-simple way. Here are some solutions I see :

  1. list all files stored in uploadpath directory.
    Cons : not contextual, can be messy with a lot of files, maybe some performance issues.
  2. keep an history of uploaded files directly in the PicoContentEditor page metadata settings.
    Cons : files references could be altered by editing the list (forget files, break or add non-existant paths)
  3. manage an external yml database with files/pages relations.
    Cons : break if page moved, cannot be rebuilt if lost, reinstall, etc.
  4. reproduce content structure when uploading files, like in Pico Pages Images, to contextualize.
    Cons : break if page moved.

I would go with solution two, by reducing some issues with :

  • Edit the page metadata on upload to add the new filename to an history list.
  • Edit the page metadata at the right time(s) to check the files in history and remove the missing ones.
  • Return the history list to the editor UI when requested.
  • Adding the solution one as an option in one way or another. Ideally a switch in the ContentTools UI between "uploaded on that page"/"all files", but not sure that I'll be able to dive into CT UI building.

An advanced UI have been implemented here https://github.com/cubiclesoft/ContentTools/tree/barebones (see http://barebonescms.com/demo), don't know if it can be used.

Feel free to tell me your thoughts.

from pico-content-editor.

Related Issues (17)

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.