Comments (1)
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 :
- list all files stored in
uploadpath
directory.
Cons : not contextual, can be messy with a lot of files, maybe some performance issues. - 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) - manage an external yml database with files/pages relations.
Cons : break if page moved, cannot be rebuilt if lost, reinstall, etc. - 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)
- Save in markdown HOT 1
- Image upload not working HOT 5
- Error uploading images HOT 1
- 500 Error after instalation HOT 9
- If the page is save, the symbol disappears HOT 1
- Creating new pages HOT 1
- Error replacing region content
- Compatible with PicoCMS 2.1.4?
- Editable blocks in theme HOT 1
- vendor/autoload.php is missing
- Supports Images upload
- Server-side authentification
- Status response
- Blocks parser
- Notifications
- Don't working with pico-users plugin HOT 5
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 pico-content-editor.