Belchertown - New Page

172 views
Skip to first unread message

Christian Radermacher

unread,
Mar 3, 2021, 5:53:14 AM3/3/21
to weewx-user
Hi,

i have a Problem to define a new Page.
I can't find anything in the documentation.
And I want to disable the Reports/NOOA Reports Page. 

How can I do this?

Regards
Christian 

Karen K

unread,
Mar 3, 2021, 7:17:54 AM3/3/21
to weewx-user
For all Pages except the home page you find a directory and a .inc file. Within the directory, there is an index.html.tmpl file. For example: about.inc, about/index.html.tmpl. I did it that way, that I copied those files to a new name. Then I opened the new index.html.tmpl file and replaced about.inc by the name of the new .inc file and "about" in the 3rd line of the file by the name of the new page. The .inc file contains the content you want to show on the page.

So, how to include the new page into the menue?
  • Open skin.conf and look for "nav_*" items. Add your item.
  • Look for "*_page_header" and add your item, too. Save the file.
  • Open page-header.inc and look for "*_page_header". Add 2 lines like the other examples there for your page. Save the file.
  • Open header.html.tmpl and look for "nav_*". Add a line for the new page in menue like the examples there
  • Remove lines you do not want any more. Save the file.

Karen K

unread,
Mar 3, 2021, 7:21:33 AM3/3/21
to weewx-user
Ok, I forgot one step: in skin.conf look for the section "ToDate". Add 2 lines there for your page.

Christian Radermacher

unread,
Mar 3, 2021, 9:27:41 AM3/3/21
to weewx-user
Thanks a lot. Works very well

Regards
Christian

Reply all
Reply to author
Forward
0 new messages