Giter Club home page Giter Club logo

docpad-plugin-minicms's Introduction

miniCMS

⚠️ Warning ⚠️

This plugin is not maintained anymore. Pull Requests that fix/improve this repo will be accepted however!

Add admin features to Docpad

screen1

An admin panel for Docpad?

I know there has been a lot of talk about defining a roadmap to build a docpad GUI, but I needed an admin panel with basic CMS features right now, so I just made one. It is far from being perfect but it works.

Key features

  • Configure everything on your docpad.coffee file: admin path, password, lists, filters, forms
  • List and Manage your content with a very easy user interface
  • Create forms to edit your content with built-in components: datepicker, wysiwyg, markdown, image upload, tags with autocomplete

How to use

Run docpad install minicms

Then, you should definitely take a look at the docpad.coffee file of the blog example project in order to know how to configure the plugin.

Demo

To run the demo, download the zip file including a blog example project.

Go to the examples/blog/ directory and run:

npm install
./app run

Then you can try the admin panel by going on http://localhost:9778/cms/ (access: admin/password) and see what it becomes on clicking the "Site" item of the navbar.

Articles listing in admin panel

screen2

Editing an article

screen4

Blog example resulting main page

screen3

Thanks to...

All these projects that were very helpful:

docpad-plugin-minicms's People

Contributors

jeremyfa avatar nfriedly avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

docpad-plugin-minicms's Issues

Error when trying to save changes

I get this error in terminal when I try to save changes I've with the cms

error: An error occured: 
Error: spawn ENOENT
    at errnoException (child_process.js:977:11)
    at Process.ChildProcess._handle.onexit (child_process.js:768:34)

Any clue why it's happening?

filepicker.io fieldtype

is there a possibility that you could create an input field for filepicker.io?
or explain how to create new fields?

thanks in advance

Malformed inline YAML string

This happens when i'm trying to inser a table in the markdown editor.

ex:

  • Lorem ipsum Irure consequat consequat
Lorem ipsum Irure consequat consequat Lorem ipsum Irure consequat consequat
Lorem ipsum* 00000 0.0%
Lorem ipsum* 00000 0.0%

*Lorem ipsum Irure consequat consequat

  • Lorem ipsum Irure consequat consequat
  • Lorem ipsum Irure consequat consequat

Allow for no configuration

Would be great if we could avoid the configuration step somehow. Perhaps we can have the plugin use the configuration from the example blog if none was specified. Of course, a warning should probably be outputted. It would lower the barrier to quick lets test this out.

EMFILE Error

On docpad start up you do this block of code and for some reason this stops the compile process of docpad

I just commented that block and i'm not getting any more erors

Images not deleted

When I press delete button on a content with a photo type field, the document is deleted, but not the image itself,

Here is my config :

  name:   ['Photos', 'Photos']
        list:
            fields: [
                name:   'Photo'
                name:   'Name'
                html:   ->
                    if @photo?
                        return '<div style="height:50px"><img src="'[email protected]+'"style="width:50px;height:50px;" alt="photo" /></div>'
                    else
                        return '<div style="height:50px">&nbsp; - &nbsp;</div>'
            ]
            data:   ->
                        filter = type: 'photo'
                        return @docpad.getCollection('html').findAll(filter)
        form:
            url:    -> "/photos/#{@name}"
            ext:    'html'
            meta:
                photo:      -> @photo
                type:       'photo'
                name:       -> @name
            components: [
                field:      'name'
                type:       'text'
            ,
                field:      'photo'
                type:       'file'
                images:
                    standard:
                        url:    -> "/images/#{@name}.#{@ext}"
                        width:  498
                        height: 1200
            ]

I also put a log of the toRemove var on /out/routes/edit.js, the output is filename.undefined, so it seems like it miss the extension part of the uploaded file.

Separate "saving" and "applying changes"

Each save triggers docpad update. This can be a problem when there are many documents as each save may be very slow or even fail.

It would be nice if saving the content on admin side didn't affect the website, unless we press an "apply changes" or "deploy" button.

That would require to separate admin data model and actual generated document files.
This would also keep document files "clean" as the admin data is not merged with it.

slug windows compatibility

I'm not sure if its a problem for all windows computers but one of your dependent modules 'slug' is not working for me and the issues been on their git repository for over 10 months with no real sign anyones dealing with it. So I thought you might like to know incase there was an easy way around using the module :)

image upload does not works

image upload does not works at all because req.files is empty(undefined) in the router\upload.js and returns 404 from the #L112.
In order to fix this, needs to change the following line #L74

return app.post('/' + this.config.prefix.url + '/:content/:field/upload', cp, cs, express.bodyParser({ keepExtensions: true }), require('./routes/upload').bind(this));

