Does Slider Caption Support HTML

Permalink Browser Info Environment
it looks like the "caption" area in the slider does not support html? is this correct. How can i correct this to accommodate html.

1 Attachment

Type: Discussion
Status: In Progress
tracyb
View Replies:
c5hub replied on at Permalink Reply
c5hub
This does except HTML - it looks like you may have an error in your code (maybe an unclosed element?). I just tested this with:

<h1>Test Header</h1>
tracyb replied on at Permalink Reply
tracyb
The following
<h1>Test Header</h1>



works correctly but when you put in an href the link works and a button
works if you style it. But, it is generating additional copy. See screen
shot.

<a href="http://google.com">Read More</a>


Thanks


On 5/5/15, 1:18 AM, "concrete5 Community" <discussions@concretecms.com>
wrote:
formigo replied on at Permalink Reply
formigo
OK, I can see your issue. The caption text was never meant to contain a link - the caption text when populated is used as the images 'alt' text so when a link is added this breaks thus the additional unwanted text.

If you look in packages/alpha/blocks/orbit_image_slider/controller.php line 172 you will see...

$slides[$count]['slideImageTag'] = $html->image($slideImage->getURL(), null, null, array('alt'=>$slide['slideCaption']));


Try changing it to...

$slides[$count]['slideImageTag'] = $html->image($slideImage->getURL(), null, null, array('alt'=>''));


That should do it...

concrete5 Environment Information

# concrete5 Version
5.6.3.3

# concrete5 Packages
Alpha (1.0.3), Lerteco Membership (2.2.2.1), Login (1.1.1), Page Redirect (1.4), Page Selector Attribute (1.1), Pro Blog (12.4.4), Pro Forms (7.5.9), Vimeo Player (1.0.6).

# concrete5 Overrides
languages/ja_JP, languages/ro_RO, languages/tr_TR, languages/cs_CZ, languages/vi_VN, languages/el_GR, languages/ar, languages/da_DK, languages/es_MX, languages/es_ES, languages/sl_SI, languages/fr_FR, languages/nb_NO, languages/sv_SE, languages/nl_NL, languages/sk_SK, languages/es_AR, languages/de_DE, languages/zh_TW, languages/ru_RU, languages/it_IT, languages/pt_PT, languages/fi_FI, languages/fa_IR, languages/es_PE

# concrete5 Cache Settings
Block Cache - On
Overrides Cache - On
Full Page Caching - Off

# Server Software
Apache

# Server API
cgi-fcgi

# PHP Version
5.3.29

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

# PHP Settings
max_execution_time - 180
log_errors_max_len - 1024
max_file_uploads - 20
max_input_nesting_level - 64
max_input_time - 180
max_input_vars - 3000
memory_limit - 256M
post_max_size - 256M
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 - 256M
memcache.max_failover_attempts - 20
mysql.max_links - Unlimited
mysql.max_persistent - Unlimited
mysqli.max_links - Unlimited
mysqli.max_persistent - Unlimited
pcre.backtrack_limit - 1000000
pcre.recursion_limit - 100000
pgsql.max_links - Unlimited
pgsql.max_persistent - Unlimited
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 (Macintosh; Intel Mac OS X 10.9; rv:37.0) Gecko/20100101 Firefox/37.0

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.