-
AuthorPosts
-
iaweb Friend
iaweb
- Join date:
- February 2009
- Posts:
- 76
- Downloads:
- 135
- Uploads:
- 10
- Thanks:
- 16
- Thanked:
- 1 times in 1 posts
August 23, 2013 at 4:50 pm #189997I am trying to make the Title and the description different from each other in the Slideshow of the homepage (Gallery), but somehow can not get a leg on it… I changed ALT text, does not change the description …
I attach a screenshot to make a bit more clear what I mean …
Any helps is appreciated.
Thanks
Heiko
Ninja Lead ModeratorNinja Lead
- Join date:
- November 2014
- Posts:
- 16064
- Downloads:
- 310
- Uploads:
- 2864
- Thanks:
- 341
- Thanked:
- 3854 times in 3563 posts
August 26, 2013 at 5:06 pm #503500You can fix the problem this way
Open templates/ja_fixel/html/com_content/article/default_gallery.php file
Find this line
<?php if(isset($attr['alt']) && $attr['alt']) : ?>
<p><?php echo htmlspecialchars_decode($attr['title']) ?></p>
<?php endif ?>
Change to
<?php if(isset($attr['alt']) && $attr['alt']) : ?>
<p><?php echo htmlspecialchars_decode($attr['alt']) ?></p>
<?php endif ?>
Martin Möller FriendMartin Möller
- Join date:
- September 2014
- Posts:
- 54
- Downloads:
- 132
- Uploads:
- 5
- Thanks:
- 5
- Thanked:
- 1 times in 1 posts
May 6, 2014 at 10:57 am #533800I have the same problem, but changing the code didnt help. Any idea?
Ninja Lead ModeratorNinja Lead
- Join date:
- November 2014
- Posts:
- 16064
- Downloads:
- 310
- Uploads:
- 2864
- Thanks:
- 341
- Thanked:
- 3854 times in 3563 posts
Martin Möller FriendMartin Möller
- Join date:
- September 2014
- Posts:
- 54
- Downloads:
- 132
- Uploads:
- 5
- Thanks:
- 5
- Thanked:
- 1 times in 1 posts
May 7, 2014 at 12:40 pm #533994to be more precise: in the article the code tweaking worked, but not the slideshow on the frontpage.
I presume there must be a second place to change title into alt.Ninja Lead ModeratorNinja Lead
- Join date:
- November 2014
- Posts:
- 16064
- Downloads:
- 310
- Uploads:
- 2864
- Thanks:
- 341
- Thanked:
- 3854 times in 3563 posts
May 8, 2014 at 10:50 am #534170You can try additional tweak below.
In the templates/ja_fixel/templateHelper.php file,
Change
// gallery description
if((isset($attr['alt']) && $attr['alt']) || (isset($attr['title']) && $attr['title'])){$html .= '<div class="carousel-caption">';
$html .= (isset($attr['title']) && $attr['title']) ? '<h4>' . htmlspecialchars_decode($attr['title']) . '</h4>' : '';
$html .= (isset($attr['alt']) && $attr['alt']) ? '<p>' . htmlspecialchars_decode($attr['title']) . '</p>' : '';$html .= '</div>';
}To
// gallery description
if((isset($attr['alt']) && $attr['alt']) || (isset($attr['title']) && $attr['title'])){$html .= '<div class="carousel-caption">';
$html .= (isset($attr['title']) && $attr['title']) ? '<h4>' . htmlspecialchars_decode($attr['title']) . '</h4>' : '';
$html .= (isset($attr['alt']) && $attr['alt']) ? '<p>' . htmlspecialchars_decode($attr['alt']) . '</p>' : '';$html .= '</div>';
}Let me know it it helps.
1 user says Thank You to Ninja Lead for this useful post
Martin Möller FriendMartin Möller
- Join date:
- September 2014
- Posts:
- 54
- Downloads:
- 132
- Uploads:
- 5
- Thanks:
- 5
- Thanked:
- 1 times in 1 posts
May 9, 2014 at 8:02 am #534304this worked, thanks! – should be tweaked in the downloadable release also…
AuthorPostsViewing 7 posts - 1 through 7 (of 7 total)This topic contains 7 replies, has 3 voices, and was last updated by Martin Möller 10 years, 7 months ago.
We moved to new unified forum. Please post all new support queries in our New Forum
How to make description different than title in Slideshow (Gallery)
Viewing 7 posts - 1 through 7 (of 7 total)