-
AuthorPosts
-
mikel2004 Friend
mikel2004
- Join date:
- January 2012
- Posts:
- 201
- Downloads:
- 0
- Uploads:
- 51
- Thanks:
- 24
- Thanked:
- 3 times in 1 posts
February 10, 2014 at 3:22 pm #194658Hi
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/contemporaneoThanks!
Ninja Lead ModeratorNinja Lead
- Join date:
- November 2014
- Posts:
- 16064
- Downloads:
- 310
- Uploads:
- 2864
- Thanks:
- 341
- Thanked:
- 3854 times in 3563 posts
February 11, 2014 at 7:20 am #522163You 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 Friendmikel2004
- Join date:
- January 2012
- Posts:
- 201
- Downloads:
- 0
- Uploads:
- 51
- Thanks:
- 24
- Thanked:
- 3 times in 1 posts
February 11, 2014 at 5:24 pm #522243I make your instructions, but unfortunately nothing changed :((
any other idea to try?
Ninja Lead ModeratorNinja Lead
- Join date:
- November 2014
- Posts:
- 16064
- Downloads:
- 310
- Uploads:
- 2864
- Thanks:
- 341
- Thanked:
- 3854 times in 3563 posts
February 12, 2014 at 4:20 am #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 Friendmikel2004
- Join date:
- January 2012
- Posts:
- 201
- Downloads:
- 0
- Uploads:
- 51
- Thanks:
- 24
- Thanked:
- 3 times in 1 posts
February 12, 2014 at 5:40 pm #522438Ok. I send you the credentials for PM. Write me please. Thanks a lot!
Ninja Lead ModeratorNinja Lead
- Join date:
- November 2014
- Posts:
- 16064
- Downloads:
- 310
- Uploads:
- 2864
- Thanks:
- 341
- Thanked:
- 3854 times in 3563 posts
February 13, 2014 at 7:05 am #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 Friendmikel2004
- Join date:
- January 2012
- Posts:
- 201
- Downloads:
- 0
- Uploads:
- 51
- Thanks:
- 24
- Thanked:
- 3 times in 1 posts
February 13, 2014 at 3:48 pm #522562Ok. I reply you
Ninja Lead ModeratorNinja Lead
- Join date:
- November 2014
- Posts:
- 16064
- Downloads:
- 310
- Uploads:
- 2864
- Thanks:
- 341
- Thanked:
- 3854 times in 3563 posts
February 14, 2014 at 4:45 am #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 Friendmikel2004
- Join date:
- January 2012
- Posts:
- 201
- Downloads:
- 0
- Uploads:
- 51
- Thanks:
- 24
- Thanked:
- 3 times in 1 posts
February 14, 2014 at 10:39 am #522697Yes! 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.
Thanksmikel2004 Friendmikel2004
- Join date:
- January 2012
- Posts:
- 201
- Downloads:
- 0
- Uploads:
- 51
- Thanks:
- 24
- Thanked:
- 3 times in 1 posts
February 14, 2014 at 10:54 am #522698And… 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, HorisNinja Lead ModeratorNinja Lead
- Join date:
- November 2014
- Posts:
- 16064
- Downloads:
- 310
- Uploads:
- 2864
- Thanks:
- 341
- Thanked:
- 3854 times in 3563 posts
AuthorPostsViewing 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
How to have the article image at top in category blog page?
Viewing 11 posts - 1 through 11 (of 11 total)