Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

We've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

Data Model Questions /

Moderators: martimiz, Sean, Ed, biapar, Willr, Ingo, swaiba

Help with GridField Relationships


Go to End


1066 Views

Avatar
Strandoo

Community Member, 5 Posts

25 February 2013 at 12:45am

I'm new to SS (and this forum) and I'm trying to move an existing site into SS 3. Everything is going well, but I've got one section with more complex data that I'm sure could be done with a GridField but can't get my head around how to structure it. It's basically a listing of chauffeured Tours, sorted by City (and Cities grouped by Country). That's simple enough, but there are two types of Tour, Sightseeing and Transfers which I'd like to be displayed under each City heading in separate tables. Each Tour has up to 4 prices, and the Table Heading for those prices varies depending on the city.

This is what I'm trying to duplicate (the existing site): http://www.autoventure.com/shorex/. Use either select menu or the map to view a city/country.

If anyone has suggestions on how to structure the relationships to get the separate tour tables, I should be able to take it from there. Thanks.