Want to show description in lightbox view of GalleryES View

Permalink Browser Info Environment
I would like the lightbox view of the gallery_e_s_view to show both the title and description. Currently it repeats the title. You can see it here:

http://mntimeworn.com/products/restaurant-tabletops/rustic-patina/r...

Click the large image to see the lightbox and the double post of the title. I have tried to modify the code in the controller file, but I'm doing something wrong. I think it is in this part:

//FILMSTRIP GALLERY
      if ($this->galleryType == 'filmstrip') {
         $enableLightbox = '0';
         $script_tag = '<script type="text/javascript" src="' . $bv->getBlockURL() . '/javascript/jquery.flexslider-min.js"></script>';
         $lightbox = '<script type="text/javascript" src="' . $bv->getBlockURL() . '/javascript/jquery.magnific.js"></script>';
         $pin = '<script type="text/javascript" async src="//assets.pinterest.com/js/pinit.js"></script>';
         $this->addHeaderItem($pin);
         $this->addHeaderItem($script_tag);
         $this->addHeaderItem($lightbox);
         $this->addHeaderItem('
            <script type="text/javascript">
               $(window).load(function() {
                 // The slider being synced must be initialized first
                 $("#carousel'.$bID.$this->uniqueID.'").flexslider({
                   animation: "slide",


Please let me know how to fix this.

Type: Pre-Sale
Status: Resolved
webicine
View Replies:
emirii replied on at Permalink Reply
emirii
Hi there! I think you were close, but just have to change the selector in the lightbox settings to the title and alt attributes of the image instead. Here's the edited version of code:

//FILMSTRIP GALLERY
  if ($this->galleryType == 'filmstrip') {
     $enableLightbox = '0';
     $script_tag = '<script type="text/javascript" src="' . $bv->getBlockURL() . '/javascript/jquery.flexslider-min.js"></script>';
     $lightbox = '<script type="text/javascript" src="' . $bv->getBlockURL() . '/javascript/jquery.magnific.js"></script>';
     $pin = '<script type="text/javascript" async src="//assets.pinterest.com/js/pinit.js"></script>';
     $this->addHeaderItem($pin);
     $this->addHeaderItem($script_tag);
     $this->addHeaderItem($lightbox);
     $this->addHeaderItem('
        <script type="text/javascript">
           $(window).load(function() {
             // The slider being synced must be initialized first
             $("#carousel'.$bID.$this->uniqueID.'").flexslider({
               animation: "slide",


Let me know if for some reason it didn't work out for you or if you need more help! Thank you.
webicine replied on at Permalink Reply
webicine
worked perfectly - thank you!

concrete5 Environment Information

# concrete5 Version
5.6.3.1

# concrete5 Packages
Add Multiple Pages (2.1.1), Automatic Email Obfuscator (1.2.3), Clevyr Nav (1.0), Designer Content (3.1.1), Expand / Collapse (1.2.1), FlexSlider (2.1.1), Formidable (2.0.14), GalleryES (1.50), LivIcons (1.3), Magic Tabs (1.1.0.1), Manual Nav (1.3), Picmonkey Image Editor (0.95), Pro Blog (12.4.4), Slate Theme (1.4), Socializer (5.6.0.0.3.2.1), Stickies (1.2.3), tnSpacer (1.3), Touch Gallery (1.4.0), Whale Social Links (1.1.3).

# concrete5 Overrides
blocks/whale_social_links, blocks/autonav, blocks/formidable, blocks/remo_expand, blocks/product_options, blocks/gallery_e_s_view, blocks/jl_magic_tabs, blocks/touch_gallery, blocks/clevyr_nav, blocks/jb_gallerific, controllers/page_types, elements/files

# concrete5 Cache Settings
Block Cache - On
Overrides Cache - On
Full Page Caching - On - If blocks on the particular page allow it.
Full Page Cache Lifetime - Every 6 hours (default setting).

# Server Software
Apache

# Server API
cgi-fcgi

# PHP Version
5.3.22

# PHP Extensions
bcmath, bz2, calendar, cgi-fcgi, Core, ctype, curl, date, dom, enchant, ereg, exif, filter, ftp, gd, gettext, hash, homeloader, iconv, imagick, imap, intl, ionCube Loader, json, libxml, mbstring, mcrypt, mysql, mysqli, openssl, pcre, PDO, pdo_mysql, pdo_sqlite, Phar, posix, pspell, Reflection, session, SimpleXML, soap, sockets, SPL, SQLite, sqlite3, standard, tidy, tokenizer, xml, xmlreader, xmlrpc, xmlwriter, xsl, Zend Guard Loader, zip, zlib.

# PHP Settings
max_execution_time - 30
log_errors_max_len - 1024
max_file_uploads - 20
max_input_nesting_level - 64
max_input_time - 60
max_input_vars - 1000
memory_limit - 512M
post_max_size - 8M
safe_mode - Off
safe_mode_exec_dir - /usr/local/php/bin
safe_mode_gid - Off
safe_mode_include_dir - <i>no value</i>
sql.safe_mode - Off
upload_max_filesize - 128M
mysql.max_links - Unlimited
mysql.max_persistent - Unlimited
mysqli.max_links - Unlimited
mysqli.max_persistent - Unlimited
pcre.backtrack_limit - 1000000
pcre.recursion_limit - 100000
session.cache_limiter - nocache
session.gc_maxlifetime - 7200
soap.wsdl_cache_limit - 5
safe_mode_allowed_env_vars - PHP_
safe_mode_protected_env_vars - LD_LIBRARY_PATH

Browser User-Agent String

Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/43.0.2357.81 Safari/537.36

Hide Post Content

This will replace the post content with the message: "Content has been removed by an Administrator"

Hide Content

Request Refund

You may not request a refund that is not currently owned by you.