regesh Posted October 21, 2016 Posted October 21, 2016 Hi all. I'm creating module and it needs to create some actions in admin panel to work correct. So it would be great if somebody tell my how to do some things below using api (___install() method): create fields put fields to template Thanks
LostKobrakai Posted October 21, 2016 Posted October 21, 2016 Create a Field: https://github.com/LostKobrakai/Migrations/blob/master/FieldMigration.php#L12-L21 Insert a field into a template: https://github.com/LostKobrakai/Migrations/blob/master/Migration.php#L32-L62
regesh Posted October 21, 2016 Author Posted October 21, 2016 Thanks. And how to use it? Create same classes in my module and use them?
LostKobrakai Posted October 21, 2016 Posted October 21, 2016 Put the relevant api calls in your ___install() method. Those examples might be doing it in a bit verbose way, as it's part of a greater picture, so leave out the bits you won't need.
regesh Posted October 21, 2016 Author Posted October 21, 2016 Thanks a lot but can you give an example code! please!!!
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now