Hi,
I would like to give my clients the opportunity to choose htmlblobs from a selection list. I found this article:http://forum.cmsmadesimple.org/viewtopi ... own+global but it is not a perfect solution of my problem. I would like to dropdown list created dynamically (if client add htmlblobs or remove one the list will be automatically updated).
I use CMSMS 1.11.9 with AdvancedContnet and ECB modules.
The attached file shows what will be the perfect solution.
Anyone can help?
global_content as dropdown
Re: global_content as dropdown
try:
Create a User Defined Tag named 'GetGCBs'
Create a User Defined Tag named 'GetGCBs'
In your page template use ECB:$cms = cmsms();
$co = $cms->GetGlobalContentOperations();
$gcbs = $co->LoadHtmlBlobs();
$arr = array();
foreach ($gcbs as $gcb) {
$arr[$gcb->name] = $gcb->name;
}
return $arr;
Code: Select all
{content_module module="ECB" field="dropdown_from_udt" block="test2" label="GCB" udt="GetGCBs" assign="gcb" first_value="=select="}
{if !empty($gcb)}{global_content name=$gcb}{/if}Re: global_content as dropdown
This is exactly what I was looking for
Thank you very much ~valden
Best regards!
Thank you very much ~valden
Best regards!
Re: global_content as dropdown
Or you could just use TinyMCE and choose which GCB you want the user to have access to.


