bitmatix Posted August 15, 2012 Posted August 15, 2012 Hi, I have a page with a template this template has a "repeater" field. Now I want to add entries to the repeater field via API. Could anyone explain me how to do that? page = 'vehicle' template = 'vehicleTemplate'; repeater_field = 'vehicleFeature'; $page = $pages->get("template=vehicleTemplate"); $features = array('feature1', 'feature2', 'feature3'); foreach($features as $feature) { ?? }
Soma Posted August 15, 2012 Posted August 15, 2012 I think that's one thing Ryan wanted to simplify. Look in the original repater thread
ryan Posted August 15, 2012 Posted August 15, 2012 See the section on this page "Using the API to add or remove repeater items": http://processwire.com/api/fieldtypes/repeaters/ (though let me know if I've misunderstood the question) I think that's one thing Ryan wanted to simplify. Already did awhile ago. 1
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