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

stupid question from stupid man

Discussion of Ken True's web site templates

Moderator: saratogaWX

Post Reply
kapo
Posts: 246
Joined: Thu 03 Jan 2013 1:59 pm
Weather Station: Davis VP2
Operating System: Windows 10
Location: Vihtavuori, Laukaa, Finland

stupid question from stupid man

Post by kapo »

Hi
Is it possible to get flyout menu like something that? And if it is, how it is could to be done? :oops: :oops: :oops:
Again I try to do things too difficult for me... but so what.... :oops: :oops:

regards:
User avatar
Werk_AG
Posts: 198
Joined: Sun 13 Jan 2013 8:04 pm
Weather Station: WeatherDuino 4Pro
Operating System: Windows 7
Location: Cercal CDV - Portugal
Contact:

Re: stupid question from stupid man

Post by Werk_AG »

Yes, it is.
Edit flyout-menu.xml. On top of file you will see some examples
You can have a maximum of 4 sublevels
Image
The freedom to choose the weather instruments you want
kapo
Posts: 246
Joined: Thu 03 Jan 2013 1:59 pm
Weather Station: Davis VP2
Operating System: Windows 10
Location: Vihtavuori, Laukaa, Finland

Re: stupid question from stupid man

Post by kapo »

Werk_AG wrote:Yes, it is.
Edit flyout-menu.xml. On top of file you will see some examples
You can have a maximum of 4 sublevels
Yes there is... But in some reason, it gives error althougt I try so carefully I can to do as those advices above teach....
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: stupid question from stupid man

Post by gluepack »

Without seeing your code, it is difficult to tell what you are doing wrong.

However, with regard to creating multiple levels of items.....

It isn't necessarily easy, if you have never done it before but it is quite simplistic and doesn't require a lot of thought.

Remember that all tags have to be ended (in theory) so, if you have a <fred> tag you will inevitably have a </fred> tag somewhere to end it. However, some people are really smart and realise that you can end the tag within itself. So, you can say <fred />, which starts and ends the fred tag. The most common one you will see is the break tag which is almost always written as <br />.

If you weren't aware of that, it may be that which is throwing you.

Each menu item is represented by the <item> tag but a) it may have some qualifiers on it (i.e. <item ....... >) and b) it may be terminated within itself (i.e. <item ....... />) if, typically, it is in the last level of a flyout.

That is what is happening here.

So, a single menu item (with no other levels) is probably written as
<item ....... />

whereas multiple levels (in this case two) will be written as
<item ....... >
<item ...... />
<item ...... />
</item>
so, within the top level (that ends with the </item> ) there is another level consisting of two items that terminate themselves.

If you wanted to go down to a third level, it could be written as
<item ....... >
<item ...... >
<item ...... />
<item ...... />
</item>
<item ...... />
</item>

The first item has two items within it and the first one of those has two items in it.

My example demonstrates how difficult it is to fathom out what is going on sometimes. Obviously it would be better if the code was indented somehow to emulate the menu structure but, as I am too lazy to figure out how to do it on this forum, so are many coders when it comes to writing their code ;)

The captions and links are pretty straight forward so I hope that helps but, if that isn't your problem then, as I said, it would be necessary to see the code to determine what is wrong.
Image

PWS links: WundergroundIVARNAPR3CWOP/APRSE(W)2048PWSWeatherZLATINABGAwekas10631Twitter@Zlatina_weather
Station type: PCE-FWS 20…Webcam link: View south to edge of Provadisko plateau
Post Reply