Thanks for sharing this!
I was working on accomplishing the same but didn't get it to work so i searched the forum and luckily found your post! (not a single other posts on this, kind of surprises me...)
What version of the cms and Gallery module are you using?
I'm using (all the very latest):
cmsms 1.10.3
ECB 1.3
CGExtensions 1.28.2
Gallery 1.5.3
I'm asking because i get the error below when i test your UDT solution:
Code: Select all
Fatal error: Call to undefined method Gallery::_GetGalleries() in /home/cremedel/public_html/lib/classes/class.usertagoperations.inc.php(260) : eval()'d code on line 2
In gallery, create a template "selectbox" containing the following:
Code: Select all
{foreach from=$images item=image name=img}
{if $image->isdir}{$image->titlename}={$image->titlename}{if $smarty.foreach.img.last}{else},{/if}{/if}
{/foreach}
(test the output by putting {Gallery action='gallerytree' template='selectbox'} in the content of a page).
Code: Select all
galleryname=http://www.domain.com/gallerysomething/url/,galleryname2=http://www.domain.com/gallerysomething2/url/
Code: Select all
{content_module module="ECB" field="dropdown_from_module" block="test2" label="Gallery" mod="cms_module module='Gallery' action='gallerytree' template='selectbox'"}
Code: Select all
string(122) "Smarty error: [in temporary template line 1]: syntax error: missing attribute value (Smarty_Compiler.class.php, line 1593)"
Greetings,
Manuel