I’m after a bit of advice on the best method to use for some of our database publishing.
We have a ‘Course’ content type which in turn can have a number of ‘Publications’ associated with it.
At present I have a sys_Table control in my ‘Course’ content type which then uses a lookup to pull in the ‘Publications’ into a drop down, and the content id of this publication is stored and in turn published out to a database.
Would I be better implementing this as a slot which could then be populated with the necessary ‘Publications’?
If so, how would I go about getting the value of all the content id’s of the items in the slot?
You have to iterate over the items in the slot. Normally you use #foreach for this. If you post your template code, I might be able to point you in the right direction.
I’m doing something wrong along the lines somewhere.
In my bindings I’m trying to loop over the items returned by getSlotContents() so that they can be published to a child table.