4 users online. Create an account or sign in to join them.Users
SBL reverse filtering
This is an open discussion with 7 replies, filed under General.
Search
I asked the same question about the SSM a while back, and someone wrote this code. I can't remember who it was now, but it has saved my bacon many times. It shouldn't be too hard to customise and drop in the fields folder of the select box link.
Couldn't you simply add the image ID(s) to the parameter pool (by using a datasource's param output), then filter the album DS accordingly?
Couldn't you simply add the image ID(s) to the parameter pool (by using a datasource's param output), then filter the album DS accordingly?
Well, I tried to and returns an empty result (false). That's why I asked if it even is possible.
@designermonkey
Thanks! Well, it would have been to sweet to simply drop it in a field and work. It has errors :(
Well, I tried to and returns an empty result (false). That's why I asked if it even is possible.
I promise that it works. :-)
You should debug what's going wrong. Test if the filter works with hardcoded IDs. Does the DS return anything? If this is the case, it must work with params as well!
It has errors
Yes, it will, it's for the Subsection Manager, needs customising for the Select Box Link.
@michael
I promise that it works. :-)
Oops. You're right :) I hardcoded an ID and it's indeed working. There must have been an error somewhere.
@designermonkey
Yes, it will, it's for the Subsection Manager, needs customising for the Select Box Link.
This approach is brilliant for my current use case. I fixed the field and it now outputs the required IDs.
@both
The use case actually involves a 3rd section as well. Thanks, @michael, for assuring me that reverse SBL filtering works (pheeew!), but in this more complex case, the field mirrorsectionassociates does a great job (I need one Chained DS less).
Create an account or sign in to comment.
I'm having issues with SBL ...
Given Albums and Images sections and a SBL in Albums pointing to Images, is there a way to fetch all Albums that contain a given image (using Datasource UI)?