User Tools

Site Tools


en:public:developer:template_system:tags:api:get_urlresources_content

<#get_urlresources_content>

Use this function to get the content of a url configuration. more details about url configuration file can be found here

Parameters

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/
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

Error Codes

Code Description
1 Insufficient rights. You must be logged as an admin to see logs
119 Wrong params

Example

<#get_urlresources_content page_id="/real-estate/">

will output in REST

 <rsp stat="ok">
   <content>
     ...
   </content>
 </rsp>

And in JSON

  {
   "stat":"ok",
   "content":"..."  
  }
en/public/developer/template_system/tags/api/get_urlresources_content.txt · Last modified: 2013/03/09 18:18 by admin