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

    1773 6162

    Last Topic: Excluding categories from blog by kholechek on Feb 9, 2012

    86 302

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

    1429 5077

    Last Topic: What apocalypse hit this community in the middle of 2011? by 75th on Feb 10, 2012

    695 2910

    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

    173 737

    Last Topic: About the MT version stated in HTML source by Alex E. Schneider on Feb 7, 2012

    190 567

    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