is there a way to insert an HTML "link" on the image description

Permalink Browser Info Environment
First, the Plug-in is amazing, you have provided max control of just about everything. There is only one thing that I wonder if is possible and perhaps you could advise.

Is there a way that I could add HTML to the description box? this way I can add a hand-coded link to a page?


I don't know if you have considered adding a URL link feature to the "Thumbnails - Hover " located on the "settings section", That would be an amazing feature, maybe a simple field just to manually enter a url and an option to assign an icon, similar to the magnifying icon, maybe a "+" or Link icon
thank you

Type: Ticket
Status: Archived
3DA
View Replies:
3DA replied on at Permalink Reply
3DA
I Realized the link would probably be added to the description, so maybe a blank field to add a link could be provided on the image the description section
Parasek replied on at Permalink Reply
Parasek
Hi

1. Currently, to display html in title/description, you need to edit this file (remove escaping functions):
packages/grand_gallery/blocks/grand_gallery/js_files/photo-swipe.js

Line 70: Replace
item.title += '<span class="gg-photo-swipe-title">'+_.escape(galleryEl.getAttribute('title'))+'</span>';

with
item.title += '<span class="gg-photo-swipe-title">'+galleryEl.getAttribute('title')+'</span>';

------------
Line 78: Replace
description = _.escape(description);

with
//description = _.escape(description);


You will need to do it everytime package is updated.
But I will consider removing escaping function in future, probably it is not needed there.

2. When you edit images in block, there is a link below "Tags": "Enable more options". It will take you to Settings page.
Change "Max. number of images per gallery" to "Enable all fields".
Read all info in that section (for example max. number of images with default php settings is 72).
Now in block, instead aforementioned link, select field will appear (where you can change default lightbox behaviour to something else).

In "Thumbnails - Hover " you can change icon. Write "link" (or something like that) and you will get basic font awesome icon for links.
You can't mix icons in single gallery unless you make custom template for it.
Parasek replied on at Permalink Reply
Parasek
You would probably need to strip html tags from title too.

packages/grand_gallery/blocks/grand_gallery/view.php
Line 93
Replace
title="<?php echo h($image['view_title']); ?>"

with
title="<?php echo h(strip_tags($image['view_title'])); ?>"
3DA replied on at Permalink Reply
3DA
Thank you for your instructions. they are detailed and simple, I appreciate the great support

concrete5 Environment Information

# concrete5 Version
Core Version - 8.5.5
Version Installed - 8.5.5
Database Version - 20201116182100

# Database Information
Version: 5.7.37
SQL Mode: ONLY_FULL_GROUP_BY,STRICT_TRANS_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION

# concrete5 Packages
Accordion Pro (1.1.3), Afixia: Login Redirect (0.9.4), Automatic Email Obfuscator (2.0.1), Buttons Factory Pro (3.0.8), Formidable (Full Version) (2.1.5), Grand Gallery (1.6.1), HTML5 Audio Player Basic (2.0.7), Image Link With Content (1.5), Lazy Testimonials (0.9.9), Login/Logout Link (1.0), Login Block (2.0.0), Login Dialog (0.9.8), Login Page Background (0.9.1), PDF Viewer (1.0.1), Pixel Theme (2.4.0), Simple Audio Player (0.9.2), Spacer (0.9.4), Touch Gallery 3 (3.2.4)

# concrete5 Overrides
None

# concrete5 Cache Settings
Block Cache - On
Overrides Cache - On
Full Page Caching - Off
Full Page Cache Lifetime - Every 6 hours (default setting).

# Server Software
Apache

# Server API
fpm-fcgi

# PHP Version
7.3.33

# PHP Extensions
bcmath, bz2, cgi-fcgi, Core, ctype, curl, date, dba, dom, enchant, exif, fileinfo, filter, ftp, gd, gettext, hash, iconv, imap, intl, json, ldap, libxml, mbstring, mysqli, mysqlnd, odbc, openssl, pcntl, pcre, PDO, pdo_mysql, PDO_ODBC, pdo_pgsql, pdo_sqlite, pgsql, Phar, posix, pspell, Reflection, session, shmop, SimpleXML, snmp, soap, sockets, SPL, sqlite3, standard, sysvmsg, sysvsem, sysvshm, tokenizer, wddx, xml, xmlreader, xmlrpc, xmlwriter, xsl, Zend OPcache, zip, zlib

# PHP Settings
max_execution_time - 1200
log_errors_max_len - 1024
max_file_uploads - 20
max_input_nesting_level - 64
max_input_time - -1
max_input_vars - 2000
memory_limit - 512M
post_max_size - 256M
upload_max_filesize - 200M
ldap.max_links - Unlimited
mbstring.regex_stack_limit - 100000
mysqli.max_links - Unlimited
mysqli.max_persistent - Unlimited
odbc.max_links - Unlimited
odbc.max_persistent - Unlimited
pcre.backtrack_limit - 1000000
pcre.recursion_limit - 100000
pgsql.max_links - Unlimited
pgsql.max_persistent - Unlimited
session.cache_limiter - <i>no value</i>
session.gc_maxlifetime - 7200
soap.wsdl_cache_limit - 5
opcache.max_accelerated_files - 4000
opcache.max_file_size - 0
opcache.max_wasted_percentage - 5

Browser User-Agent String

Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/98.0.4758.82 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.