Hi Guys, It was late last night when I posted - its now a “fresh” new day…
So I perhaps should have mentioned that the reason I’ve posted this here is I’ve used the ext.gallery_cats.php to link the casestudies blog I’ve got with the gallery.
My understanding was that as I was linking the gallery as a whole as apposed to a singular image from within the selected gallery I could utilise a next/previous scrolling gallery whilst the associated casestudy information from the casestudy blog displayed around it.
If I’m not wholely making sense please PM me. I really need to find a solution to this problem as we had hoped to go live today (friday).
Thanks Patricia
Any chance you could repost this extension? The link is dead. Thanks!
The extensions are pretty easy to pick up, and handy for this sort of thing. I just cobbled a quick one together- here. Basically, open it up- and because I was lazy and didn’t want to deal with settings- set a variable in the file: $alter_field = 32; That 32? It should be the number of a custom field you want populated by the gallery categories- a text field at the outset. We overwrite/populate it via the extension. One other thing you’ll want to tweak is the query: $results = $DB->query(“SELECT cat_id, gallery_id, cat_name FROM exp_gallery_categories WHERE gallery_id=2 ORDER BY cat_name”); Right now, it pulls all the categories from gallery_id 2- that could change however you need, including getting fancy and letting them pull from multiple galleries and format subcats whatever. And that’s it. Stick it in the extensions folder, enable it- and wherever on your publish/edit form the custom field you specified in $alter_field shows up, it will be a dropdown populated by the gallery cats. They’ll see the names of the categories in the dropdown- though because I’m lazy- the values are simply the category ids rather than the url, but that could be easily changed. Anyway- briefly tested and could be tweaked a lot. But the extensions are worth playing with- very handy stuff.
Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.