Inxentas Posted March 6, 2018 Posted March 6, 2018 I love the option to export fields via the CMS, and wondered about using that export data in a module. Basicly, I'd want to configure a field using the CMS and then paste it's export data in the module code as a string, or save it in a seperate file I can read from the module code. Once I have that string as a variable or file, I'd want to run the same code the import option does... but then from my module code's install method! Is that possible? It would save a lot of time configuring fields through the API. 1
Inxentas Posted March 6, 2018 Author Posted March 6, 2018 I found this while looking around: https://processwire.com/blog/posts/august-2014-core-updates-1/ Seems what I'm after is how to properly use the setImportData() method.
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