Giter Site home page Giter Site logo

agentejo / cockpit Goto Github PK

View Code? Open in Web Editor NEW
5.4K 154.0 527.0 22.95 MB

Add content management functionality to any site - plug & play / headless / api-first CMS

Home Page: http://getcockpit.com

License: MIT License

CSS 0.92% JavaScript 43.28% PHP 24.91% Dockerfile 0.03% Hack 11.01% Less 19.84%
headless cms headless-cms php cms-framework javascript api-rest riotjs cockpit backend

cockpit's People

Contributors

abernh avatar aheinze avatar alexksso avatar amgad-naiem avatar amovitz avatar backtick avatar basvdheijden avatar ciruz avatar davidmaneuver avatar dospuntocero avatar drmartingonzo avatar exkazuu avatar flommy avatar gryphonmyers avatar inta avatar jankal avatar joejordanbrown avatar kinolaev avatar lexx27 avatar orthotypos avatar pauloamgomes avatar piotr-cz avatar raffaelj avatar raruto avatar sergeypavlenko avatar stevendevooght avatar timaschew avatar xdamman avatar youanden avatar zontarian 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  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  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 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  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  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

cockpit's Issues

Using Cockpit with Vagrant

Reading the $_SERVER['DOCUMENT_ROOT'] in a Vagrant virtual machine returns /vagrant/, making the routing system not work properly (it should be mapped to '/', right?).

I don't know if this is more of a wrong config from my part, but because of this routing problem, I get redirected to http://localhost:8080/vagrant/index.php/auth/login, which doesn't exist.

Mediafield producing strange output "site:path/to/image"

When using media-field in regions I'm not sure how to get the proper path from {{ media }}. placeholder.
It produces something like site:path/to/image.

Currently I'm working around with something like <?php echo str_replace('site:','/',$media)?>. Is there a better solution? Some sort of URL helper in the template field would be of great help. I noticed $app not being defined in in Region snippet template.

nginx config?

Wondering if anyone has a working nginx config for cockpit... I'm having a little trouble. I do actually get the install page back with a success message, but then I wind up at a 404 upon attempt to reach login...

e.g. /manage/index.php/auth/login

(cockpit itself lives in the /manage subfolder within the otherwise static site)

Media manager allows to delete cockpit or your cockpit folder!!!

i think the best solution to avoid this kind of errors is to define a folder called
'media-assets' for example that will work like the 'storage' folder.
so you can only put files there and use that folder as starting point for the media manager.
at the moment you can destroy your cockpit folder with it.

Tag Field Type

I currently have 2 scenarios:

  • many to many relations as for example 'related content'. This would be field type TAG and a source (for example a collection)
  • a freeform tag field to assign values to achieve a similar functionality as tags in wordpress

SITE_BASE_URL not working

Hi, why my SITE_BASE_URL looks like this

window.COCKPIT_SITE_BASE_URL  = '/D:/wamp/www/git.dev/repositories/';

Same with my document root? how to change this?
because its make my image gallery not working, since they request for background url();
Thanks

update: this error only when i'm running from cli command php -S localhost:12345

Why the PHP 5.4 requirement?

Just curious, why is PHP 5.4 required? This rules out all servers running the latest Ubuntu LTS which is 12.04, running PHP 5.3.10. Is there a workaround or hack to make CockPit work under 5.3?

SQLite not supported

Hi,

I love Cockpit, it is the perfect CMS for me and I been looking for something like this for years!! However, I was so disappointed after spending hours playing around on my local MAMP server that One.com did not support SQLite and therefore I couldn't install Cockpit on any of my websites. :( Is there any way, perhaps a quick conversion to mySQL, so I can get this to work without changing my hosting solution?

Again, Cockpit is freakin' awesome!

french Translation

If you want, i will be pleased to help you with french translation.
Love cockpit !

Function undefined

I have followed the sample code and I have a message of error: "Call to undefined function collection()"

tanks for your help

WYSWIG Entering Images/Browsing Server

Any ETA on functionality to browse the MediaManager or upload from/to the WYSWIG instead of the Source modal choice at present? Just thinking of non technical users.

I am loving the simplistic and well thought out nature of this. Just something like the above needs to be standard really for Regions/WYSIWIG and Collections (news/blog post kind of content entry).

SQLite not supported

Hi,

