5,838
edits
m (→Adding Data from the websitedata.json File: add link) |
|||
Line 159: | Line 159: | ||
=== Adding Data from the websitedata.json File === | === Adding Data from the websitedata.json File === | ||
If you wish to insert data from the websitedata.json file, then all you need to do is add a <nowiki><span></nowiki> element with the "data-cmxdata" attribute set to the data item you wish to display. | |||
If you wish to insert data from the [[WebsitedataT.json|websitedata.json]] file, then all you need to do is add a <nowiki><span></nowiki> element with the "data-cmxdata" attribute set to the data item you wish to display. | |||
For example to add the current temperature and unit to your page, you would add the following spans... | For example to add the current temperature and unit to your page, you would add the following spans... |
edits