Viewing 11 posts - 1 through 11 (of 11 total)
  • Author
    Posts
  • mikel2004 Friend
    #194658

    Hi

    I wish to have the article image in the first place in category blog page, before article’s title,
    It´s possible?
    Look the attached image.
    http://veintiuno.czoom.co/cine/secciones/contemporaneo

    Thanks!


    1. image-first
    Ninja Lead Moderator
    #522163

    You can try my tweak below:

    Open the templates/ja_teline_iv_t3/html/com_content/category/blog_item.php file

    Find and cut following code block:


    <?php if (isset($images->image_intro) and !empty($images->image_intro)) : ?>
    <?php $imgfloat = (empty($images->float_intro)) ? $params->get('float_intro') : $images->float_intro; ?>
    <div class="pull-<?php echo htmlspecialchars($imgfloat); ?>"> <img
    <?php if ($images->image_intro_caption):
    echo 'class="caption"'.' title="' .htmlspecialchars($images->image_intro_caption) .'"';
    endif; ?>
    src="<?php echo htmlspecialchars($images->image_intro); ?>" alt="<?php echo htmlspecialchars($images->image_intro_alt); ?>"/> </div>
    <?php endif; ?>

    Then paste such code right before this line:

    <?php if ($params->get('show_title')) : ?>

    Don’t forget to backup the file before applying those changes.

    mikel2004 Friend
    #522243

    I make your instructions, but unfortunately nothing changed :((

    any other idea to try?

    Ninja Lead Moderator
    #522304

    <em>@mikel2004 410756 wrote:</em><blockquote>I make your instructions, but unfortunately nothing changed :((

    any other idea to try?</blockquote>

    You can PM me admin login info and FTP credential of your website, I will try to help you out.

    mikel2004 Friend
    #522438

    Ok. I send you the credentials for PM. Write me please. Thanks a lot!

    Ninja Lead Moderator
    #522495

    <em>@mikel2004 410992 wrote:</em><blockquote>Ok. I send you the credentials for PM. Write me please. Thanks a lot!</blockquote>

    I just sent pm to you. Please have a look

    mikel2004 Friend
    #522562

    Ok. I reply you

    Ninja Lead Moderator
    #522642

    <em>@mikel2004 411135 wrote:</em><blockquote>Ok. I reply you</blockquote>

    Because you have put the images into content that’s reason why the change I suggested before did not work, I have other way to work with image included content on your site.

    I have changed it directly on your site, you can see details in templates/ja_teline_iv_t3/html/com_content/category/blog_item.php file

    Change


    <?php if (isset($images->image_intro) and !empty($images->image_intro)) : ?>
    <?php $imgfloat = (empty($images->float_intro)) ? $params->get('float_intro') : $images->float_intro; ?>
    <div class="pull-<?php echo htmlspecialchars($imgfloat); ?>"> <img
    <?php if ($images->image_intro_caption):
    echo 'class="caption"'.' title="' .htmlspecialchars($images->image_intro_caption) .'"';
    endif; ?>
    src="<?php echo htmlspecialchars($images->image_intro); ?>" alt="<?php echo htmlspecialchars($images->image_intro_alt); ?>"/> </div>
    <?php endif; ?>

    To


    <?php if (isset($images->image_intro) and !empty($images->image_intro)) : ?>
    <?php $imgfloat = (empty($images->float_intro)) ? $params->get('float_intro') : $images->float_intro; ?>
    <div class="pull-<?php echo htmlspecialchars($imgfloat); ?>"> <img
    <?php if ($images->image_intro_caption):
    echo 'class="caption"'.' title="' .htmlspecialchars($images->image_intro_caption) .'"';
    endif; ?>
    src="<?php echo htmlspecialchars($images->image_intro); ?>" alt="<?php echo htmlspecialchars($images->image_intro_alt); ?>"/> </div>
    <?php else:
    $regex = "/<img[^>]*>/";
    $image = '';
    if (preg_match_all($regex,$this->item->introtext, $matches)) {
    $this->item->introtext = preg_replace ($regex, '', $this->item->introtext);
    $image = implode ("n", $matches[0]);
    }
    ?>
    <?php if ($image): ?>
    <div class="pull-"><?php echo $image ?></div>
    <?php endif; ?>

    <?php endif; ?>

    Let me know if it helps

    mikel2004 Friend
    #522697

    Yes! This is perfect!
    So, I go quit the image to the content and I go uploading the image to Intro image box of Images and Links tab, so, after that, I go try again with your change order code.
    Thanks

    mikel2004 Friend
    #522698

    And… It´s possible to have all the tag view pages like the categories blog view pages?:with 3 column, image on top, article’s rating, and the Read-more link?
    like this: http://veintiuno.czoom.co/cine/secciones/contemporaneo/212-argentino/

    My tag view page right now looks: http://veintiuno.czoom.co/component/tags/tag/513-esteban%20menis

    Any idea are welcome.
    Thanks a lot, Horis

    Ninja Lead Moderator
    #522945

    Hi Horis,

    I have checked your site and see that it relates to com_tags in components/com_tags/views/tags/tmpl/default_items.php file, you can apply my fix here into com_tags

    Hope it helps.

Viewing 11 posts - 1 through 11 (of 11 total)

This topic contains 11 replies, has 2 voices, and was last updated by  Ninja Lead 10 years, 8 months ago.

We moved to new unified forum. Please post all new support queries in our New Forum