symfony-cmf / simple-cms-bundle

UNMAINTAINED - A more-than-simple cms based on the cmf components
http://cmf.symfony.com/
49 stars 45 forks source link

added a migrator class to make it possible to easily add new pages via the cli #35

Closed lsmith77 closed 11 years ago

lsmith77 commented 11 years ago

the idea is that it would then be possible to add new pages by simply adding a yml file to app/Resources/data/pages and calling:

app/console doctrine:phpcr:migrator page --identifier=/cms/simple/test
dbu commented 11 years ago

ok nice. do we have any doc concerning the migrator yet?

we have to be careful not to duplicate tools like alice though: http://github.com/nelmio/alice that has a bit of a different approach, you basically express entities in yml and alice creates objects from them for you. its primarly meant for fixtures and thus integrates with faker to generate random texts, names, adresses and so on as well.

lsmith77 commented 11 years ago

yes .. i added some docs here http://symfony.com/doc/master/cmf/getting-started/installing-symfony-cmf.html#adding-new-pages

dbu commented 11 years ago

ok cool. we should also have them in the phpcr bundle reference i guess. we have some many things that it becomes a challenge to document them right :-D

lsmith77 commented 11 years ago

also added some docs to the DoctrinePHPCRBundle https://github.com/symfony-cmf/symfony-cmf-docs/commit/6ba64c21374aac170dd4bfb2bb7cf62b72c4c4f0

dbu commented 11 years ago

thanks!