docpad-plugin-minicms broken with last docpad version

can't get it work with docpad version "~6.57.0", the MinicmsPlugin.serverExtend function breaks because of the missing express 'static' method. has anybody experienced this error ?

here is my log :

info: Welcome to DocPad v6.57.0 (local installation: /Users/matthieugayon/Documents/development/silencebetweencodes/node_modules/docpad)
info: Contribute: http://docpad.org/docs/contribute
info: Plugins: cleanurls, coffeekup, coffeescript, less, marked, minicms, stylus
info: Environment: development
info: Watching setup starting...
info: Watching setup
info: Force watching file for minicms.
error: Something went wrong with the action
error: An error occured:
TypeError: Object function app(req, res, next){ app.handle(req, res, next); } has no method 'static'
at MinicmsPlugin.serverExtend (/Users/matthieugayon/Documents/development/silencebetweencodes/node_modules/docpad-plugin-minicms/out/minicms.plugin.js:67:64)
at ambi (/Users/matthieugayon/Documents/development/silencebetweencodes/node_modules/docpad/node_modules/ambi/out/lib/ambi.js:25:27)
at Task. (/Users/matthieugayon/Documents/development/silencebetweencodes/node_modules/docpad/node_modules/event-emitter-grouped/out/lib/event-emitter-grouped.js:38:23)
at ambi (/Users/matthieugayon/Documents/development/silencebetweencodes/node_modules/docpad/node_modules/ambi/out/lib/ambi.js:23:18)
at fire (/Users/matthieugayon/Documents/development/silencebetweencodes/node_modules/docpad/node_modules/taskgroup/out/lib/taskgroup.js:159:23)
at b (domain.js:183:18)
at Domain.run (domain.js:123:23)
at Task.fire (/Users/matthieugayon/Documents/development/silencebetweencodes/node_modules/docpad/node_modules/taskgroup/out/lib/taskgroup.js:166:25)
at processImmediate as _immediateCallback

Make it easier to extend the CMS with new fields

This minicms plugin is working quite well, but it is still a quick & dirty code. It would be nice to implement a new version with more extensible code. Maybe by using angularjs for the frontend.

Secret !

hi there!
i'm just getting into docpad...
and i just installed mini-cms on an instance.
at startup i get
Error: Secret is required for cookie sessions (minicms)
where is the config file?
or should i directly edit src/minicms.plugin.coffee ?

Relational Fields

Would be great to think about creating inputs that could connect to other models, creating a relational link between the two (like Client > Project or Album > Photo)

Praise

This is awesome by the way. Fantastic work!

image field is not working

im getting this error:

error: An error occured:
Error: spawn ENOENT
at errnoException (child_process.js:980:11)
at Process.ChildProcess._handle.onexit (child_process.js:771:34)

Docpad fails after installing MiniCMS

docpad version: 6.69
node version: .10.29
npm version: 1.4.23

I installed Docpad (with Bootstrap/Jade skeleton) in a new, empty folder, and verified that it ran on localhost:9778. I then stopped it and installed MiniCMS via npm("npm install docpad-plugin-minicms"). I then installed the MiniCMS as per Docpad's requirements ("docpad install minicms"). I started up Docpad again and localhost:9778 would not resolve, giving Chrome's standard "This webpage is not available."

I reinstalled docpad in a few different skeletons and the same problem keeps occuring.

/cms error

Running DocPad 6.52.1, installing miniCMS, using the example blog config, docpad run and going to localhost/9778/cms shows on the following error on the webpage & command line:

TypeError: Cannot read property 'a' of undefined
    at Session.def.get (c:\Users\Michael\Desktop\MDM\Client Projects\SunStarIT.com\Development\Staging\node_modules\docpad-plugin-minicms\out\utils\sessionBridge.js:17:29)

Full error at:
https://gist.github.com/mikeumus/6496997

Changelog

Would be nice if a changelog was maintained. Typically the convention exists within a History.md file and follows the format:

## History

- v6.34.0 May 8, 2013
    - Now uses [envfile](https://github.com/bevry/envfile) for `.env` file parsing
    - Fixed `TypeError: Cannot call method 'get' of undefined -> /lib/docpad.js:972` error when using [minicms plugin](https://github.com/jeremyfa/docpad-plugin-minicms)
        - Closes [issue #501](https://github.com/bevry/docpad/issues/501) reported by [rleite](https://github.com/rleite)

Unable to delete documents

While minicms is able to create new documents, it is unable to delete them. I'm guessing this has something to do with a configuration outside of minicms, but I'd like to see how to solve it so that we can put it in the documentation.

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.