test
Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • iaweb Friend
    #189997

    I 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


    1. title_description
    Ninja Lead Moderator
    #503500

    You 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 Friend
    #533800

    I have the same problem, but changing the code didnt help. Any idea?

    Ninja Lead Moderator
    #533969

    <em>@martinmo 425536 wrote:</em><blockquote>I have the same problem, but changing the code didnt help. Any idea?</blockquote>
    @martinmo, please pm me URL, admin and FTP credentials of your site, I will help you out.

    Martin Möller Friend
    #533994

    to 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 Moderator
    #534170

    You 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.

    Martin Möller Friend
    #534304

    this worked, thanks! – should be tweaked in the downloadable release also…

Viewing 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