I love Cockpit, it is the perfect CMS for me and I been looking for something like this for years!! However, I was so disappointed after spending hours playing around on my local MAMP server that One.com did not support SQLite and therefore I couldn't install Cockpit on any of my websites. :( Is there any way, perhaps a quick conversion to mySQL, so I can get this to work without changing my hosting solution?

Again, Cockpit is freakin' awesome!

define Collections using YML

it would be really useful to be able to define Collections using a yaml file so you can kickstart a site really fast with already defined objects you used for other sites for example.

it would be even more awesome to have the ability of creating those files after the creation of it in the cms itself

Cannot save regions, collections etc. on PHP built-in server

Hey guys, found cockpit on coderwall and wanted to try it out. Here's what I did on Linux with PHP5.5

git clone https://github.com/aheinze/cockpit
cd cockpit
chmod 777 storage
php -S localhost:8080

All of the three assertions in the tests pass with only a couple of warnings (undefined SERVER NAME).

And test script works fine as well:

Congratulations! Your server pass the Cockpit requirements.

When I navigate to localhost:8080/install everything seems to work fine, but after logging in I can't save anything in the interface.

I'll get a HTTP 200 on the request but nothing happens

[Fri Dec 27 09:27:07 2013] 127.0.0.1:35577 [200]: /index.php/api/regions/save

Backups in v0.9.11 not working

Hi.
I've just upgraded from v0.9.10 to v0.9.11 and everything is OK except when I go to Settings - Backups I get this message:
"Couldn't resolve cockpit:views/backups/index.php."

Everything else works fine.

BTW, while I'm at it, what would be the best way to upgrade my cockpit installations while keeping my collections and other modules. Backup just overwrites everything so that's not an option.

Cheers,

Sinisa Perovic

Installation failed Data folder is writable: /storage/data

My project is working properly in localhost. but when i uploaded to the server It's giving this error. I have changed the permissions of "data" folder to non-writable and tried different ways.
but it's still giving the same error. what can i do for this?
Thank you!

cockpit

Path problems

I've a lots of errors because of bad paths (i'm using windows with plesk). I would say it's a bad practice to use DIR.
erros

Collection relations

Adding a relation field to the collection type would be a great enhancement. This would make it possible to link collections together.
Content editors would get a search dropdown where they can search through the referenced collection type.

I don't know how difficult it is to add something like that to the current code base or if it even fits the lightweight philosophy of this project.

PHP 5.3 Support

Any chance to get PHP 5.3 Support? What 5.4 features are you using so far? Maybe I can fork it and add 5.3 compatibility - but this depends on what you are using there.

Installation not working document root

I am having problems with installation, document root is set though every time i go to cockpit/install i get redirected to: [domain]/[documentroot]/cockpit/index.php/auth/login

Language file doesn't work

I've created a dutch language file 'nl.php', put it in modules/core/cockpit/i18n and changed the config.php file. But everything is still in English, including the Today box on the dashboard.
I can't figure what is wrong.

base route bug

After installation i try http://localhost/Sandbox/cockpit-master/index.php and get redirected to
http://localhost/var/www/Sandbox/cockpit-master/index.php/auth/login

Apache 2.4.6
PHP 5.5.7

$_SERVER

array (
  'HTTP_HOST' => 'localhost',
  'HTTP_CONNECTION' => 'keep-alive',
  'HTTP_ACCEPT' => 'text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8',
  'HTTP_USER_AGENT' => 'Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/31.0.1650.63 Safari/537.36',
  'HTTP_DNT' => '1',
  'HTTP_ACCEPT_ENCODING' => 'gzip,deflate,sdch',
  'HTTP_ACCEPT_LANGUAGE' => 'ru-RU,ru;q=0.8,en-US;q=0.6,en;q=0.4',
  'HTTP_COOKIE' => '...',
  'PATH' => '/usr/local/bin:/usr/bin:/bin',
  'SERVER_SIGNATURE' => '<address>Apache/2.4.6 (Ubuntu) Server at localhost Port 80</address>
',
  'SERVER_SOFTWARE' => 'Apache/2.4.6 (Ubuntu)',
  'SERVER_NAME' => 'localhost',
  'SERVER_ADDR' => '127.0.0.1',
  'SERVER_PORT' => '80',
  'REMOTE_ADDR' => '127.0.0.1',
  'DOCUMENT_ROOT' => '/var/www',
  'REQUEST_SCHEME' => 'http',
  'CONTEXT_PREFIX' => '',
  'CONTEXT_DOCUMENT_ROOT' => '/var/www',
  'SERVER_ADMIN' => 'webmaster@localhost',
  'SCRIPT_FILENAME' => '/var/www/Sandbox/cockpit-master/index.php',
  'REMOTE_PORT' => '57044',
  'GATEWAY_INTERFACE' => 'CGI/1.1',
  'SERVER_PROTOCOL' => 'HTTP/1.1',
  'REQUEST_METHOD' => 'GET',
  'QUERY_STRING' => '',
  'REQUEST_URI' => '/Sandbox/cockpit-master/index.php',
  'SCRIPT_NAME' => '/Sandbox/cockpit-master/index.php',
  'PHP_SELF' => '/Sandbox/cockpit-master/index.php',
  'REQUEST_TIME_FLOAT' => 1388944298.4920001,
  'REQUEST_TIME' => 1388944298,
)

