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.

Menu Dilemma

November 02, 2012 8:48pm

Subscribe [3]
  • #1 / Nov 02, 2012 8:48pm

    davib

    50 posts

    HI all,

    Im looking for some guidance/assistance to try and get a menu problem solved.

    The site is set up so when an article is published it gets automatically added to the menu items available across the site…it started like this.

    {exp:channel:entries channel="student" dynamic="no" disable="{disable_option}" orderby="entry_id" sort="asc"}
                            <li><a href="http://{title_permalink=">{menu_title}</a></li>
                            {/exp:channel:entries}

    This worked well until there came a need to be able to reorder the items, so I did this.

    {exp:low_reorder:entries set="2"}
                                <li><a href="http://{title_permalink=">{menu_title}</a></li>
                                 {/exp:low_reorder:entries}

    This worked well for re-ordering but then items were not automatically added to the menu.
    So then, and perhaps Im showing my beginner status, I did this

    {exp:channel:entries channel="student" dynamic="no" disable="{disable_option}" orderby="entry_id" sort="asc"}
                            {exp:low_reorder:entries set="2"}
                                <li><a href="http://{title_permalink=">{menu_title}</a></li>
                                 {/exp:low_reorder:entries}
                            {/exp:channel:entries}

    and THAT broke it completely.

    Would anyone care to suggest how I can get both functions working, I’m happy to buy add-ons if required, I’m just really stumped?

    Thanks
    Brett

  • #2 / Nov 03, 2012 9:15pm

    boldyellow

    89 posts

    If I read your post correctly, I have a sorta similar situation with a school site. 

    When they create a new class entry, they want it to appear in list of all classes that’s on the home page.  But certain classes need to appear higher up in the list.  So I have a Playa field for the home page that is related to the Classes channel. 

    After a new class has been added, they jump over to the home page to drag the class name from the available panel to the active panel.  They can place it in whatever position they want and they can reorder the list at any time.

    Depending on the workflow you require, it could be one solution.

  • #3 / Nov 05, 2012 8:46am

    John St-Amand

    865 posts

    So to be clear - you have Low Reorder already?  That should be all you need to do what you’re looking to do. You just use the reorder tag pair in place of the entries tag pair - a pure one to one replacement (except that when Reorder is doing the ordering, you remove the orderby and sort params UNLESS you want to override what Low Reorder is doing).

    {exp:low_reorder:entries channel="student" set="2" dynamic="no" disable="{disable_option}"}
         <li><a href="http://{title_permalink=">{menu_title}</a></li>
    {/exp:low_reorder:entries}

    And that should do it, assuming I’ve understood you correctly.  Hope that helps.

  • #4 / Nov 05, 2012 9:51pm

    davib

    50 posts

    John.

    You know you are right. I had low -reorder but it wasn’t adding new items to the menu automatically. Turns out my channel entries tag had not been commented out correctly

    Thanks

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

ExpressionEngine News!

#eecms, #events, #releases