craftsmancoding / repoman

Repoman allows for easy package development in MODX Revolution. Take back the simplicity!
30 stars 7 forks source link

Tutorial or Simple Wiki page for managing System Settings #28

Closed mark-ellul closed 9 years ago

mark-ellul commented 9 years ago

Hi,

I am not sure if the seed_data approach would be correct, but I think it would be very helpful if there was an example for using the seed_data approach for adding and updating System settings.

Or is there another way we can add system settings via code/repoman?

Thanks in advance

fireproofsocks commented 9 years ago

No: seed data is the way to add all objects. All objects are defined as files so you can version control them -- it is absolutely critical that you version the object as a file.

Duly noted that I've got lots of docs to write, but there is a page here: https://github.com/craftsmancoding/repoman/wiki/Seed-Data

Example System Setting format is demonstrated here: https://github.com/craftsmancoding/repoman/wiki/Sample-Objects

mark-ellul commented 9 years ago

Thanks for the update!

fireproofsocks commented 9 years ago

I've added this page: https://github.com/craftsmancoding/repoman/wiki/Tutorial--System-Settings

Hopefully that contains relevant information for the topic. Please make suggestions where appropriate.