DotNetNuke Powered!
          
John Mitchell's (mostly DotNetNuke) Blog - Put Admin only content in your DotNetNuke Skin
 Monday, December 04, 2006

If you are looking for a way to have conditional content shown in your skin without having to use a module, you can do it with some inline code.

<% If DotNetNuke.Security.PortalSecurity.IsInRoles(PortalSettings.AdministratorRoleName) %>
      Admin only content here
<% End If %>

12/4/2006 1:46:50 PM (Central Standard Time, UTC-06:00)  #    Comments [1]
2/26/2007 7:58:25 AM (Central Standard Time, UTC-06:00)
Excellent tip!

This was exactly what I was looking for.

Thanks a lot
Patrick
Name
E-mail
Home page

Comment (HTML not allowed)  

Enter the code shown (prevents robots):