joe_g Posted May 3, 2015 Share Posted May 3, 2015 Hello, is there a way I can copy a template via the API similar to how it's done in the backend, copying fields and all? thanks j Link to comment Share on other sites More sharing options...
adrian Posted May 4, 2015 Share Posted May 4, 2015 Try this: $t = $templates->get("basic-page"); $nt = $templates->clone($t); $nt->save(); 4 Link to comment Share on other sites More sharing options...
joe_g Posted May 8, 2015 Author Share Posted May 8, 2015 so simple, thanks Link to comment Share on other sites More sharing options...
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