dynamic archive link

Home Forums Calendar Products Events Calendar PRO dynamic archive link

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #1612105
    zora
    Participant

    hi there

    on my site i have the option to show the events either as list or as photo view. to access the archive (past events), i created a custom menu with/list?tribe_event_display=past
    this shows the past events as lists. i could also choose to display them as photos with just
    /?tribe_event_display=past

    i look for a solution which displays the archive in the view the user has currently selected. so when on photo, the archive is displayed as photos. when on list, the archive is shown as list.

    how would i best do that?

    thanks for help.
    zora

    #1614097
    Andras
    Keymaster

    Grüezi Zora,

    Thanks for getting in touch!

    I believe setting it up like this would do the trick:

    https://dl.dropbox.com/s/06r3g1thfkugfar/shot_180905_163524.jpg

    Let me know if that works.

    Cheers,
    Andras

    #1614879
    zora
    Participant

    Hi Andras

    Thank you for your proposal. The parameter “/?tribe_event_display=past” displays the archive just as photo view. This I figured out already.

    Since the custom menu link for the archive is static, I need a method that modifies the link DEPENDING on which view I currently am. Something like checking the URL string for “list” and then render the static link to “/list?tribe_event_display=past” otherwise to just “/?tribe_event_display=past”.

    Do you get my point?

    Thanks for further assistance.
    Zora.

    #1614940
    Andras
    Keymaster

    Hi Zora,

    I hear you loud and clear.

    If you set up the url as I showed you in the previous post it will do what you need.

    Here’s a screencast I just did for a visual experience. 🙂

    Let me know…

    A.

    #1614985
    zora
    Participant

    Hi Andras

    Thank you for your wonderful screencast. I figured out my mistake: I still had the EventsCalendar slug added to my menu link, followed by “/?tribe_event_display=past”. That’s why the switch didn’t work.
    I’m all good now.
    Thank you again for your support and have a great day.

    Uf widerluege
    Zora

    #1615086
    zora
    Participant

    Sorry, you can close this issue.

    #1615953
    Andras
    Keymaster

    Hi Zora,

    I’m so happy my screencast helped and your issue is resolved.

    If you need anything else related to this topic or another please create a new ticket and we’ll be happy to help.

    Cheers,
    Andras

    PS: We’d be grateful if you would give us feedback on your satisfaction with support. Just click on one of the classy looking emojis below. 🙂 If you can spare a few words, that’s even better. Thanks!

    PS2: If you like our plugins, and you didn’t yet do so 🙂 we would also be happy to receive a review in the wordpress.org repository. Much appreciated!
    https://wordpress.org/support/view/plugin-reviews/the-events-calendar/
    https://wordpress.org/support/view/plugin-reviews/event-tickets/

     

Viewing 7 posts - 1 through 7 (of 7 total)
  • The topic ‘dynamic archive link’ is closed to new replies.