-
AuthorPosts
-
Andrew Winkler Friend
Andrew Winkler
- Join date:
- September 2014
- Posts:
- 725
- Downloads:
- 206
- Uploads:
- 31
- Thanks:
- 291
- Thanked:
- 34 times in 2 posts
December 11, 2014 at 8:29 am #203480I would like to have the Joomla Content pagination links and tag tabs being displayed below the Joomla content area and above the JFBConnect buttons and EasyDiscuss comments. I’ve tried moving the content plugins up and down, but the Joomla Content pagination links and tag tabs remain displayed at the bottom of my Joomla content page in fulltext layout, which makes no sense.
The JFBConnect people are telling me that
<blockquote>The tags and pagination are a part of the article template itself. The content plugins don’t set the position of those elements on the page, which means that, unfortunately, JFBConnect can’t control where the social features go in relation to those items. </blockquote>Here’s an example page:
http://therebel.website/en/jim-stone/820179-shocking-negligence-at-sellafield-nuclear-waste-site
Here’s a screenshot with comments:
Could you please help me rearranging this?
Ninja Lead ModeratorNinja Lead
- Join date:
- November 2014
- Posts:
- 16064
- Downloads:
- 310
- Uploads:
- 2864
- Thanks:
- 341
- Thanked:
- 3854 times in 3563 posts
December 12, 2014 at 3:41 am #558468I have duplicated and changed as in my attachment file.
You can get and upload it into templates/ja_university_t3/html/com_content/article/ folder and don’t forget to backup old file before changing
1 user says Thank You to Ninja Lead for this useful post
Andrew Winkler FriendAndrew Winkler
- Join date:
- September 2014
- Posts:
- 725
- Downloads:
- 206
- Uploads:
- 31
- Thanks:
- 291
- Thanked:
- 34 times in 2 posts
December 12, 2014 at 6:13 am #558478Thanks, mate, but all that did was move the Jlike buttons from between title and maintext right to the bottom below the Joomla content pagination and the Joomla tags. Looking at the code of the default.php it looks like the JFBConnect and the EasyDiscuss plugins are displayed as part of the main content area, before pagination and tags. The question is how to split up the main content area so that it displays the pagination and tag below the article but before the JFBConnect and the EasyDiscuss plugins. I had a look but it wasn’t obvious to me how to do this.
Ninja Lead ModeratorNinja Lead
- Join date:
- November 2014
- Posts:
- 16064
- Downloads:
- 310
- Uploads:
- 2864
- Thanks:
- 341
- Thanked:
- 3854 times in 3563 posts
December 12, 2014 at 9:35 am #558507JFBConnect and the EasyDiscuss plugins are working with position associated with three events method
<?php echo $this->item->event->afterDisplayTitle; ?>
<?php echo $this->item->event->beforeDisplayContent; ?>
<?php echo $this->item->event->afterDisplayContent; ?>
You can move them to anything in default.php file if you want
Andrew Winkler FriendAndrew Winkler
- Join date:
- September 2014
- Posts:
- 725
- Downloads:
- 206
- Uploads:
- 31
- Thanks:
- 291
- Thanked:
- 34 times in 2 posts
December 12, 2014 at 10:58 am #558513What makes no sense to me is that the JFBConnect and the EasDiscuss plugin are displayed below the maintext area and above tags and pagination.
http://awesomescreenshot.com/0b540radc8
That sounds like they can only be associated with the afterDisplayContent event. However, when I look at the code of the default.php, the afterDisplayContent event is after tags and pagination.
<?php
/**
* @package Joomla.Site
* @subpackage com_content
*
* @copyright Copyright (C) 2005 - 2013 Open Source Matters, Inc. All rights reserved.
* @license GNU General Public License version 2 or later; see LICENSE.txt
*/defined('_JEXEC') or die;
JHtml::addIncludePath(JPATH_COMPONENT . '/helpers');
JHtml::addIncludePath(T3_PATH . '/html/com_content');
JHtml::addIncludePath(dirname(dirname(__FILE__)));// Create shortcuts to some parameters.
$params = $this->item->params;
$images = json_decode($this->item->images);
$urls = json_decode($this->item->urls);
$canEdit = $params->get('access-edit');
$user = JFactory::getUser();
$info = $params->get('info_block_position', 2);
$aInfo1 = ($params->get('show_publish_date') || $params->get('show_category') || $params->get('show_parent_category') || $params->get('show_author'));
$aInfo2 = ($params->get('show_create_date') || $params->get('show_modify_date') || $params->get('show_hits'));
$topInfo = ($aInfo1 && $info != 1) || ($aInfo2 && $info == 0);
$botInfo = ($aInfo1 && $info == 1) || ($aInfo2 && $info != 0);
$icons = $params->get('access-edit') || $params->get('show_print_icon') || $params->get('show_email_icon');JHtml::_('behavior.caption');
JHtml::_('bootstrap.tooltip');
?><?php if ($this->params->get('show_page_heading', 1)) : ?>
<div class="page-header clearfix">
<h1 class="page-title"><?php echo $this->escape($this->params->get('page_heading')); ?></h1>
</div>
<?php endif; ?>
<div class="item-page<?php echo $this->pageclass_sfx ?> clearfix"><?php if (!empty($this->item->pagination) && $this->item->pagination && !$this->item->paginationposition && $this->item->paginationrelative) : ?>
<?php echo $this->item->pagination; ?>
<?php endif; ?><!-- Article -->
<article itemscope itemtype="http://schema.org/Article">
<meta itemprop="inLanguage" content="<?php echo ($this->item->language === '*') ? JFactory::getConfig()->get('language') : $this->item->language; ?>" /><?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; ?><!-- Aside -->
<?php if ($topInfo || $icons) : ?>
<aside class="article-aside clearfix">
<?php if ($topInfo): ?>
<?php echo JLayoutHelper::render('joomla.content.info_block.block', array('item' => $this->item, 'params' => $params, 'position' => 'above')); ?>
<?php endif; ?><?php if ($icons): ?>
<?php echo JLayoutHelper::render('joomla.content.icons', array('item' => $this->item, 'params' => $params, 'print' => $this->print)); ?>
<?php endif; ?>
</aside>
<?php endif; ?>
<!-- //Aside --><?php if (isset ($this->item->toc)) : ?>
<?php echo $this->item->toc; ?>
<?php endif; ?><?php if (!$params->get('show_intro')) : ?>
<?php echo $this->item->event->afterDisplayTitle; ?>
<?php endif; ?><?php echo $this->item->event->beforeDisplayContent; ?>
<?php if (isset($urls) && ((!empty($urls->urls_position) && ($urls->urls_position == '0')) || ($params->get('urls_position') == '0' && empty($urls->urls_position))) || (empty($urls->urls_position) && (!$params->get('urls_position')))): ?>
<?php echo $this->loadTemplate('links'); ?>
<?php endif; ?><?php if ($params->get('access-view')): ?>
<?php echo JLayoutHelper::render('joomla.content.fulltext_image', array('item' => $this->item, 'params' => $params)); ?><?php
if (!empty($this->item->pagination) AND $this->item->pagination AND !$this->item->paginationposition AND !$this->item->paginationrelative):
echo $this->item->pagination;
endif;
?><section class="article-content clearfix" itemprop="articleBody">
<?php echo $this->item->text; ?>
</section><!-- footer -->
<?php if ($botInfo) : ?>
<footer class="article-footer clearfix">
<?php echo JLayoutHelper::render('joomla.content.info_block.block', array('item' => $this->item, 'params' => $params, 'position' => 'below')); ?>
</footer>
<?php endif; ?>
<!-- //footer --><?php
if (!empty($this->item->pagination) && $this->item->pagination && $this->item->paginationposition && !$this->item->paginationrelative): ?>
<?php
echo '<hr class="divider-vertical" />';
echo $this->item->pagination;
?>
<?php endif; ?><?php if (isset($urls) && ((!empty($urls->urls_position) && ($urls->urls_position == '1')) || ($params->get('urls_position') == '1'))): ?>
<?php echo $this->loadTemplate('links'); ?>
<?php endif; ?><?php //optional teaser intro text for guests ?>
<?php elseif ($params->get('show_noauth') == true and $user->get('guest')) : ?>
<?php echo $this->item->introtext; ?>
<?php //Optional link to let them register to see the whole article. ?>
<?php if ($params->get('show_readmore') && $this->item->fulltext != null) :
$link1 = JRoute::_('index.php?option=com_users&view=login');
$link = new JURI($link1);
?>
<section class="readmore">
<a href="<?php echo $link; ?>" itempro="url">
<span>
<?php $attribs = json_decode($this->item->attribs); ?>
<?php
if ($attribs->alternative_readmore == null) :
echo JText::_('COM_CONTENT_REGISTER_TO_READ_MORE');
elseif ($readmore = $this->item->alternative_readmore) :
echo $readmore;
if ($params->get('show_readmore_title', 0) != 0) :
echo JHtml::_('string.truncate', ($this->item->title), $params->get('readmore_limit'));
endif;
elseif ($params->get('show_readmore_title', 0) == 0) :
echo JText::sprintf('COM_CONTENT_READ_MORE_TITLE');
else :
echo JText::_('COM_CONTENT_READ_MORE');
echo JHtml::_('string.truncate', ($this->item->title), $params->get('readmore_limit'));
endif; ?>
</span>
</a>
</section>
<?php endif; ?>
<?php endif; ?>
</article>
<!-- //Article --><?php if ($params->get('show_tags', 1) && !empty($this->item->tags)) : ?>
<?php echo JLayoutHelper::render('joomla.content.tags', $this->item->tags->itemTags); ?>
<?php endif; ?><?php if (!empty($this->item->pagination) && $this->item->pagination && $this->item->paginationposition && $this->item->paginationrelative): ?>
<?php echo $this->item->pagination; ?>
<?php endif; ?><?php echo $this->item->event->afterDisplayContent; ?>
</div>That means, those two plugins must – for some reason – be part of the maintext area.
Ninja Lead ModeratorNinja Lead
- Join date:
- November 2014
- Posts:
- 16064
- Downloads:
- 310
- Uploads:
- 2864
- Thanks:
- 341
- Thanked:
- 3854 times in 3563 posts
December 15, 2014 at 4:28 am #558663You can contact with provider of extensions: JFBConnect and the EasyDiscuss plugins and ask them for the associated event where they appear within the article page.
I checked them from plugin manager but I could not see the configuration setting on that.
AuthorPostsViewing 6 posts - 1 through 6 (of 6 total)This topic contains 6 replies, has 2 voices, and was last updated by Ninja Lead 9 years, 11 months ago.
We moved to new unified forum. Please post all new support queries in our New Forum
Joomla Content pagination and tags above JFBConnect buttons
Viewing 6 posts - 1 through 6 (of 6 total)