Register   Login
     
  Latest Posts  
RE: 4.9.0 and 5.0.0 with Simple gallery
by smcculloch on 1/08/2009 1:46 PM
RE: 4.9.0 and 5.0.0 with Simple gallery
by insomnia on 1/08/2009 1:45 PM
RE: 4.9.0 and 5.0.0 with Simple gallery
by insomnia on 1/08/2009 1:44 PM
RE: 4.9.0 and 5.0.0 with Simple gallery
by insomnia on 1/08/2009 1:42 PM
RE: Toolbar links at the top of the articles module
by wassis on 1/08/2009 12:59 PM
RE: Site hanging when posting comments
by smcculloch on 1/08/2009 12:10 PM
RE: Site hanging when posting comments
by smcculloch on 1/08/2009 12:00 PM
RE: Site hanging when posting comments
by glenwin on 1/08/2009 11:21 AM
RE: Layout Settings: Listing View
by smcculloch on 1/08/2009 10:36 AM
RE: Lightbox implementation
by smcculloch on 1/08/2009 10:35 AM
  Forums  
Subject: Easy Hack to remove Header...
Prev Next
You are not authorized to post a reply.

Author Messages
Justin CooperUser is Offline
Registered Users
Nuke Active Member
Nuke Active Member
Posts:26

8/30/2005 1:38 PM  

I've seen a few folks concerned about removing the header that looks like this:

Current Articles | Categories | Search | Syndication

I was able to remove this by creating a new css class called Hidden in the modules.css file that is in the main News Articles folder.

Then within that class all you need is { display: none; }

Then within the ucHeader.ascx file you need to seperate the code that displays the standard header, and the admin functions (such as create article, and the such) into two seperate paragraphs.  The first paragraph will reference the hidden class (class=hidden), and the second paragraph with the admin functions will be the same as the original (class=normal).

By doing this you will lose the functions to Syndicate (which I have links elsewhere), search (main DNN search is fine with me), and the Categories link (which I already have elsewhere).

I am not nearly done with my template, but you can get an idea of it by clicking this link: www.mygadgetbag.com.

(I haven't done any DNN Template coding, it is kind of daunting, so I'm working my way up to it...)

Costa Rica BarneyUser is Offline
Gold Membership
Nuke Addict
Nuke Addict
Posts:58

9/04/2005 7:04 PM  
Yes, I would like to remove the header, but I am a newbie so I would like to get some more details before screwing it all up, thanks
 
"I was able to remove this by creating a new css class called Hidden in the modules.css file that is in the main News Articles folder.

Then within that class all you need is { display: none; }"

Alright, I added at the bottom of the "module.css" file the following:

.articleHidden { display: none; }

Then things become a little more tricky for me:

"Then within the ucHeader.ascx file you need to seperate the code that displays the standard header, and the admin functions (such as create article, and the such) into two seperate paragraphs.  The first paragraph will reference the hidden class (class=hidden), and the second paragraph with the admin functions will be the same as the original (class=normal)."

Take for example the "Current Articles", what exactly do I need to do with that one?

<asp:HyperLink ID="lnkCurrentNews" Runat="server" CssClass="CommandButton" EnableViewState="False">Current Articles</asp:HyperLink>

Should I change it to CssClass="hidden"  ?

Thanks for your help, much appreciated, and I think this display feature would be awesome in the next version

You are not authorized to post a reply.
Forums > Modules > News Articles > Easy Hack to remove Header...



ActiveForums 3.7