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.

Need help with how to build navigation

August 20, 2007 12:21am

Subscribe [2]
  • #1 / Aug 20, 2007 12:21am

    ndicken

    10 posts

    I’m a new EE user - I’ll try to make this quick 😊  I’ve been struggling with this for hours and need to get this done tonight.

    Let’s say I have a weblog for a list of projects.  Each has a project title, description and role.  On the page I want to have a persistent navigation that uses all project titles as the links.  On the page as well in another spot I want to somehow show that project’s detail.

    Sorry if this sounds extraordinarily basic, but I’m still grappling with understanding how the {exp:weblog} query pulls data in…  From what I’ve found out if you’re on http://www.mysite.com/projects/ and I do a {exp:weblog:entries} then I get ALL of those.  But if I go to http://www.mysite.com/projects/sample_project_1 then that same {exp:weblog:entries} query is now only gonna pull in ONLY that sample_project_1.

    How can I have the full nav on the page (all weblog entries w/title used in <a> tag) but on the same page show just the detail of the current entry?  I’m more needing help with the EE code, not HTML layout, etc…

    THANKS!!
    nate

  • #2 / Aug 20, 2007 12:52am

    ndicken

    10 posts

    OK, i found the “related_categories_mode” parameter which somewhat seems like it can do what i’d like to do:

    When enabled, this parameter alters the behavior of the {exp:weblog:entries} tag, causing it to ignore the entry ID or URL title found in the URL, and instead show a list of entries that are in the same category as the entry specified in the URL. This lets you create a list of entries that are “related” to the primary one specified by the URL.

    I think the following describes better what I’m curious how to do…

    How do I show ALL entries from a weblog within a single entry detail page? (on http://www.mysite.com/template_group/template/entry page)

  • #3 / Aug 20, 2007 12:56am

    PXLated

    1800 posts

    In the weblog:entries tag used for the list, add the… dynamic=“off” ...parameter. That tells EE to not pay attention to what’s in the URL.

  • #4 / Aug 20, 2007 12:59am

    ndicken

    10 posts

    WONDERFUL!!!!!!  thank you thank you THANK YOU!  It seems so easy but you seriously just saved me like another two hours.

  • #5 / Aug 20, 2007 1:03am

    PXLated

    1800 posts

    It’s probably the most overlooked parameter. Between Lisa and myself we copy/paste the answer many times a week 😉

  • #6 / Aug 20, 2007 1:11am

    ndicken

    10 posts

    that’s good to know 😉  thanks again!

  • #7 / Aug 20, 2007 1:19am

    PXLated

    1800 posts

    No problem…good luck with your site.

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

ExpressionEngine News!

#eecms, #events, #releases