Hey guys,
I am creating a website for a Tanzania based safari company. We would like to publish some example safari trips and itineraries on our website. At the moment I have a main trip page, where all our trips are shown (stored in the Trips-Database) via a repeater. Once clicked on a trip, one will get to the dynamic page, where the content of the clicked trip is displayed (cost, pictures, included services and the main point: daily descriptions) → that is already working!
My issue is: For those individual days of this specific trip (should contain a heading, description, picture, three different hotel options, included meals etc.) I wanted to use a repeater too, thus creating a database for this one trip, and each item being one day. The repeater would hopefully give me the option to adapt the number of days shown to the different lengths of the trips.
This database of the days should be something like a sub-database for the trip items in the main trip-database.
Of course, when I am on the dynamic page of another trip, the content for the days should be different.
So my question to you is: Is this possible and if so, how? Or is there a better way of doing this?
Right now, there is not much code written, as I have just used the standard wix features. But of course, I would be happy to get some code examples, if necessary!
Thanks for your help!
Tim
Basically what I am trying to say is, the source database for the individual days should change according to the selected trip. Probably that´s somehow possible with code or maybe there is another solution I am not aware of?
Hi Oscar,
thanks for your reply and your help! I had a look already into the references, but I am not quite sure, whether that will solve my issue.
For better understanding, I will attach some pictures:
The image above shows the main trips database collection, which contains the content for the main trip overview page (see picture below).
Once clicked on one of the trips, you will get to the dynamic trip page. On this dynamic trip page, there should be another repeater displaying each day, which changes its content and length/number of days based on the selected trip from the main page, as each day will differ from trip to trip. That page with the second repeater can be seen here (content on the repeater is not connected yet, just for illustration):
The way I thought, how it could work was that I create a new collection for each trip, where all the content for the days is stored as separate items:
So for the 14 days trip, the repeater should connect to the 14 days database, for the 10 days trip to the 10 days database and so on…
But if I click on the setting of the repeater I can only choose one dataset, which would be permanent and not dynamic!
Therefore I thought I could instead connect the second (dynamic) repeater to the main trip database, field “Days Test” and let the repeater cycle through the elements listed there.
How can that be done?
I would appreciate every help a lot! Thanks and all the best,
Tim