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.

Dynamic Side Menu

June 22, 2011 11:29am

Subscribe [3]
  • #1 / Jun 22, 2011 11:29am

    dodgson

    120 posts

    Hi there, I have created a menu that just shows all posts that exist within a specific channel. Now my client wants the menu to “NOT” show the link to the post that they are currently viewing.

    EXAMPLE (If you are on the about page they don’t want the about link to show in the list)

    about
    team
    history

    Thanks in advance.

  • #2 / Jun 22, 2011 11:59am

    Matt:P

    277 posts

    Hi

    Would you mind showing us the code you’re using to render the menu?

    Matt

  • #3 / Jun 22, 2011 12:09pm

    Mark Bowen

    12637 posts

    If you are using url_titles then you could do something akin to this :

    {exp:channel:entries
        channel="default_site"
        url_title="not {segment_3}"
        dynamic="no"
        sort="asc"
        disable="member_data|pagination|categories"}
    
    {title}
    
    {/exp:channel:entries}

    or if you’re using entry_ids :

    {exp:channel:entries
        channel="default_site"
        entry_id="not {segment_3}"
        dynamic="no"
        sort="asc"
        disable="member_data|pagination|categories"}
    
    {title}
    
    {/exp:channel:entries}

    As Matt has mentioned though it would help to see the code you’re using as the above code will only work if you’re powering your menus in that way.

    Hope that helps a bit.

    Best wishes,

    Mark

  • #4 / Jun 22, 2011 12:22pm

    Matt:P

    277 posts

    Nice Mark, that certainly helps my understanding 😊

  • #5 / Jun 22, 2011 12:34pm

    dodgson

    120 posts

    Hi guys, You’re absolutely right. Here is the code currently being used. Thanks for taking a look.

    {exp:channel:entries channel="about" orderby="screen_name" sort="dsc" dynamic="no"}
    <li><a href="http://{title_permalink=">{title}</a></li>
    {/exp:channel:entries}
  • #6 / Jun 22, 2011 12:40pm

    Mark Bowen

    12637 posts

    If you are just using a standard Channel Entries tag to spit out a load of links then doing as I showed above should get what you need here.

    Best wishes,

    Mark

  • #7 / Jun 22, 2011 2:51pm

    dodgson

    120 posts

    Thanks Mark, That worked perfectly. Exactly what I was looking for.

    Thanks Again….

  • #8 / Jun 22, 2011 2:52pm

    dodgson

    120 posts

    Sorry. One last question. What does the following mean?

    disable=“member_data|pagination|categories”

  • #9 / Jun 22, 2011 2:56pm

    Mark Bowen

    12637 posts

    Thanks Mark, That worked perfectly. Exactly what I was looking for.

    Thanks Again….

    No problem. Glad that got it sorted for you.

    Sorry. One last question. What does the following mean?

    disable=“member_data|pagination|categories”

    Take a look at the disable=”“ parameter in the documentation as it will explain it better than my ramblings 😉

    Best wishes,

    Mark

  • #10 / Jun 22, 2011 3:23pm

    dodgson

    120 posts

    Thanks Mark.

  • #11 / Jun 22, 2011 3:24pm

    Mark Bowen

    12637 posts

    Thanks Mark.

    No problems. Always glad to help.

    Best wishes,

    Mark

  • #12 / Jun 22, 2011 4:02pm

    dodgson

    120 posts

    Hey Mark, I just noticed in your signature that you have created a shopping cart plugin. I just had a client ask for a way to create a paid membership (3 membership types/prices) to their association. They would like to have the payment processing to happen after they have been accepted into the membership. In addition is there a way to track when their next yearly dues would need to be paid?

    I haven’t been able to find anything that does this.

    In addition I have another client that would like to have the ability to create an event and accept payments online for that event. Paypal is fine for them. Would your addon work in this situation?

    talk to you soon
    Mark

  • #13 / Jun 22, 2011 4:14pm

    Mark Bowen

    12637 posts

    Hi Mark,

    The plugin I created is actually just literally a Shopping Cart in that it just deals with providing a cart to store items and spit them out wherever and however you wish on your site.

    It doesn’t handle payments, membership types or anything else of that sort although it does work hand in hand with the Simple Commerce Module should you wish to. It was really made as a nice quick way to store items that a user wants to purchase whilst viewing a site and then allows you to either use PayPal to pay for the items all at once (in conjunction with the Simple Commerce Module) or if you prefer you can create your own form to send off the details however you see fit.

    Best wishes,

    Mark

  • #14 / Jun 22, 2011 4:16pm

    dodgson

    120 posts

    Thanks Mark, I’m It sounds like something I will purchase in the future.

    Take Care
    Mark

  • #15 / Jun 22, 2011 4:28pm

    Mark Bowen

    12637 posts

    Thanks Mark, I’m It sounds like something I will purchase in the future.

    Take Care
    Mark

    No problem. There are versions for both 1.x and 2.x on devot-ee.com if you decide to purchase.

    Best wishes,

    Mark

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

ExpressionEngine News!

#eecms, #events, #releases