RC46: Support for 'pagecolor' is gone
RC46: Support for 'pagecolor' is gone
After updating to RC46, the 'pagecolor' attribute set in style does not work anymore.
cheers
====================================
Merlin Consulting
Martin Schaible
Bahnhofstrasse 27
CH-8702 Zollikon
====================================
====================================
Merlin Consulting
Martin Schaible
Bahnhofstrasse 27
CH-8702 Zollikon
====================================
No It hasn't gone it's been fixed, or at least I think it has.
The problem is this, with the menu the way it was before RC46, links like:
url=/index.php;
url=/scombo/index.php;
Would both highlight the same and this was clearly wrong.
The demo at http://www.rockmill.co.uk/MilonicTest/ is failing because the link in the data file is url=sub1.htm; What it should be is url=/MilonicTest/v5r46/sub1.htm;
If you add more than one url=sub1.htm; to the menu_data.js at the above site they would all show up in pre RC46 - In my opinion this is wrong.
There is something about Pagecolor that I just cannot seem to satisfy everybody with. There is always something that it either doesn't do is does do but shouldn't and, although it should be simple, it is in fact a very complex problem.
I'll have a rethink and see what I can do.
Cheers
Andy
The problem is this, with the menu the way it was before RC46, links like:
url=/index.php;
url=/scombo/index.php;
Would both highlight the same and this was clearly wrong.
The demo at http://www.rockmill.co.uk/MilonicTest/ is failing because the link in the data file is url=sub1.htm; What it should be is url=/MilonicTest/v5r46/sub1.htm;
If you add more than one url=sub1.htm; to the menu_data.js at the above site they would all show up in pre RC46 - In my opinion this is wrong.
There is something about Pagecolor that I just cannot seem to satisfy everybody with. There is always something that it either doesn't do is does do but shouldn't and, although it should be simple, it is in fact a very complex problem.
I'll have a rethink and see what I can do.
Cheers
Andy
Hi Andy,
My URL is always like this: url=index.cfm/0004016000000000000;
Only the URL parameter will change. This worked fine in previous builds.
Maybe the new build does not check this search engine friendly url or skips the stuff after the filename completely
My URL is always like this: url=index.cfm/0004016000000000000;
Only the URL parameter will change. This worked fine in previous builds.
Maybe the new build does not check this search engine friendly url or skips the stuff after the filename completely
cheers
====================================
Merlin Consulting
Martin Schaible
Bahnhofstrasse 27
CH-8702 Zollikon
====================================
====================================
Merlin Consulting
Martin Schaible
Bahnhofstrasse 27
CH-8702 Zollikon
====================================
installed RC 47, still one oddity
I just bought DHTML menu last week and it worked fine except for
Pagecolor. Since I was new, I got everything else working before looking for an explanation.
I see on this forum that there was a problem with Pagecolor in 46 that was improved in release 47.
So I installed 47 and it works, MOSTLY.
But I have one problem, a menu item that is highlighted when it
should NOT be:
http://www.robelle.com/welcome-menu.html
notice that the Home Page link when you pull down the first menu
is correctly highlighted as the current page. But I also see the
"Robelle" at the top left of the menu highlighted when I display this page in
IE 6.0
the menu definition in menu_data.js is as follows:
with(milonic=new menuname("Robelle Menu")){ // based on sample menu
style=menuStyle;
screenposition="center"; // not align="center";
top=93;
alwaysvisible=1;
orientation="horizontal";
aI("text=Robelle;showmenu=About;");
aI("text=What's New;showmenu=WhatsNew;url=http://www.robelle.com/products/whatsnew.html;");
aI("text=Support;showmenu=Support;url=/support/");
aI("text=Just Ask Us;showmenu=AdminSales;");
aI("text=Popular Apps;showmenu=Partners;url=http://www.robelle.com/partners/");
aI("text=Resources;showmenu=Resources;");
aI("text=Find Info;showmenu=Search;");
}
I used to have a URL= clause with the aI def for the first menu
item, but I removed it. But it is still highlighted as if it were
the current page.
Any thoughts?
Pagecolor. Since I was new, I got everything else working before looking for an explanation.
I see on this forum that there was a problem with Pagecolor in 46 that was improved in release 47.
So I installed 47 and it works, MOSTLY.
But I have one problem, a menu item that is highlighted when it
should NOT be:
http://www.robelle.com/welcome-menu.html
notice that the Home Page link when you pull down the first menu
is correctly highlighted as the current page. But I also see the
"Robelle" at the top left of the menu highlighted when I display this page in
IE 6.0
the menu definition in menu_data.js is as follows:
with(milonic=new menuname("Robelle Menu")){ // based on sample menu
style=menuStyle;
screenposition="center"; // not align="center";
top=93;
alwaysvisible=1;
orientation="horizontal";
aI("text=Robelle;showmenu=About;");
aI("text=What's New;showmenu=WhatsNew;url=http://www.robelle.com/products/whatsnew.html;");
aI("text=Support;showmenu=Support;url=/support/");
aI("text=Just Ask Us;showmenu=AdminSales;");
aI("text=Popular Apps;showmenu=Partners;url=http://www.robelle.com/partners/");
aI("text=Resources;showmenu=Resources;");
aI("text=Find Info;showmenu=Search;");
}
I used to have a URL= clause with the aI def for the first menu
item, but I removed it. But it is still highlighted as if it were
the current page.
Any thoughts?
- Bob Green (see also http://www.news.ai !)
The reason the Robelle item is highliighted is because it is showing you a path to the menu item.
You can switch this off of declaring another style for your top bar menu.
This style must not include a value for pagecolor or pagebgcolor.
I note that you have 2 styles in your data file but both are named menuStyle.
You need to name them uniquely.
i.e.
Hope this helps
Andy
You can switch this off of declaring another style for your top bar menu.
This style must not include a value for pagecolor or pagebgcolor.
I note that you have 2 styles in your data file but both are named menuStyle.
You need to name them uniquely.
i.e.
Code: Select all
with(horizStyle=new mm_style()){. . . . .
and
with(menuStyle=new mm_style()){. . . . .
Andy
Andy,
Thanks. I did what you suggested and it worked. The Robelle menu item
is no longer highlighted.
But I am still a bit confused about why it was highlighted. The menu item didn't have a
URL attached to it, so what is the highlighting telling the user? You say
"The reason the Robelle item is highliighted is because it is showing you a path to the menu item." What is the path to a menu item without a URL?
In some of my horizontal menu items I used both a submenu and a url.
Nothing in your examples said this would work, or not, but it does seem to
work in practice. Nice feature. Allows me ot have a web page link that explains the submenu choices in more detail.
It would be nice to have these horizontal menu items highlighted by PageColor in my final menu design when you happen to be on the URL that matches the URL= of the menu item def. But that won't happen with
the two styles solution.
Thanks in advance.
Thanks. I did what you suggested and it worked. The Robelle menu item
is no longer highlighted.
But I am still a bit confused about why it was highlighted. The menu item didn't have a
URL attached to it, so what is the highlighting telling the user? You say
"The reason the Robelle item is highliighted is because it is showing you a path to the menu item." What is the path to a menu item without a URL?
In some of my horizontal menu items I used both a submenu and a url.
Nothing in your examples said this would work, or not, but it does seem to
work in practice. Nice feature. Allows me ot have a web page link that explains the submenu choices in more detail.
It would be nice to have these horizontal menu items highlighted by PageColor in my final menu design when you happen to be on the URL that matches the URL= of the menu item def. But that won't happen with
the two styles solution.
Thanks in advance.
- Bob Green (see also http://www.news.ai !)
I believe what he means is that the feature is like a "bread crumbs" feature, where all menu selections, throughout the enire hierarchy, up to the one responsible for the currently viewed page, are highlighted; not just the single menu item that was clicked to get you where you are now. That way, the user could see, for example, which main menu item was selcted, and which submenus, etc., etc., to get to where they are now in the navigation system. By using a different style (with no pagecolor and pagebgcolor) for the main menu, you are effectively preventing the first level of the hierarchy from following that behavior... which is just fine if that's how you want it!bgreen wrote:Andy,You say "The reason the Robelle item is highliighted is because it is showing you a path to the menu item." What is the path to a menu item without a URL?
Kevin
Thanks for the explanation. I get it now. "Path" means the menu path to the highlighted item. The default with one style is to highlight each node in the path. Good.
- Bob Green (see also http://www.news.ai !)