Forum
Collections inside Events
Trying to get collections (list of venues) to work inside of Events, when I output my page I get the following for the "venue" ID:
Array
(
[0] => 2
)
Which as Robert Ketter pointed out is "Outside of content your just getting the content of the reference table, basically skip-template in this instance..." Which makes sense to me but being inside of events and not having a slug to match up to the collection puzzles me.
I'm not sure how to retrieve the HTML back from the collection based on what is in the array.
Any help would be appreciated.
I don't understand - where are you getting that?
Here is the related code I have in my events.php(via a template). The array above was what appears in the showall for the ID of "venue".
I have tried adding "scope-parent" equals true, false and removing it all together. Same effect. Also, It's displaying the proper location in the admin.
Relationships are primarily between Collections, but then I'm not sure why it shouldn't work with other types of content. I'll take a look into it and see what I can find out, but it may be one for a future update.
Thanks, that would be great.
If not, then to get the same functionality now, would I have to use a shared region and a data select?
Would that work inside of Events app?
You shouldn't use a shared region for anything but the smallest chunks of content. A data select might do the job.