kevinpj
 Nuke Ace Posts:54

 |
11/09/2010 6:26 AM |
|
is it possible to change the skin dynamically?
and one more, i am using ddr menu,is it possible to give includenodes dynamically? |
|
|
|
|
Joseph Craig DNN MVP Posts:11667

 |
11/09/2010 6:41 AM |
|
Yes. Snapsis.com has a "skin switcher" module. If you Google a bit, you may find other approaches. The DDR Menu doesn't process the list dynamically. You may be able to turn nodes on and off with some appropriate javascript or jQuery. How would you see this working? And, it may be possible to do what you need just with page view permissions tied to roles. |
|
Joe Craig, Patapsco Research Group Complete DNN Support |
|
|
kevinpj
 Nuke Ace Posts:54

 |
11/09/2010 7:57 AM |
|
dear craig,it is a paid one. any other method to change the skin dynamically? please give me a solution. |
|
|
|
|
Joseph Craig DNN MVP Posts:11667

 |
11/09/2010 8:37 AM |
|
Nik Kalyani worked on a module he called Skinfigurator. If you Google that name, you'll find some references. As best as I can tell, Nik never finished this. But, you'll find some good -- and hopefully useful -- discussion.
|
|
Joe Craig, Patapsco Research Group Complete DNN Support |
|
|
Mark Allan
 Nuker Posts:16

 |
11/09/2010 10:16 AM |
|
Hi Kevin, you can set IncludeNodes dynamically. If you're using (ddr:MENU ID="MyMenu") then just set MyMenu.IncludeNodes in your code, or for (dnn:NAV ID="MyMenu") add a new item to MyMenu.CustomAttributes. (Angle brackets replaced to avoid code being removed!) |
|
Mark Allan (@MarkXA)
DNN Garden, home of the DDRMenu free DotNetNuke menu module |
|
|
Joseph Craig DNN MVP Posts:11667

 |
|
kevinpj
 Nuke Ace Posts:54

 |
11/09/2010 11:07 PM |
|
Dear Mark,I have added these lines of code in skin.ascx. Where I want to place the code which you have given,that is myMenu.IncludeNodes and myMenu.CustomAttributes?
<dnn:NAV runat="server" id="dnnNAV" CSSControl="mainMenu" ProviderName="DDRMenuNavigationProvider" CSSContainerSub="Main_DNNMenu_ContainerSub" CSSNodeRoot="Main_DNNMenu_NodeRoot" CSSNode="Main_DNNMenu_Node" CSSNodeHover="Main_DNNMenu_NodeHover">
|
|
|
|
|
kevinpj
 Nuke Ace Posts:54

 |
11/10/2010 1:24 PM |
|
Dear Mark, I added the code in the skin.ascx page load.
Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs)
dim cusAttribute As new CustomAttribute
cusAttribute.Name = "IncludeNodes"
cusAttribute.Value = "Home,CENSUS,LOGOUT"
dnnNAV.CustomAttributes.Add(cusAttribute)
End Sub
Its not working.Can you please help me...my projuct got stuck for 3days... |
|
|
|
|
kevinpj
 Nuke Ace Posts:54

 |
11/10/2010 1:25 PM |
|
This is the code in skin.ascx file Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) dim cusAttribute As new CustomAttribute cusAttribute.Name = "IncludeNodes" cusAttribute.Value = "Home,CENSUS,LOGOUT" dnnNAV.CustomAttributes.Add(cusAttribute) End Sub |
|
|
|
|
Joseph Craig DNN MVP Posts:11667

 |
11/10/2010 7:15 PM |
|
Is this a question? Is it failing? I think that the way to do this is to make the code part of an inline script. Something like: < script runat="server" >
Your stuff here
< / script >
(But I'm sure that Mark will chime in with the correct syntax...} |
|
Joe Craig, Patapsco Research Group Complete DNN Support |
|
|
kevinpj
 Nuke Ace Posts:54

 |
11/10/2010 10:39 PM |
|
Dear Craig, I did like this but not working. This is the menu tag in skin.ascx < dnn:NAV runat="server" id="dnnNAV" CSSControl="mainMenu" ProviderName="DDRMenuNavigationProvider" CSSContainerSub="Main_DNNMenu_ContainerSub" CSSNodeRoot="Main_DNNMenu_NodeRoot" CSSNode="Main_DNNMenu_Node" CSSNodeHover="Main_DNNMenu_NodeHover" > < CustomAttributes > < dnn:CustomAttribute Name="IncludeNodes" Value="HOME,MUSIC,VIDEOS,DOWNLOADS,LOGOUT" / > < /CustomAttributes > < /dnn:NAV > |
|
|
|
|
Mark Allan
 Nuker Posts:16

 |
11/11/2010 7:46 AM |
|
Hi Craig, you're doing it right, except that your method needs to be Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load. Without the Handles bit, the method will never be called. |
|
Mark Allan (@MarkXA)
DNN Garden, home of the DDRMenu free DotNetNuke menu module |
|
|
kevinpj
 Nuke Ace Posts:54

 |
11/13/2010 2:26 AM |
|
Dear mark, it works fine. thanks lot.... |
|
|
|
|