Jump to content

Search the Community

Showing results for tags 'page api'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • Welcome to ProcessWire
    • News & Announcements
    • Showcase
    • Wishlist & Roadmap
  • Community Support
    • Getting Started
    • Tutorials
    • FAQs
    • General Support
    • API & Templates
    • Modules/Plugins
    • Themes and Profiles
    • Multi-Language Support
    • Security
    • Jobs
  • Off Topic
    • Pub
    • Dev Talk

Product Groups

  • Form Builder
  • ProFields
  • ProCache
  • ProMailer
  • Login Register Pro
  • ProDrafts
  • ListerPro
  • ProDevTools
  • Likes
  • Custom Development

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


AIM


MSN


Website URL


ICQ


Yahoo


Jabber


Skype


Location


Interests

Found 1 result

  1. I've a json file, and from json file I'm creating some dynamic pages, problem is how i can edit language field or how to add new filed through API I'm doing like this <?php $string = file_get_contents('incl/codes.json'); $json_a = json_decode($string, true); $arabic = $languages->get("Arabic"); $page->of(false); foreach($json_a as $code){ $p = new Page(); // create new page object $p->template = 'city_code'; // set template $p->parent = wire('pages')->get('/master_data/city_codes'); // set the parent $p->name = $code["CITY_CODE"]; // give it a name used in the url for the page $p->title = $code["CITY_CODE"]; // set page title (not neccessary but recommended) $p->title->setLanguageValue($arabic, $code["CITY_AR"]); $p->save(); } ?>
×
×
  • Create New...