Got more questions? Find advice on: SQL | XML | Regular Expressions | Windows
Welcome to AspAdvice Sign in | Join | Help

Re: Archives for a specific section only?

  •  09-18-2008, 11:53 AM

    Re: Archives for a specific section only?

    You can create a different template for only the news section -- and that template would be the only one that contained archives, but the archive list (by months) would include every article/page on your site not just the news section.

    So, no -- this is not possible.

    A possible kludgy workaround would be to manually set your non-news article post dates to 2007. Then wrap your archives variable in a < div >. in this example the < div > would have an id=thearchives 

    Hey -- I said this was kludgy :-)

    Then in your CSS you could hide the article list from 2007 like this:

    #thearchives p.archivemonths + p.archivemonths { display:none; }

    That bit of CSS would hide the second archivemonths paragraph after the #thearchive div. Of course, in 2009, this would hide the 2008 archives and you'd have to adjust the CSS again to hide the "third" p.archivemonths paragraph.  Kludgy.

     

     


    Sincerely,

    Carl
    -----
    vine type - content management with standards in mind - vinetype.com
    -----
    Filed under: , ,
View Complete Thread