Welcome to the Cumulus Support forum.

Latest Cumulus MX V4 release 4.4.2 (build 4085) - 12 March 2025

Latest Cumulus MX V3 release 3.28.6 (build 3283) - 21 March 2024

Legacy Cumulus 1 release 1.9.4 (build 1099) - 28 November 2014
(a patch is available for 1.9.4 build 1099 that extends the date range of drop-down menus to 2030)

Download the Software (Cumulus MX / Cumulus 1 and other related items) from the Wiki

If you are posting a new Topic about an error or if you need help PLEASE read this first viewtopic.php?p=164080#p164080

site map

Discussion of Ken True's web site templates

Moderator: saratogaWX

Post Reply
User avatar
gluepack
Posts: 460
Joined: Tue 22 Jan 2013 9:20 pm
Weather Station: PCE-FWS 20
Operating System: Win 7 Pro
Location: Zlatina, Bulgaria

site map

Post by gluepack »

Aaarggh! My brain is scrambled. A little knowledge is a dangerous thing.

If I have the fly-out menu, it looks like the web site map is produced by just "print"ing $FlyoutMenuText. Can someone explain what that is? Is it a site variable only existing while the site is active and generated by the flyout php file independently of the actual menu?

Using F12 on wxsitemap it appears to be eminently modifiable html and, although I can do it dynamically, I obviously don't have a clue where to apply those mods as any attempt to do that has corrupted the actual flyout menu.

All I really want to do, at least initially, is have the items in the map structure look like (i.e. as buttons) my actual flyout menu. Simplest thing in my mind is add a class to the line items and establish appropriate associated parameters in my css file.
Image

PWS links: WundergroundIVARNAPR3CWOP/APRSE(W)2048PWSWeatherZLATINABGAwekas10631Twitter@Zlatina_weather
Station type: PCE-FWS 20…Webcam link: View south to edge of Provadisko plateau
User avatar
saratogaWX
Posts: 1238
Joined: Wed 06 May 2009 5:02 am
Weather Station: Davis Vantage Pro Plus
Operating System: Windows 10 Professional
Location: Saratoga, CA, USA
Contact:

Re: site map

Post by saratogaWX »

The wxsitemap.php page uses just a bit of slight-of-hand to do the listing.

The flyout-menu.php program is called by top.php

Code: Select all

if (isset($SITE['flyoutmenu']) and $SITE['flyoutmenu'] or
	isset($_REQUEST['menu']) and strtolower($_REQUEST['menu']) == 'test' ) {
  $SITE['flyoutmenu'] = true;
  $PrintFlyoutMenu = false;
  $genDiv =false;
  global $FlyoutCSS, $FlyoutMenuText;
  include_once('flyout-menu.php');
  print $FlyoutCSS;
}
so as you see, two globals are defined (and filled in by flyout-menu.php parsing the flyout-menu.xml)

The $FlyoutCSS is printed by top.php, the $FlyoutMenuText is printed by menubar.php directly.

The wxsitemap.php just prints $FlyoutMenuText inside the <div id="main-copy"> ... </div> area and so it shows as an ordinary list.

You can add styling to the <ul>, <li> and <a> entries by adding CSS to the page (no changes needed to flyout-menu.php) with stuff like:

Code: Select all

<style type="text/css">
#main-copy ul {

}
#main-copy li {


}
#main-copy a {


}
</style>
Hope this helps.

Best regards,
Ken
User avatar
gluepack
Posts: 460
Joined: Tue 22 Jan 2013 9:20 pm
Weather Station: PCE-FWS 20
Operating System: Win 7 Pro
Location: Zlatina, Bulgaria

Re: site map

Post by gluepack »

Yes, thanks, it helps enormously and glad to see that you survived the ordeal (the heart attack that is, not the answering of my question).
Image

PWS links: WundergroundIVARNAPR3CWOP/APRSE(W)2048PWSWeatherZLATINABGAwekas10631Twitter@Zlatina_weather
Station type: PCE-FWS 20…Webcam link: View south to edge of Provadisko plateau
User avatar
gluepack
Posts: 460
Joined: Tue 22 Jan 2013 9:20 pm
Weather Station: PCE-FWS 20
Operating System: Win 7 Pro
Location: Zlatina, Bulgaria

Re: site map

Post by gluepack »

Thanks again.

I may have gone a bit ott with it which, after all, is only a website map. I think this one is the only one I have ever looked at in my life before, lol.

http://www.jerbils.info/saratoga/wxsitemap.php

When I get a chance, I'll clean it up a bit.
Image

PWS links: WundergroundIVARNAPR3CWOP/APRSE(W)2048PWSWeatherZLATINABGAwekas10631Twitter@Zlatina_weather
Station type: PCE-FWS 20…Webcam link: View south to edge of Provadisko plateau
BCJKiwi
Posts: 1259
Joined: Mon 09 Jul 2012 8:40 pm
Weather Station: Davis VP2 Cabled
Operating System: Windows 10 Pro
Location: Auckland, New Zealand
Contact:

Re: site map

Post by BCJKiwi »

Well it surely is different from the norm!! ;)
Post Reply