WebsitedataT.json: Difference between revisions

m
m (→‎How the file is used: Made clearer)
For example <code>&lt;span data-cmxdata="recordsbegandateISO"&gt;&lt;/span&gt;</code> would instruct the "setpagedata.js" script to insert the date in the JSON line that we examined in detail at the start of this Wiki page, and <code>&lt;span data-cmxdata="temperatureChange24hours"&gt;&lt;/span&gt;</code> would make it insert the temperature difference we used to show how arithmetic can be used in what we presented earlier as an example of what can be added as a modification to the JSON template.
 
In the tables below, that explain the data represented by various lines in the template file, there are multiple columns:
In the tables below, that explain the data represented by various lines in the template file, the Cumulus [[webtags|tag name]] and its meaning are explained, it is made clear whether any [[Webtags/Parameters|input/output modification parameter]] appears, and the table clearly identifies what JSON object name is used for the span attribute value. It might seem there is some repetition, but the tag name and JSON object name do not always match. Please note for simplicity, not every line in the file is explained, sometimes just one example is given representing multiple lines, this is enough to show you the format (with or without parameters), and whether the tag name and JSON object name do match.
* Cumulus tag name (including whether any input/output modification parameters)
* JSON object variable name
* The span sequence used in HTML file to relate to the
InThe thereason tablesfor below,showing all three columns is that explainsometimes the datatag representedname byand variousthe linesvariable name do not match in the templateJSON file, and that if you look in the CumulusHTML [[webtags|tagfile name]]you andneed itsto meaningfind arewhat explained,data itwill isbe inserted madethere, clearincluding whether any [[Webtags/Parameters|input/output modification parameter]] appears, andor the tabledefault clearlyoutput identifiesfrom what JSON object name is used for the span attribute value. It might seem there is some repetition, but thethat tag name andwill JSON object name do not always matchappear. Please note for simplicity, not every line in the file is explained, sometimes just one example is given representing multiple lines, this is enough to show you the format (with or without parameters), and whether the tag name and JSON object variable name do match.
 
=File details=
5,838

edits