New Default Web Site Information: Difference between revisions

m
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...
5,838

edits