Confused!
Permalink
OK, so I need to create a page that will contain the details of a tour (let's say a walking trip to Stonehenge :)). The page will include fields like a title, main image, itinerary, Book now button...you get the picture. All of these fields are brought in (using php/xml) from a third-party website. Let's say the total number of different tours (including our Stonehenge trip) will number 50. I'll need a different page for each tour, and each tour has a different TourID, which will dictate the content. I was thinking here that I could have a page attribute (TourID) that is completed when the new page is created and that is linked in to the code that then brings in the relevant data from the 3rd party website.
My thinking was that
1/ I create custom blocks to do what I need (e.g. one to fetch and display the tour title, one for fetching and displaying the main image etc).
2/ I create a page type (let's say Tour) and populate the page type with the newly created blocks. The page type also has an attribute TourID.
3/ Create the individual tour pages (e.g. for my Stonehenge trip) using the Tour page type. Each time I create new page I assigned a TourID which should then bring in the correct data?
How does this sounds? Is this the sort of approach I should be taking or am I barking completely up the wrong tree?
Having just sat through all of the tutorials for Single pages it looks like they may also do the job. But which is the best approach?
Thanks
P
My thinking was that
1/ I create custom blocks to do what I need (e.g. one to fetch and display the tour title, one for fetching and displaying the main image etc).
2/ I create a page type (let's say Tour) and populate the page type with the newly created blocks. The page type also has an attribute TourID.
3/ Create the individual tour pages (e.g. for my Stonehenge trip) using the Tour page type. Each time I create new page I assigned a TourID which should then bring in the correct data?
How does this sounds? Is this the sort of approach I should be taking or am I barking completely up the wrong tree?
Having just sat through all of the tutorials for Single pages it looks like they may also do the job. But which is the best approach?
Thanks
P