ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

Categories + Title Summary = Problem

May 21, 2008 6:51pm

Subscribe [3]
  • #1 / May 21, 2008 6:51pm

    mountain monkey

    23 posts

    I would like my page to display one entry, followed by a list of linked titles from the same category. I have a list of categories on this page also, and when I choose a different category it lists the Titles from the default category as well as Titles from the newly chosen category. God I hope that’s not too cryptic…anyway, if someone could point me in the right direction as to how I can set my page up so that only related Titles are displayed??? Here’s what I have in my template;

    {exp:weblog:entries weblog="expect" orderby="date" sort="asc" limit="1" show_future_entries="yes"}
              {title}
    {body}
    {/exp:weblog:entries}
    
    {exp:weblog:entries orderby="date" sort="asc" weblog="expect" dynamic="off"} 
    <a href="http://{title_permalink=site/expect}">{title}</a>
    {/exp:weblog:entries} 
    
    {exp:weblog:categories weblog="expect" parent_only="yes"}
    <a href="http://{path=">{category_name}</a>
    {/exp:weblog:categories}

    Any help would be greatly appreciated! :0)
    Thanks,
    Linda

  • #2 / May 21, 2008 7:23pm

    Sue Crocker

    26054 posts

    Linda, how are you calling the page? Are you using

    Use Category URL Titles In Links?

    or

    Category URL Indicator

    See: Global Weblog Preferences

    Do you have a page we could see?

  • #3 / May 21, 2008 9:03pm

    mountain monkey

    23 posts

    Hi Sue, the link from my navbar and from the category link is; http://pamfanjoy.com/index.php/site/expect/C31/

    Ideally, I’d like to be able to feature a specific entry, then list the titles of all the other entries in that category below the featured item. At the moment it’s doing that, however the problem is;

    1. on this page it’s also listing an entry from another category (see the last entry)

    2. and, when I choose another category from the sidebar, it displays my featured test entry but also lists a summary of titles from the previous category.

    Here’s a link to my test page; http://pamfanjoy.com/index.php/site/expect/C31/

    Any help would be great!
    Thanks,
    Linda

  • #4 / May 22, 2008 6:59am

    Sue Crocker

    26054 posts

    Still looking, just wanted to give you a status update.

  • #5 / May 22, 2008 8:07am

    mountain monkey

    23 posts

    Thanks Sue!

  • #6 / May 23, 2008 9:57am

    mountain monkey

    23 posts

    Any luck Sue??? Anybody???

  • #7 / May 23, 2008 12:33pm

    Ingmar

    29245 posts

    Ideally, I’d like to be able to feature a specific entry, then list the titles of all the other entries in that category below the featured item.

    Have you looked into related categories mode?

  • #8 / May 23, 2008 9:53pm

    mountain monkey

    23 posts

    Thanks Ingmar, that helped! Now the unrelated category Title is not being displayed. However, when I click on the category links in the side bar, none of the Titles show up when the page is loaded. They only show up on this page;

    http://pamfanjoy.com/index.php/site/expect/pam_fanjoy_as_child_specialist/

    I turned on the “Use Category URL Titles In Links?”, is that correct? It doesn’t seem to help with this new problem. Any ideas???

    Thanks,
    Linda

  • #9 / May 24, 2008 3:34am

    Ingmar

    29245 posts

    Sorry, you lost me there. So, you are displaying a single entry, and using the related categories mode to display other entries in the same category, right? Can you give me a page where I can see that firsthand?

    What links were you clicking, and what did you expect? What happened instead? Also, I need to see some more relevant code snippets.

  • #10 / May 24, 2008 10:47am

    mountain monkey

    23 posts

    Here’s a link to the page where it’s displaying a single entry, followed by related category Titles…which is what I want it to do;

    http://pamfanjoy.com/index.php/site/expect/pam_fanjoy_as_child_specialist/

    Here is the code I’m using to accomplish this;

    {exp:weblog:entries weblog="expect" orderby="date" sort="asc" limit="1" show_future_entries="yes"}
    {title}
    {body}
    
    
    {/exp:weblog:entries}
    
    {exp:weblog:entries related_categories_mode="on" orderby="date" sort="asc" weblog="expect" dynamic="off"} 
    <a href="http://{title_permalink=site/expect}">{title}</a>
    {/exp:weblog:entries}

    The part that I still can’t get to work is the Weblog Categories Tag. When I click on either of the category links (in the right sidebar) it goes to the correct page, but only displays the single entry…it does not display both the single entry and the related category Titles the way the page above does. Here’s the code I’m using for that;

    {exp:weblog:categories weblog="expect" parent_only="yes"}
    <a href="http://{path="><div id="categoryname">{category_name}</div></a>
    {/exp:weblog:categories}

    I’m just wondering if it’s possible to do this? Is my code wrong???

    Thanks!

  • #11 / May 25, 2008 7:32am

    Ingmar

    29245 posts

    Well, the exp:weblog:categories you showed us seems to work as advertised: It is meant to show (only) your categories in a list. Are you using the same template and tag? You are actually using “dnymic=off” in your “related” tag, so naturally the category in the URL can’t influcence the behavior of that tag.

    Perhaps you want to use {[url="http://expressionengine.com/docs/modules/weblog/conditional_variables.html#cond_if_category_request"]if category_request[/if]} to distinguish here?

    Moved to Howto.

  • #12 / May 25, 2008 11:19am

    mountain monkey

    23 posts

    Ingmar, I think you mis-understood my question. My exp:weblog:categories tag displays the categories in a list as it should…that’s not the problem.

    My problem is that when I click on either of the categories in the list, the page it takes me to ONLY displays the single entry. It doesn’t display the list of related Titles below the single entry. Shouldn’t it also display the list of related Titles just as this page does;

    http://pamfanjoy.com/index.php/site/expect/pam_fanjoy_as_child_specialist/

    This is rather urgent, I’d really appreciated any additional help you can provide. Also, I can’t get your link above to work.

    Thanks,
    Linda

  • #13 / May 25, 2008 1:04pm

    Lisa Wess

    20502 posts

    Linda, can you try removing dynamic=“off” from the tag with related_categories_mode?

  • #14 / May 25, 2008 1:26pm

    Lisa Wess

    20502 posts

    Also, while this question was originally a how-to, since the related category mode doesn’t seem to be working as expected, I’ve moved this down to technical support to help troubleshoot what may be going on.

  • #15 / May 25, 2008 3:33pm

    mountain monkey

    23 posts

    Lisa, thanks for your response. I originally posted my question in the How To section, then realized I was in the wrong place if I wanted Technical Support. I then posted this question in the Technical Support section, but it was moved back to the How To section as you can see from the outcome above.

    Anyway, thanks for your suggestion. I removed the dynamic=“off” but it didn’t work. Here’s what the code looks like now;

    {exp:weblog:entries related_categories_mode="on" orderby="date" sort="asc" weblog="expect"}
    <div id=“title”>{title}</div>
    {/exp:weblog:entries}

    It appears the link that works looks like this; http://pamfanjoy.com/index.php/site/expect/pam_fanjoy_as_child_specialist/

    Whereas the link generated from the category link in the sidebar looks like this;
    http://pamfanjoy.com/index.php/site/expect/category/child_specialist/

    The word “category” has been added to this link…

    Any further suggestions???
    Linda

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases