1,122
edits
(Added templates and adding data from JSON) |
|||
Line 19: | Line 19: | ||
After migrating it is best to flush the browser cache for your web site before loading it again. | After migrating it is best to flush the browser cache for your web site before loading it again. | ||
== Editing the Template Files == | |||
=== Adding new pages to the new site menus === | === Adding new pages to the new site menus === | ||
Unlike the old site where you had the edit the menu on every existing page in order to add a new one, the new site has the menus defined once. | Unlike the old site where you had the edit the menu on every existing page in order to add a new one, the new site has the menus defined once. | ||
Line 83: | Line 83: | ||
Note that because the mobile menu is separate from the full screen menu, you can make the menu entries a little more descriptive if you wish. | Note that because the mobile menu is separate from the full screen menu, you can make the menu entries a little more descriptive if you wish. | ||
=== FAQ | == Creating New Pages == | ||
=== Blank Template Pages === | |||
The are a number of blank page templates available for download. You can find them here: [//{{SERVERNAME}}/Downloads/WebTemplatesCurrent-v1.zip Blank page templates v1] | |||
The zip file currently contains three versions of page: 1 column plus sidebar, 2 column plus sidebar and 3 column plus sidebar. You can use whichever is most appropriate to the data you wish to display. | |||
The templates are commented with information about where to place your headings and data etc. | |||
You can delete the sidebar if it is not required and say you just want a single column of information. | |||
=== 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. | |||
For example to add the current temperature and unit to your page, you would add the following spans... | |||
<nowiki><span data-cmxdata="temp"></span> <span data-cmxdata="tempunit"></span></nowiki> | |||
Where "temp" and "tempunit" are the names of the values to be displayed from the websitedata.json file. | |||
== FAQ == | |||
==== I want to keep the old web site look and feel, but also update to MX v3.10 ==== | ==== I want to keep the old web site look and feel, but also update to MX v3.10 ==== | ||
Well, good news (for now). The distribution zip file contains a folder named /webfiles-legacy. | Well, good news (for now). The distribution zip file contains a folder named /webfiles-legacy. |