Hide empty locations

This topic contains 11 replies, has 3 voices, and was last updated by  anders 6 years, 7 months ago.

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket
  • Author
    Posts
  • #395623

    anders
    Full Member
    Post count: 121

    Hi,

    Could you please point me in a direction on how to hide links to empty locations (only show links to cities that has upcoming events to display).
    I´m building a national eventdirectory where I expect to see a great number of cities from which events are registered. However many of these (especially smaller cities) will only be relevant for shorter periods (when there are upcoming events).
    I´m using the “Popular locations” -widget right now but that doesn’t achieve this

    Thanks!

    #395641

    Paolo
    Site Admin
    Post count: 31206

    I’m sorry, but currently there is no way to achieve this without a customization.

    #395757

    anders
    Full Member
    Post count: 121

    Ok,

    Would you say that it requires a big customization?
    Could you perhaps point me to a snippet or something similar so I know where to begin?

    …another option for me here for me would be if I could have all cities “hidden” in a select list (instead of displaying all at once, taking up lots of space)
    So I tried the [gd_location_tab_switcher] but once I´m using multiple cities I need to activate multiple regions also which makes this shortcode display two select lists (regions + cities) instead which isn’t a good option for us. Any way around that?
    It would be really great if all cities could be in one selectlist independent of region

    Thanks!

    #395770

    Paolo
    Site Admin
    Post count: 31206

    I don’t think this is something you can solve with a simple snippet, but I asked to the developers to let us know if they agree.

    You’ll probably need to rewrite the widget queries completely.

    Thanks

    #395773

    Stiofan O’Connor
    Site Admin
    Post count: 22956

    Just an observation before i look into this, would you not be better instead of removing it and breaking a link on google, rather just show a message like ” No events in your location yet, why not add one CLICK HERE”

    Stiofan

    #395789

    anders
    Full Member
    Post count: 121

    Thank you for your quick replies!

    Stiofan, I see your point with having a message shown instead.
    My concern here is mostly the large space all these city links would take up and especially since a majority of them would not lead to any events displayed.
    The main focus of the site is events but there will be another section where the businesses that publish events will be listed separately so I don´t think there will ever be a link broken for locations on google as the business will remain there even if there are no events at the time.
    Does it make sense?

    Thanks!

    #395925

    Stiofan O’Connor
    Site Admin
    Post count: 22956

    Now i am confused even more 🙂
    If you have busineses that will be listed in those cities anyway then i am not sure what the problem is?

    Stiofan

    #395936

    anders
    Full Member
    Post count: 121

    Well, the site is really about the events.
    So, preferably we should be able to filter out and only display locations where there upcoming events.
    We will encourage businesses behind the events to register companyinfo also (taking advantage of GD link to business -feature) and there will be at separate business directory section of the site.
    But the focus will be events.

    Thanks!

    #395967

    Stiofan O’Connor
    Site Admin
    Post count: 22956

    If you have businesses in location x then you need location x to show.
    I still think a message if not events found is the best way, you can have a message as long as u want, saying ” no events found, be the first to add one, import from facebook” etc…

    Hiding locations with no events is far more complicated.

    Stiofan

    #395981

    anders
    Full Member
    Post count: 121

    Ok, I was hoping I could somehow add a “where clause” to the query that triggers the locations widget.
    …as an alternative, is there any way to let the gd_location_tab_switcher -shortcode work as a single selectbox where all cities are gathered (without the regions selectlist), even if “Enable Multi Regions” is selected?
    (I still need for users to able to publish from different cities)

    Thanks!

    #396047

    Stiofan O’Connor
    Site Admin
    Post count: 22956

    You could probably achieve that with just CSS, just wrap it in a custom div and then apply to there only.

    Stiofan

    #396214

    anders
    Full Member
    Post count: 121

    You´re right, that should solve this 😉
    Thank you for the advice on this!

Viewing 12 posts - 1 through 12 (of 12 total)

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket