Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Three new toolbox tools #505

Open
cubiclesoft opened this issue Jun 26, 2018 · 1 comment
Open

Three new toolbox tools #505

cubiclesoft opened this issue Jun 26, 2018 · 1 comment

Comments

@cubiclesoft
Copy link

I just released Barebones CMS 2.0 today:

http://barebonescms.com/

You might recognize the user interface. It is, of course, ContentTools.

Screenshot of the Barebones CMS administrative interface

I added three brand new tools to the toolbox:

  • A HTML embed dialog (it's the icon that looks like <>). The dialog allows any HTML (including broken HTML) to be injected into the content. There's actually a new ContentEdit type and a new HTML tag (div-embed) involved to accomplish the feat. It's slightly similar to ContentFlow without having to exit the editing mode. The embed dialog also supports custom templates, which are little bits of Javascript and data that define fields the user can fill in and then generate the HTML for the user.

  • A file upload dialog (it's the folder icon with a + symbol). The dialog is split into two tabs. The second tab performs uploads with completely custom UI supplied via callbacks. The first tab uses callbacks to request searches and filtering and gathering search results. Each file that is inserted can toggle between multiple modes. For example, images can be inserted as an image (the default), a link to an image, or a link to download the image. Files that the web browser can view (e.g. images) get an icon that allows the user to preview the file in an overlay modal instead of opening the file in a new tab.

  • A dedicated cropping tool (it's the standard crop icon). Callbacks are used to load a cropping widget of the user's choice as well as whatever cropping ratios are desired (e.g. 16:9).

See my branch that implements the above: https://github.com/cubiclesoft/ContentTools/tree/barebones

Feel free to use any of the tools or ideas. I'll be getting a demo site up and running soon so that website visitors can play with a real Barebones CMS installation, including the content editor with these tools.

@anthonyjb
Copy link
Member

@cubiclesoft Sorry for the late reply to this - Good stuff chap and congrats on the release!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants