Pirate3000 wrote: ↑Mon 26 Jul 2021 1:43 pm
as i have noticed that all the new one seem to start cmx-***** and im trying to add some custom tags to the website.
so can you still use the old ones with some mods, or new ones only.
None of the MX web tags have a "cmx-" prefix. You are confusing the attributes that the new web site uses to write data to page with the web tags that supply the data.
The web tags are the same as they always were.
The old web site used the web tags directly embedded into each page. That meant the Cumulus had to process every page and upload a new copy of each page every update interval.
The new web site uses pages that have markers in them where the data is to go - the <span "data-cmxdata=xxxx"></span> value - and a data file that contains the - well - data!
That data file is in JSON format, it has property names that match the attributes in web pages - the "xxxx" in "data-cmxdata=xxxx", and the value in the
template file is supplied by the good old fashioned web tag.
Now Cumulus just has to process that JSON template file, and upload the resulting data file to the web site and all the web pages can read it to extract the bits of data they need.
That means to add your up time, you need to...
1. Add a property the JSON template file of say:-
Code: Select all
"programUpTime":"<#ProgramUpTime>",
2. On you web page add in a span where you want the uptime to appear like:-
Code: Select all
<span data-cmxdata="programUpTime"></span>