Hi there guys,
I've been reading through the Job Postings tutorial in the SS book, but I've tied myself in knots, so I thought I would just ask instead, as I am beyond confused now. (This vaguely relates to a previous post, but am starting over as the client changed their mind on the last part of the project anyway!)
OK, I want to created a data object. Let's call it "LinkedPDF"
The basic idea is that from any "service page"* on the website CMS I have a tab called "Related PDFs". (*these pages all use the template and page type "ServicePage")
In this "Related PDFs" tab I will show a ComplexTableField. This will allow users to add links to related PDF files to the web page (plus some notes / text / graphic). The plan is that they can add as many Related PDF items as they want, so no point hard-coding 5 links in the static $db for example. Also, I want to do it this way rather than asking them just to create web links on the page as they want it laid out / formatted in a way that would be too tricky for them to achieve in the CMS.
Anyway, I followed the Job Posting tutorial and got the ComplexTableField working. Thought all was well, and added a few linked case studies for "Service Page A", but then i realised that these case studies now appeared linked to ALL Pages that used the "ServicePage" template / page type! DOH!
So, i kinda know where I've gone wrong... the data objects are linked to the page type and not the actual page i created them from.
It's not practical to create a new "Holder" for each service page - there are too many - so how can I fix this?
Hope I've got all the techie terminology correct re dataObjects, relationships etc...!
All answers on a postcard please - any help much appreciated.