Instalation problem -- instal failed

A have problem with instalation on server with PHP ver 5.4.17. Required folder exists and are writeble. Instalation page says:

Installation failed
Data folder is writable: /data
Retry installation

Can you add some mor information about errors? Thank you for help.

Access registry values?

This doesn't work:

Parse error: syntax error, unexpected 'default' (T_DEFAULT), expecting ']'....

make cockpit translatable

at the moment there is really few strings to translate, i think its the moment to choose a translation method.

upload images and files in the wysiwyg editor

Be able to upload images or files in the wysiwyg editor would be nice.
Right now you have to go to the media manager first and copy the img url.

Nice cms btw. And it's good with non-tech clients :)

php5.3 support...

... would be nice in a world of many systems runing on 5.3.

Best regards from Mannheim,
Steve

Collections does not show entries in admin area

Hi,

Using the latest 0.9.10. version, my collections are not showing entries in admin area. To be more precise, for each entry I'm seeing empty row that is editable and the information is stored but in the list view, the contents of the rows are not visible.

addons

please write documentation for writing addons

COCKPIT_UPLOADS_BASE_URL isn't set correctly

COCKPIT_UPLOADS_BASE_URL isn't set to document root but rather to it's parent dir.

Docroot: /Volumes/Intenso 200/Websites/cockpit-master

 <script>window.COCKPIT_UPLOADS_BASE_URL = '/Volumes/Intenso 200/Websites/';</script>

Selecting Media doesn't work

I have a collection with a field of the type "media".

When I try to select an image for one collection item, i cannot select any media item, which is inside a directory underneath the root directory. The "select"-button is not there. (testet with chrome and IE)

If I have an image in the root directory and select it for that field, the value of that field is string(14) "site:image.jpg". Where can I declare, that "site:" should be replaced by the actual path?

way to define the default language

at the moment the language is defined inside the cockpit folder in config, but there must be a way to define that outside that folder, that way will be easier to update the code without overwritting stuff.

maybe a good way to do that is to define a folder structure like this:

/
  cockpit-folder
  mysite
    config - cockpit config that extends/modifies the base configuration (like 18n)
    storage - cockpit database
    media-files - mediamanager base folder
    ...
    all your other site files

that way storage is not dependant of cockpit but the site itself

Order entries on list page

"Order entries on list page" cannot use fields for sorting order. They are displayed in drop list and can be selected but on Save they are restored to first "non entry" option.

Add new pages?

Hello,
This project looks really nice. I especially like your documentation site -- it is a good indicator that you are very dedicated to this project and continuing to work on it.

I am curious how to actually add pages to the site via the dashboard. Or is this not possible, and instead I need to create a separate php file for each page and then pull in the contents of a collection? If I need to create separate files for each page, what is a good way to retrieve the content of one specific collection? (The only example I see in the docs is to retrieve by title, but users could change the page title ... so is there a collection ID I can use? Or should I create a separate "id" or "handle" field for the collection and tell users to never change that after it's first added?)

Thanks!

Crawler notice

When Facebook (probably others too) scrapes the page. getClientLang() in Lime/App.php throws a notice because HTTP_ACCEPT_LANGUAGE is not set.

Multiple Media Field

A field to select multiple images would be nice.
Or a reference to a gallery.

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.