Jump to content

Repeater & API


bitmatix
 Share

Recommended Posts

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) {
??
}
Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...