agentejo / cockpit Goto Github PK
View Code? Open in Web Editor NEWAdd content management functionality to any site - plug & play / headless / api-first CMS
Home Page: http://getcockpit.com
License: MIT License
Add content management functionality to any site - plug & play / headless / api-first CMS
Home Page: http://getcockpit.com
License: MIT License
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.
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.
The last option in a select box does not highlight in Chrome 32.0.1700.76 m however it is selectable.
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)
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.
I currently have 2 scenarios:
Really love this! Perhaps creating docs on how to create an addon?
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
I think cockpit is targeted at anyone, not just people already familiar with the technology stack: avoid assuming people know what "PDO" and other acronyms reference. E.g., http://getcockpit.com/docs references PHP Data Objects (PDO) and new users shouldn't have to search out what these things imply.
Spell them out and link to additional or authoritative information.
Graphic icons are OK but the text bubble is swapped.
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?
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!
If you want, i will be pleased to help you with french translation.
Love cockpit !
I have followed the sample code and I have a message of error: "Call to undefined function collection()"
tanks for your help
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).
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!
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
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
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
Hi,
I just downloaded cockpit today. The dropdown menu on admin panel does not working on firefox 26.0 on linux version
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.
When creating a new collection entry the fields don't get the default value that I've set for them.
Nice app by the way!
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.
I didn't like the fact that the mediamanager shows the entire document root.
Checkout 1a65f45 for a possible implementation. See if you like it or would do it differently.
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
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.
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,
)
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.
This doesn't work:
Parse error: syntax error, unexpected 'default' (T_DEFAULT), expecting ']'....
at the moment there is really few strings to translate, i think its the moment to choose a translation method.
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 :)
... would be nice in a world of many systems runing on 5.3.
Best regards from Mannheim,
Steve
I've added a field of type Boolean to a collection, but it doesn't show up anywhere on the entry page.
hi there.
what does this mean? there is NO folder with that name at all... ? how can i solve this problem and continue with my installation?
thanks and greetings,
martin
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.
please write documentation for writing addons
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>
this happens when i click on "settings > addons"...
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?
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" 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.
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!
When Facebook (probably others too) scrapes the page. getClientLang() in Lime/App.php throws a notice because HTTP_ACCEPT_LANGUAGE is not set.
A field to select multiple images would be nice.
Or a reference to a gallery.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.