8 years ago
3
Topic

I have started recently on Seblod and I am having difficulties understanding relationships.

I have created 3 forms : gigs, band and venues.

Gigs has :

Date

Price

Tickets

Band Name (article related)

Venue name (article related)

Band has :

Band Name

Music Type 

Band Photo

Etc

Venue has :

Venue Name 

Address (google API)

Latitude

Longitude

I have followed the tutorial about search by radius for gigs but it isn't working, has anyone got any ideas where I am going wrong?

I get the impression that it may be due to the fact that I have done a search for gigs when actually the latitude and longitude is belong to the venue.

Thanks in advance.

Johann

Get a VIP membership
4229 Posts
Kadministrator
8 years ago
0
Level 1

Hi,

yes, you can't search on data that isn't there, you need to do a search on venues, then show related gigs inside each search result as child list (see tutorial)

8 years ago
1
Level 1

hi,

I would like to be able to search for gigs by date (between 2 dates) and search radius

Ideally the search results would display as follow :

Date (ascending), Band Name, Venue Name, Distance

Would these plugins allow me to do this? As I understand it, the venue would remain the parent and gig would be the child and that would mean my search would be sorted by venues name instead of gig date.

Thanks in advance

Johann

4229 Posts
Kadministrator
8 years ago
0
Level 2

You can either search on gigs by date (and display venues for each gig as child list based on raius search values from parent search as described in the manual linke above) or reverse, search venues by radius and then display available gigs for each venue as child list.

Get a VIP membership