default userpic

Page list with only pages tagged the same

Vote 0 Votes

Hi. I need help figuring out how to only get the pages tagged the same listed on the choosen page. Another option is only listing the pages within the same folder but I haven´t been able to figure that out either.

I have pages tagged @"tag" so that I can display only the same tagged pages (not entries) when choosing a certain page.

I have searched how to do this all day and still haven´t found a way to do this. I have found a lot of different types of doing it if I specify the tag but then it will not work for me.

If I click on the page.php tagged @fun I need the other pages that are tagged the same to be listed on that page in the sidebar.

Could anybody help me in the right direction with some examples or so as how to do this?

Thanks in advance.

Carina

Reported on Movable Type 4.2

6 Replies

| Add a Reply
  • Hi Toni and thanks.

    I did not get that working from the link but I got a lead as to how to get that working.

    This is what I ended up with. I created a new widget, Conditonal page listing and then added this into it:






    In each widget I added a list of of pages I wanted to be listed. I could ahve done this more automatic but the pages listed need to be in a certain order that cannot be sorted by MT.

  • (The code will not show, someone please assist in how to getting it showin on the forum)
    
    

    I did not get that working from the link but I got a lead as to how to get that working.

    This is what I ended up with. I created a new widget, Conditonal page listing and then added this into it:






    In each widget I added a list of of pages I wanted to be listed. I could ahve done this more automatic but the pages listed need to be in a certain order that cannot be sorted by MT.

  • Actually, Carina, what I think you need is a sort of "related pages" chunk of code, something that pulls all pages that share one or more of the tags as the current page. If that is correct, please see [this][1], in the Wiki, a template-tag recipe. It works for entries _and_ pages. What this does is it pulls all entries/pages with the same tags _except the current page_. You can then order the list any way you like, by title, author, date or whatever.

    [1]: http://wiki.movabletype.org/Related_Entries

  • Carina, put 4 or more spaces before each line of your code and it shows. Like so:








  • ">




  • Related Pages


  • Hi Guatam.

    Thanks for your reply. I had already checked out the Related Entries but could not figure out how to sort the way it should be presented. It is not in any alphabetical or so order, it is by own specifics. Perhaps there is a way to add some sort of number that will not be shown so that the order will be as requested.

    Do you know of any way to do that?

    Thanks also on how to add code to the forum.

  • Add a Reply

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

    Forum Groups

    1249 4096

    Last Topic: neophyte (newbie) by Mike on Mar 13, 2010

    61 187

    Last Topic: MT5 documentation by Gautam Patel on Mar 9, 2010

    1001 3200

    Last Topic: Parse Atom XML with PHP by benthomas on Mar 12, 2010

    478 1958

    Last Topic: Back To The 'Upgrading Database' Dilemma by Perry Simon on Mar 13, 2010

    102 357

    Last Topic: Saving an entry...what is happening by jdbeast00 on Mar 12, 2010

    19 69

    Last Topic: Custom main index page by Richard on Feb 7, 2010

    43 171

    Last Topic: by MG on Feb 20, 2010

    11 22

    Last Topic: Monthly Calendars Help Needed by joe leblanc on Jan 19, 2010

    91 326

    Last Topic: SpamLookup Keyword Filter 2.1 not work by b.n09 on Nov 17, 2009

    54 199

    Last Topic: Publishing error in MT 5 by mikemontesa on Feb 17, 2010

    code.sixapart.com

    129 448

    Last Topic: Action Stream for Google Buzz by jack lail on Feb 16, 2010