Microsoft Content Management Server - menu

This is Interesting: Free IT Magazines  
Home > Archive > Microsoft Content Management Server > October 2004 > menu





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author menu
vero

2004-10-02, 9:00 pm

Hi. I'm using the McmsWebControlLibrary
(McmsDhtmlGlobalNavigationControl) to Add a drop down
menu like the woodgrove site. The problem is, I see my
items in the menu but it isn't a hyperlink. The first 5
aren't accessible (no hyperlink) and then it's ok. The
code behind is the same for all thougt. I now it's vague
but can anyone help?


Here's what I changed in the McmsWebControlLibrary

public void PrintSubChannels(Channel objStartChannel,
HtmlTextWriter writer)
{
if (objStartChannel.AllChildren.Count>0)
{
foreach(Channel objSubChannel in
objStartChannel.Channels)
{
writer.Write("<tr><td class=\"nonselectedMenuChannel\"><a
href=\"" + objSubChannel.Url + "\"><span
nowrap=\"nowrap\" class=\"MenuItemBox\">" +
HttpUtility.HtmlEncode(objSubChannel.DisplayName)
+ "</span></a></td></tr>");
}
foreach (Posting objPosting in objStartChannel.Postings)
{
writer.Write("<tr><td class=\"nonselectedMenuChannel\"><a
href=\"" + objPosting.Url + "\"><span nowrap=\"nowrap\"
class=\"MenuItemBox\">" + HttpUtility.HtmlEncode
(objPosting.DisplayName) + "</span></a></td></tr>");
}
}
}
Stefan [MSFT]

2004-10-02, 9:00 pm

Hi Vero,

did you check the generated html code?
This will show you if the anchor tags are correctly created.

Cheers,
Stefan.

--
This posting is provided "AS IS" with no warranties, and confers no rights.

MCMS FAQ:
http://download.microsoft.com/downl...6a/MCMS+2002+-+(complete)+FAQ.htm
MCMS Blog: http://blogs.msdn.com/stefan_gossner/category/4983.aspx
MCMS Sample Code:
http://www.gotdotnet.com/community/...t+S
erver

MCMS Whitepapers and other docs:
http://blogs.msdn.com/stefan_gossne...2/07/41859.aspx
--------------------------------


"vero" <anonymous@discussions.microsoft.com> wrote in message
news:1c1f01c4a72e$19356380$a401280a@phx.gbl...
> Hi. I'm using the McmsWebControlLibrary
> (McmsDhtmlGlobalNavigationControl) to Add a drop down
> menu like the woodgrove site. The problem is, I see my
> items in the menu but it isn't a hyperlink. The first 5
> aren't accessible (no hyperlink) and then it's ok. The
> code behind is the same for all thougt. I now it's vague
> but can anyone help?
>
>
> Here's what I changed in the McmsWebControlLibrary
>
> public void PrintSubChannels(Channel objStartChannel,
> HtmlTextWriter writer)
> {
> if (objStartChannel.AllChildren.Count>0)
> {
> foreach(Channel objSubChannel in
> objStartChannel.Channels)
> {
> writer.Write("<tr><td class=\"nonselectedMenuChannel\"><a
> href=\"" + objSubChannel.Url + "\"><span
> nowrap=\"nowrap\" class=\"MenuItemBox\">" +
> HttpUtility.HtmlEncode(objSubChannel.DisplayName)
> + "</span></a></td></tr>");
> }
> foreach (Posting objPosting in objStartChannel.Postings)
> {
> writer.Write("<tr><td class=\"nonselectedMenuChannel\"><a
> href=\"" + objPosting.Url + "\"><span nowrap=\"nowrap\"
> class=\"MenuItemBox\">" + HttpUtility.HtmlEncode
> (objPosting.DisplayName) + "</span></a></td></tr>");
> }
> }
> }



vero

2004-10-02, 9:00 pm

Yes, I did. They're alright. They're all the same.


>-----Original Message-----
>Hi Vero,
>
>did you check the generated html code?
>This will show you if the anchor tags are correctly

created.
>
>Cheers,
>Stefan.
>
>--
>This posting is provided "AS IS" with no warranties, and

confers no rights.
>
>MCMS FAQ:
>http://download.microsoft.com/download/4/2/5/4250f79a-

c3a1-4003-9272-2404e92bb76a/MCMS+2002+-+(complete)+FAQ.htm
>MCMS Blog:

http://blogs.msdn.com/stefan_gossner/category/4983.aspx
>MCMS Sample Code:
>http://www.gotdotnet.com/community/...ples/Default.as

px? ProductDropDownList=Content+Management+S
erver
>MCMS Whitepapers and other docs:
>http://blogs.msdn.com/stefan_gossne...ve/2003/12/07/4

