Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeUsing DNN Platf...Using DNN Platf...Skins, Themes, ...Skins, Themes, ...Skinning help - design with no solpart menu but need admin menu when logged in??Skinning help - design with no solpart menu but need admin menu when logged in??
Previous
 
Next
New Post
1/3/2007 5:21 PM
 

You can create a page called "Admin Menu", make it visible only to administrators, and apply your Solpart Menu skin to it.

DotNetNuke Modules from Snapsis.com
 
New Post
1/3/2007 7:56 PM
 

s2k,
Maybe this is not the answere to your question, but there are possibilities to do stuff like this without hardcoding the menu.
I use housemenu for it and I don't have to hardcode anything (and the admin link apears in the menu).
Set housemenu to show both icon and the pagename.
Create an image that contains the up state on top and the down state at the bottom of the image
like this:

up
down


Use this image as the page icon
Lets say this image is 64 px high.
Make the <LI> containing the image 32px high and set overflow to hidden
On a:hover, set the image's margin-top to -32px and the down button will be visible.
The advantage is that both the image and the text in the link are rendered and google will see the text link.

Example CSS:

#mainmenu li
{
position:relative;
width:267px;
height:32px;
overflow:hidden;
list-style-type:none;
}

#mainmenu a img

{
position:relative;
display:block;
border-style:none;
}

#mainmenu a:hover img
{
position:absolute;
left:0px;
margin-top:-32px;
}

You can see an example here, or here the menu on the left(I'm still working on it, it's not finished...)
 
New Post
1/3/2007 9:18 PM
 

If you put this code in your skin, it should do what you want:

<script runat="server">
Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
    If DotNetNuke.Security.PortalSecurity.IsInRole(PortalSettings.AdministratorRoleName) Then
            dnnMenu.Visible=true
    Else
            dnnMenu.Visible=false
    End If
End Sub
</script>

Just copy and paste this on top of the html in either the html, or the .ascx version of the skin, and leave the solpart menu in.
This code will make it only show for users in the administrators role.


DotNetNuke Modules from Snapsis.com
 
New Post
1/3/2007 10:11 PM
 

I've been doing skinning for three +  years and that is the first time I've seen that code..

That was a gem.  Boy do I wish I had that a couple of years ago!

Nina Meiers


Nina Meiers My Little Website
If it's on DNN, I fix, build, deploy, support,skin, host, design, consult, implement, integrate and done since 2003.
Who am I? Just a city chic, having a crack at organic berry farming.. and creating awesome websites.
 
New Post
1/4/2007 3:12 AM
 
Hi All,

I also use this technique which is a bit easier to remember:

<div id="footerpane" runat="server" visible="false">[MENU]</div>

This will just show the menu when you are logged in as host / admin.

Thanks,

Lee

Lee Sykes - DNN Creative Magazine - 600+ Video Tutorials, Articles, Interviews - July Issue 58 out now!
DNN Creative Magazine for DotNetNuke

Twitter: www.twitter.com/DNNCreative

Lee Sykes's Facebook Profile
 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Skins, Themes, ...Skins, Themes, ...Skinning help - design with no solpart menu but need admin menu when logged in??Skinning help - design with no solpart menu but need admin menu when logged in??


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out