Use this function to set the content of a page configuration (in xml)
Parameters are taken from tag (default) or from HTTP GET/Post
Name | Mandatory | Default | Description |
---|---|---|---|
page_id | Yes | The id of the page Ex: /real-estate/ | |
content | Yes | The raw content (in xml) of the configuration of the page | |
output_format | No | REST | JSON to retrieve response in JSON Format or REST to retrieve in REST Format |
jsoncallback | No | Callback function to use in JSON Response Format |
Code | Description |
---|---|
1 | Insufficient rights. You must be logged as an admin to see logs |
114 | Page not found |
119 | Wrong params |
<#set_pagecfg_content page_id="/real-estate/" content="...">
will output in REST
<rsp stat="ok"></rsp>
And in JSON
{"stat":"ok"}