Linebreaks in Titles and Captions

Permalink Browser Info Environment
Hi Jordan,
is it somehow possible to use linebreaks in Titles and/or captions?
I used the br-tag <br/> and it didn't work.

Any idea?
Thanx
Tom

Type: Discussion
Status: New
miosdesign
View Replies: View Best Answer
miosdesign replied on at Permalink Reply
miosdesign
My Solution sofar:
replace
<?php foreach ($images as $img): ?>

with

<?php foreach ($images as $img):
$img['title']=str_replace("@@", "<br/>",$img['title']);
$img['caption']=str_replace("@@", "<br/>",$img['caption']);
?>


in view.php
/httpdocs/cms/packages/deluxe_image_gallery/blocks/deluxe_image_gallery

and then use @@ in titles and captions wherever I want linebreaks.
jordanlev replied on at Permalink Best Answer Reply
jordanlev
For the captions, you can add this line to your site's config/site.php file:
define('DELUXE_IMAGE_GALLERY_HTML_CAPTIONS', true);

Unfortunately, this only applies to the captions and not the titles. For the titles, you'll want to edit the file "/packages/deluxe_image_gallery/blocks/deluxe_image_gallery/controller.php", find this line (should be around line #44):
$image['title'] = htmlentities($file['title'], ENT_QUOTES, APP_CHARSET);

...and change it to this:
$image['title'] = $file['title'];
miosdesign replied on at Permalink Reply
miosdesign
Thank you for your answer.

concrete5 Environment Information

Browser User-Agent String

Hide Post Content

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

Hide Content

Request Refund

You have not specified a license for this support ticket. You must have a valid license assigned to a support ticket to request a refund.