Plenti CMS Devlog: Media Index
Jantcu
This is a Dev Vlog series where Plentico maintainers work on the git-backed CMS for the Plentico project (https://github.com/plentico/plenti). We are building in public, so feel free to watch along, ask questions, or even contribute if you're so inclined.
This video discusses the early stages of a media browser implementation. Jesse has updated so Go code in Plenti to build an index of all files in the "assets" folder. We discuss theme content (like logos) vs user generated and managed content, and how to handle these separately to avoid breaking the front end display of things that shouldn't be changed.
Then we take a quick look at fixing the "reset" button on the editing interface. Jim was trying to get the original server rendered content values from /spa/ejected/content.js but they were being modified been changes to the content object. Jesse explains the reference to the original object and fixing with Object.assign() to make a separate copy: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/assign ... https://www.youtube.com/watch?v=Kv2SIquc95k
155834478 Bytes