Sidebar - Archives

Vote 0 Votes

Hello,

I am new to MT and using 4.3 with minimum HTML knowledge. I am having a degree of difficulty regarding my existing website - specifically I am trying to create an archive link on our "news" category page as a sidebar - but my links seem to just go on the news page and nothing appears in the sidebar. Any suggestions? Any help would BE GREATLY APPRECIATED!

Site: www.longworth.com - I can only seem to upload current page, but not able to archive old articles.

Many thanks,

Gail

Reported on Movable Type 4.3

5 Replies

| Add a Reply
  • Hi Gail,

    You would have to tell me a little bit more about your project.

    What is "News"?

    Is it a folder, or a category?

    If it is a folder, how many pages are added to it?

    If it is a category, how many entries are assigned to it?

    Last, but not least, what is the link you are talking about that you are saying it goes to your news page, but not on its sidebar?

    To give you a tip, you could assign the tag "@sidebar" to an item that you want to push to the sidebar (entry or page) and then on the content area where you don't want that item to appear you would pass to mt:Entries or mt:Pages the parameter:
    tag="NOT @sidebar"

    While on a sidebar widget you would pass the parameter:
    tag="@sidebar"

    Kind Regards,
    Mihai Bocsaru

    ----------------------------------
    Daily Movable Type Consultant

    Web Development
    Movable Type Consulting
    Six Apart Partner

    http://www.pro-it-service.com/
    ----------------------------------

    Movable Type Demo
    http://www.movabletypedemo.org/
    ----------------------------------

    Open Melody Demo
    http://www.openmelodydemo.org/

  • Hi Mihai,

    "News" is a category with 8 entries - on the website "news" is listed under "About" Page - and my goal is to be able to click on "About" on the homepage - then click on "Recent News" sidebar and I don't know if I need to change something in the entry listing under archive templates?
    "Recent News" has my most recent entry published. Works fine, but my goal is to create entries/archives on the "Recent News" page/side bar: Check this page out: http://www.longworth.com/news/

    All the best,

    Gail

  • Hi Gail,

    Why don't you use under your "About" page sidebar the following:

    <mt:Entries category="News">
    ...
    </mt:Entries>

    Kind Regards,
    Mihai Bocsaru

    ----------------------------------
    Daily Movable Type Consultant

    Web Development
    Movable Type Consulting
    Six Apart Partner

    http://www.pro-it-service.com/
    ----------------------------------

    Movable Type Demo
    http://www.movabletypedemo.org/
    ----------------------------------

    Open Melody Demo
    http://www.openmelodydemo.org/

  • I only want it on the "Recent News" page not all all - should I make my edits under Design / Templates or Widgets?

    Thank you,

    Gail

  • If you want it only on that page, which is a category page, you would first declare the category context using this logic:

    <mt:if name="category_archive">

    Then, you would compare the current category with the category where you want to display this widget:

    <mt:if tag="CategoryLabel" eq="News">

    And after that you would put the mt:Entries loop.

    After that you would close the two if loops mentioned above.

    This could be created either as a template module or a widget. Maybe easier as a module, as that could be seen right from the templates panel.

Add a Reply

If you need to share template code, replace all the "<" signs with "&lt;" or use this utility.

Forum Groups

1774 6167

Last Topic: Template modules by Zielun on Feb 16, 2012

86 302

Last Topic: website entries by masoud on Oct 26, 2011

1434 5088

Last Topic: Maintenance announcement by Nick on Feb 17, 2012

695 2912

Last Topic: Insert Image / File Fails by Russ Miller on Feb 10, 2012

84 291

Last Topic: How to have some other characters in entry basename automatically written by Afshin Haghighatnia on Dec 22, 2011

174 740

Last Topic: Captcha images rendering slowly by ScottM on Feb 12, 2012

190 568

Last Topic: Analytics Reporting by michael webster on Feb 5, 2012

48 210

Last Topic: An idea and also a request by Afshin Haghighatnia on Jun 29, 2011

64 246

Last Topic: jQuery in MT 5.1 still at 1.4 - why? by perlmonkey on May 25, 2011

code.sixapart.com

137 478

Last Topic: Getting a thumbnail with xpath by Peter on Mar 13, 2011

222 720

Last Topic: Custom Field for Asset Not Appearing by android on Feb 9, 2012