-
AuthorPosts
-
felix1 Friend
felix1
- Join date:
- February 2015
- Posts:
- 220
- Downloads:
- 36
- Uploads:
- 78
- Thanks:
- 67
- Thanked:
- 20 times in 6 posts
May 14, 2015 at 4:55 pm #206344Hallo!
I have sent a PM to a member of support staff but haven’t got any reply. Therefore I will try a new forum post again…
I need to switch place between headline and image in my news articles.
Can somebody please help me override layout in category view and article view in com_content? I only ask because I don’t master PHP yet.
I can send FTP access if needed. Otherwise I have provided site access information to JA Staff as usual.
Sincerely//Felix Rimfrost
Adam M ModeratorAdam M
- Join date:
- May 2014
- Posts:
- 5159
- Downloads:
- 33
- Uploads:
- 66
- Thanks:
- 95
- Thanked:
- 1271 times in 1235 posts
Adam M ModeratorAdam M
- Join date:
- May 2014
- Posts:
- 5159
- Downloads:
- 33
- Uploads:
- 66
- Thanks:
- 95
- Thanked:
- 1271 times in 1235 posts
felix1 Friendfelix1
- Join date:
- February 2015
- Posts:
- 220
- Downloads:
- 36
- Uploads:
- 78
- Thanks:
- 67
- Thanked:
- 20 times in 6 posts
May 15, 2015 at 9:09 pm #570749Hallo and thanks for reply!
I want this change on homepage and also when I read the full article. And yes, on all articles on the site…
Support member Viet Vu helped me earlier when I still was on a test server (see forum thread).
http://www.joomlart.com/forums/topic/switch-place-headline-and-image/But now I’m on another server where the final site will be…
Sincerely//Felix Rimfrost
Felix Rimfrost
Adam M ModeratorAdam M
- Join date:
- May 2014
- Posts:
- 5159
- Downloads:
- 33
- Uploads:
- 66
- Thanks:
- 95
- Thanked:
- 1271 times in 1235 posts
May 18, 2015 at 10:19 am #570917Hi @felix1,
1. To move the intro image before article title in Categoory Layout, please copy file pluginssystemt3base-bs3htmlcom_contentcategoryblog_item.php and paste to templatespurity_iiihtmlcom_contentcategory, open this file and look for :
<?php echo $this->item->event->beforeDisplayContent; ?>
<?php echo JLayoutHelper::render('joomla.content.intro_image', $this->item); ?>
<?php echo $this->item->introtext; ?>
remove the intro image here as below :
<?php echo $this->item->event->beforeDisplayContent; ?>
<?php echo $this->item->introtext; ?>
next, look for this code :
<?php if ($params->get('show_title')) : ?>
<?php echo JLayoutHelper::render('joomla.content.item_title', array('item' => $this->item, 'params' => $params, 'title-tag'=>'h2')); ?>
<?php endif; ?>add the intro image before title as below :
<?php echo JLayoutHelper::render('joomla.content.intro_image', $this->item); ?>
<?php if ($params->get('show_title')) : ?>
<?php echo JLayoutHelper::render('joomla.content.item_title', array('item' => $this->item, 'params' => $params, 'title-tag'=>'h2')); ?>
<?php endif; ?>2. Now is the article detail page, please open file templatespurity_iiihtmlcom_contentarticledefault.php and look for this code :
<?php if ($params->get('access-view')): ?>
<?php echo JLayoutHelper::render('joomla.content.fulltext_image', array('item' => $this->item, 'params' => $params)); ?>remove the full image here as below :
<?php if ($params->get('access-view')): ?>
and look for the title :
<?php if ($params->get('show_title')) : ?>
<?php echo JLayoutHelper::render('joomla.content.item_title', array('item' => $this->item, 'params' => $params, 'title-tag'=>'h1')); ?>
<?php endif; ?>then insert the image before it :
<?php echo JLayoutHelper::render('joomla.content.fulltext_image', array('item' => $this->item, 'params' => $params)); ?>
<?php if ($params->get('show_title')) : ?>
<?php echo JLayoutHelper::render('joomla.content.item_title', array('item' => $this->item, 'params' => $params, 'title-tag'=>'h1')); ?>
<?php endif; ?>1 user says Thank You to Adam M for this useful post
felix1 Friendfelix1
- Join date:
- February 2015
- Posts:
- 220
- Downloads:
- 36
- Uploads:
- 78
- Thanks:
- 67
- Thanked:
- 20 times in 6 posts
May 19, 2015 at 3:48 pm #571116THANK YOU ADAM!!! 🙂
I could kiss you right now, if you where here. :-*
You are awsome! You explained it very good. I have no knowledge of PHP, but I can copy and paste at least… 😉
Sincerely
Felix Rimfrost
Felix Rimfrost
AuthorPostsViewing 6 posts - 1 through 6 (of 6 total)This topic contains 6 replies, has 2 voices, and was last updated by Adam M 9 years, 6 months ago.
We moved to new unified forum. Please post all new support queries in our New Forum
Switch place between headline and image
Viewing 6 posts - 1 through 6 (of 6 total)