1859.aspx
>--------------------------------
>
>
>"vero" <anonymous@discussions.microsoft.com> wrote in

message
>news:1c1f01c4a72e$19356380$a401280a@phx.gbl...
vague[vbcol=seagreen]
class=\"nonselectedMenuChannel\"><a[vbcol=seagreen]
objStartChannel.Postings)[vbcol=seagreen]
class=\"nonselectedMenuChannel\"><a[vbcol=seagreen]
>
>
>.
>

Angus Logan [MVP]

2004-10-02, 9:00 pm

Hi Vero,

Can you post the rendered HTML file as an attachment?

Also have you tried it accessing it from another machine?

Cheers
--
________________________________________


Angus Logan (MCAD/MCDBA/MCP/MVP for MCMS)
Product Specialist
Microsoft Application Solutions
Data#3 Limited
E angus_logan@data3.com.au
BLOG www.anguslogan.com
________________________________________


"vero" <anonymous@discussions.microsoft.com> wrote in message
news:21ba01c4a7b4$df116eb0$a401280a@phx.gbl...[vbcol=seagreen]
> Yes, I did. They're alright. They're all the same.
>
>
> created.
> confers no rights.
> c3a1-4003-9272-2404e92bb76a/MCMS+2002+-+(complete)+FAQ.htm
> http://blogs.msdn.com/stefan_gossner/category/4983.aspx
> px? ProductDropDownList=Content+Management+S
erver
> 1859.aspx
> message
> vague
> class=\"nonselectedMenuChannel\"><a
> objStartChannel.Postings)
> class=\"nonselectedMenuChannel\"><a


vero

2004-10-02, 9:00 pm

I haven't tried from an other machine cuz I'm devlopping=20
on my machine and not a server. Here's the html :

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0=20
Transitional//EN" >
<HTML>
<HEAD>
<title>Home</title>
=09
<meta name=3D"GENERATOR" Content=3D"Microsoft=20
Visual Studio 7.0">
<meta name=3D"CODE_LANGUAGE" Content=3D"C#">
<meta name=3D"vs_defaultClientScript"=20
content=3D"JavaScript">
<meta name=3D"vs_targetSchema"=20
content=3D"http://schemas.microsoft.com/intellisense/ie5">
<meta name=3D"ROBOTS"=20
content=3D"FOLLOW,INDEX">
<base href=3D"http://localhost/drim/Templates/Home.aspx?
NRMODE=3DPublished&NRORIGINALURL=3D%2fdrim&NRNODEGUID=3D%
7bB1474230-C258-49D6-B277-ADE6BC4806C5%
7d&NRCACHEHINT=3DModifyLoggedIn">

