Calling other website data on the Imperial CMS homepage requires four steps: Determine the data source (website URL) Create an external data source (data source name, address, encoding, cache time) Create a data model (model fields, Calling address, calling method) Calling data (use [getfield] tag, specify field ID, model name, data ID, ispage)
##How to Empire CMS homepage calls other website data
Step 1: Determine the data source
Determine the URL of the website where the data that needs to be called is located.Step 2: Create an external data source
In the "External Data Source" menu of the Imperial CMS backend, create a new external data source.Step 3: Create a data model
In the "Data Model" menu of the Imperial CMS background, create a new data model to store the called data .Step 4: Call data
Where data needs to be displayed, use the [getfield] tag of Empire CMS to call external data.<code class="php">[getfield id=字段id model=模型名 dataid=数据id ispage=1]</code>
Example:
<code class="php">[getfield id=title model=external_data dataid=1 ispage=0]</code>
The above is the detailed content of Why can't I set up the Imperial CMS homepage to call data from other websites?. For more information, please follow other related articles on the PHP Chinese website!