Before I submit this extension I wanted to check that I am not adding something that could have done much easier some other way and save myself a bit of embaressment.
I wanted to link a weblog entry to gallery entries so that I could display these images next to the weblog entry. I was already using categories for something else, so the way I have done this is to link using the url_title. I created a custom field in the gallery where I can put a list of url_titles, then use this extension to add a condition to the gallery select:
{exp:gallery:entries gallery=“seeds” condition=“custom_field_one=’{url_title}’” ...}
or to allow gallery entries to related to multiple weblog entries
{exp:gallery:entries gallery=“seeds” condition=“INSTR( custom_field_one,’{url_title}’ ) > 0” ...}
If this sounds like a useful extension, I’ll post it up.
Phoebe
