Author Topic: Adding Menu Item in flyout-menu.xml in Saratoga  (Read 222 times)

0 Members and 1 Guest are viewing this topic.

Offline WxNut

  • www.weathervaneweather.com
  • Member
  • *
  • Posts: 18
    • Weathervane Weather
Adding Menu Item in flyout-menu.xml in Saratoga
« on: May 07, 2020, 10:01:02 PM »
Hello,

I am looking for some guidance to add a menu item to the flyout menu file that comes with the Saratoga templates.

I have no problem with adding a menu item for a link to another php page on my site like:

<item caption="UV Forecast" link="wxuvforecast.php"/>

however I would like to link to my CWOP page:  http://www.findu.com/cgi-bin/wxpage.cgi?call=dw5272&last=120&radar=***

I have tried using: <item caption="CWOP" link="http://www.findu.com/cgi-bin/wxpage.cgi?call=dw5272&last=120&radar=***"/>

But then I get an error:  error on line 73 at column 99: EntityRef: expecting ';' 

Any ideas?

Thanks,

Tim

Offline saratogaWX

  • Administrator
  • Forecaster
  • *****
  • Posts: 8884
  • Saratoga, CA, USA Weather - free PHP scripts
    • Saratoga-Weather.org
Re: Adding Menu Item in flyout-menu.xml in Saratoga
« Reply #1 on: May 07, 2020, 10:17:24 PM »
You need to replace all the & with &amp;amp; in the URL so the XML parser will be happy (and your page can continue to validate).
Ken True/Saratoga, CA, USA main site: saratoga-weather.org
Davis VP1+ FARS, Blitzortung RED, GRLevel3, WD, WL, VWS, Cumulus, Meteobridge
Free weather PHP scripts/website templates - update notifications on Twitter saratogaWXPHP

Offline WxNut

  • www.weathervaneweather.com
  • Member
  • *
  • Posts: 18
    • Weathervane Weather
Re: Adding Menu Item in flyout-menu.xml in Saratoga
« Reply #2 on: May 07, 2020, 10:40:40 PM »
Perfect Ken!

Thank you very much!

 

anything