User Tools

Site Tools


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

This is an old revision of the document!


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

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
114 page not found

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.1362838135.txt.gz · Last modified: 2013/03/09 18:08 by admin