=09
</HEAD>
<body MS_POSITIONING=3D"GridLayout">
<!-- Begin Head Tags -->
=09
<LINK href=3D"../Style/drim.css" type=3D"text/css"=20
rel=3D"stylesheet">
<script language=3D"javascript">
var killMenu
function changeMenu(nSpanNumber, nDivPos){
for (i=3D0;i<arrHiddenMenus.length;i++){
arrHiddenMenus[i].style.left=3D-200
}
arrHiddenMenus[nSpanNumber].style.left =3D=20
nDivPos
clearTimeout(killMenu)
killMenu =3D window.setTimeout("deleteMenu
()", 1500); =09
}

function deleteMenu(){
for(i=3D0;i<arrHiddenMenus.length;i++){
arrHiddenMenus[i].style.left=3D-200
}
}
</script>
<table cellSpacing=3D"0" cellPadding=3D"0">
<tr height=3D"50">
<td rowspan=3D"2" align=3D"left"=20
valign=3D"bottom" style=3D"WIDTH: 199px">
<a=20
href=3D"http://www.intranet/"><IMG=20
src=3D"../images/bandeau_drim_gauche.jpg"=20
border=3D"0"></a></td>
<td align=3D"right"><IMG=20
src=3D"../images/bandeauDRIM.jpg"></td>
</tr>
<tr bgColor=3D"#053299">
<td vAlign=3D"top" colSpan=3D"2">
<table border=3D"0" cellpadding=3D"0"=20
cellspacing=3D"0"><tr><td>&nbsp;</td></tr></table><div=20
nowrap=3D"nowrap" style=3D"position:absolute; left:220; =20
top:60; width:56;" id=3D"menu0" class=3D"MenuItem"=20
onMouseOver=3D"changeMenu(0, 220)";><a=20
href=3D'/Drim/Acceuil/' name=3D"menu0"><span nowrap=3D"nowrap"=20
class=3D"nonselectedTopChannel"> |=20
Acceuil</span></a>&nbsp;</div> =20
=20
//this one doesn't work
<div nowrap=3D"nowrap" style=3D"position:absolute; left:-
200; top:82;" id=3D"hiddenmenu0"><table border=3D"0"=20
cellpadding=3D"3" cellspacing=3D"0"><tr><td=20
class=3D"nonselectedMenuChannel"><a=20
href=3D"/Drim/Acceuil/Exemple.htm"><span nowrap=3D"nowrap"=20
class=3D"MenuItemBox">Exemple</span></a></td></tr></table></
div> =20
=20
<div nowrap=3D"nowrap" style=3D"position:absolute;=20
left:291; top:60; width:80;" id=3D"menu1" class=3D"MenuItem"=20
onMouseOver=3D"changeMenu(1, 291)";><a=20
href=3D'/Drim/Directions/' name=3D"menu1"><span=20
nowrap=3D"nowrap" class=3D"nonselectedTopChannel"> |=20
Directions</span></a>&nbsp;</div> =20
=20
<div nowrap=3D"nowrap" style=3D"position:absolute; left:-
200; top:82;" id=3D"hiddenmenu1"><table border=3D"0"=20
cellpadding=3D"3" cellspacing=3D"0"></table></div> =20
=20
<div nowrap=3D"nowrap" style=3D"position:absolute;=20
left:386; top:60; width:48;" id=3D"menu2" class=3D"MenuItem"=20
onMouseOver=3D"changeMenu(2, 386)";><a href=3D'/Drim/Outils/'=20
name=3D"menu2"><span nowrap=3D"nowrap"=20
class=3D"nonselectedTopChannel"> |=20
Outils</span></a>&nbsp;</div> =20
=20
<div nowrap=3D"nowrap" style=3D"position:absolute; left:-
200; top:82;" id=3D"hiddenmenu2"><table border=3D"0"=20
cellpadding=3D"3" cellspacing=3D"0">
//this one doesn't work=20
<tr><td class=3D"nonselectedMenuChannel"><a=20
href=3D"/Drim/Outils/test/"><span nowrap=3D"nowrap"=20
class=3D"MenuItemBox">test</span></a></td></tr>
//this one works
<tr><td class=3D"nonselectedMenuChannel"><a=20
href=3D"/Drim/Outils/FormAjoutNews.htm"><span=20
nowrap=3D"nowrap" class=3D"MenuItemBox">Formulaire d'ajout=20
nouvelles</span></a></td></tr>
//this one works
<tr><td class=3D"nonselectedMenuChannel"><a=20
href=3D"/Drim/Outils/FormAjoutFete.htm"><span=20
nowrap=3D"nowrap" class=3D"MenuItemBox">Formulaire d'ajout=20
d'anniversaires</span></a></td></tr>
//this one works
<tr><td class=3D"nonselectedMenuChannel"><a=20
href=3D"/Drim/Outils/FormAjoutAgenda.htm"><span=20
nowrap=3D"nowrap" class=3D"MenuItemBox">Formulaire d'ajout=20
à l'agenda</span></a></td></tr></table></div> =20
=20
<div nowrap=3D"nowrap" style=3D"position:absolute;=20
left:449; top:60; width:64;" id=3D"menu3" class=3D"MenuItem"=20
onMouseOver=3D"changeMenu(3, 449)";><a=20
href=3D'/Drim/R=E9unions/' name=3D"menu3"><span nowrap=3D"nowrap"=20
class=3D"nonselectedTopChannel"> |=20
Réunions</span></a>&nbsp;</div> =20
=20
<div nowrap=3D"nowrap" style=3D"position:absolute; left:-
200; top:82;" id=3D"hiddenmenu3"><table border=3D"0"=20
cellpadding=3D"3" cellspacing=3D"0"></table></div> =20
=20
<div nowrap=3D"nowrap" style=3D"position:absolute;=20
left:528; top:60; width:112;" id=3D"menu4"=20
class=3D"MenuItem" onMouseOver=3D"changeMenu(4, 528)";><a=20
href=3D'/Drim/Administration/' name=3D"menu4"><span=20
nowrap=3D"nowrap" class=3D"nonselectedTopChannel"> |=20
Administration</span></a>&nbsp;</div> =20
=20
<div nowrap=3D"nowrap" style=3D"position:absolute; left:-
200; top:82;" id=3D"hiddenmenu4"><table border=3D"0"=20
cellpadding=3D"3" cellspacing=3D"0">
//this doesn't works
<tr><td class=3D"nonselectedMenuChannel"><a=20
href=3D"/Drim/Administration/test.htm"><span=20
nowrap=3D"nowrap"=20
class=3D"MenuItemBox">test</span></a></td></tr></table></div
> =20

=20
<div nowrap=3D"nowrap" style=3D"position:absolute;=20
left:655; top:60; width:104;" id=3D"menu5"=20
class=3D"MenuItem" onMouseOver=3D"changeMenu(5, 655)";><a=20
href=3D'/Drim/Communication/' name=3D"menu5"><span=20
nowrap=3D"nowrap" class=3D"nonselectedTopChannel"> |=20
Communication</span></a>&nbsp;</div> =20
=20
<div nowrap=3D"nowrap" style=3D"position:absolute; left:-
200; top:82;" id=3D"hiddenmenu5"><table border=3D"0"=20
cellpadding=3D"3" cellspacing=3D"0"></table></div> =20
=20
<div nowrap=3D"nowrap" style=3D"position:absolute;=20
left:774; top:60; width:72;" id=3D"menu6" class=3D"MenuItem"=20
onMouseOver=3D"changeMenu(6, 774)";><a=20
href=3D'/Drim/T=E9l=E9phone/' name=3D"menu6"><span=20
nowrap=3D"nowrap" class=3D"nonselectedTopChannel"> |=20
Téléphone</span></a>&nbsp;</div> =20
=20
<div nowrap=3D"nowrap" style=3D"position:absolute; left:-
200; top:82;" id=3D"hiddenmenu6"><table border=3D"0"=20
cellpadding=3D"3" cellspacing=3D"0"></table></div> =20
=20
<div nowrap=3D"nowrap" style=3D"position:absolute;=20
left:861; top:60; width:48;" id=3D"menu7" class=3D"MenuItem"=20
onMouseOver=3D"changeMenu(7, 861)";><a href=3D'/Drim/Social/'=20
name=3D"menu7"><span nowrap=3D"nowrap"=20
class=3D"nonselectedTopChannel"> |=20
Social</span></a>&nbsp;</div> =20
=20
<div nowrap=3D"nowrap" style=3D"position:absolute; left:-
200; top:82;" id=3D"hiddenmenu7"><table border=3D"0"=20
cellpadding=3D"3" cellspacing=3D"0"></table></div> =20
=20
<div nowrap=3D"nowrap" style=3D"position:absolute;=20
left:924; top:60; width:64;" id=3D"menu8" class=3D"MenuItem"=20
onMouseOver=3D"changeMenu(8, 924)";><a=20
href=3D'/Drim/Courriel/' name=3D"menu8"><span nowrap=3D"nowrap"=20
class=3D"nonselectedTopChannel"> |=20
Courriel</span></a>&nbsp;</div> =20
=20
<div nowrap=3D"nowrap" style=3D"position:absolute; left:-
200; top:82;" id=3D"hiddenmenu8"><table border=3D"0"=20
cellpadding=3D"3" cellspacing=3D"0"></table></div> =20
=20
<div nowrap=3D"nowrap" style=3D"position:absolute;=20
left:1003; top:60; width:112;" id=3D"menu9"=20
class=3D"MenuItem" onMouseOver=3D"changeMenu(9, 1003)";><a=20
href=3D'/Drim/Portail-Qu=E9bec/' name=3D"menu9"><span=20
nowrap=3D"nowrap" class=3D"nonselectedTopChannel"> | Portail-
Québec</span></a>&nbsp;</div> =20
=20
<div nowrap=3D"nowrap" style=3D"position:absolute; left:-
200; top:82;" id=3D"hiddenmenu9"><table border=3D"0"=20
cellpadding=3D"3" cellspacing=3D"0"></table></div> =20
=20
=20
<script> arrHiddenMenus =3D new Array
(hiddenmenu0,hiddenmenu1,hiddenmenu2,hid
denmenu3,hiddenmen
u4,hiddenmenu5,hiddenmenu6,hiddenmenu7,h
iddenmenu8,hiddenm
enu9)</script> =20
=20
=09
</td>
</tr>
</table>

<!-- End Head Tags -->

>-----Original Message-----
>Hi Vero,
>
> Can you post the rendered HTML file as an attachment?
>
> Also have you tried it accessing it from another=20

machine?
>
>Cheers
>--=20
> ________________________________________

>
>Angus Logan (MCAD/MCDBA/MCP/MVP for MCMS)
>Product Specialist
>Microsoft Application Solutions
>Data#3 Limited
>E angus_logan@data3.com.au
>BLOG www.anguslogan.com
> ________________________________________

>
>"vero" <anonymous@discussions.microsoft.com> wrote in=20

message
>news:21ba01c4a7b4$df116eb0$a401280a@phx.gbl...
and[vbcol=seagreen]
+FAQ.htm[vbcol=seagreen]
>http://www.gotdotnet.com/community/...ples/Default.as
>http://blogs.msdn.com/stefan_gossne...ve/2003/12/07/4
down[vbcol=seagreen]
my[vbcol=seagreen]
first 5[vbcol=seagreen]
The[vbcol=seagreen]
objStartChannel,[vbcol=seagreen]
nowrap=3D\"nowrap\"[vbcol=seagreen]
>
>
>.
>

Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com