×

Notice

The forum is in read only mode.
Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1

TOPIC: Comments position above page navigation element?

Comments position above page navigation element? 9 years 11 months ago #29062

  • David Olschewski
  • David Olschewski's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 4
  • Thank you received: 0
Is there a convient way to make the comments-list rendered above the "Previous" and "Next" Buttons of the page navigation element? The default position under the page navigation does less sense for the layout,
If there is no parameter or option for that, i would be happy about a hint to tweak the code manually.

Greets
David

Comments position above page navigation element? 9 years 11 months ago #29063

  • Daniel Dimitrov
  • Daniel Dimitrov's Avatar
  • Away
  • Administrator
  • Administrator
  • Posts: 9618
  • Karma: 155
  • Thank you received: 1081
Hey David,
Those page navigation elements are most probably part of your template. The comments are output using the onContentAfterDisplay event position. If you look at the article default.php file you should find the event there.
Either the previous and next are output in that file before the onContentAFterDisplay event or those buttons are output using a plugin in which case you'll just need to reorder the plugins and set the comment system to be after that plugin.

Regards,
Daniel

Comments position above page navigation element? 9 years 11 months ago #29065

  • David Olschewski
  • David Olschewski's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 4
  • Thank you received: 0
Hi Daniel,
changing the plugin-order doesnt effect on my template which is based on protostar. Here, the call for the pagination element
echo $this->item->pagination;
must be placed under the call for the afterDisplayContent
<?php echo $this->item->event->afterDisplayContent; ?>
manually in default.php for the article template that you have mentioned. After replacing these positions it worked as expected.

Regards
David

I changed
</p>
	<?php endif; ?>
	<?php endif; ?>
 
	<?php
if (!empty($this->item->pagination) && $this->item->pagination && $this->item->paginationposition && $this->item->paginationrelative) :
	echo $this->item->pagination;
?>
	<?php endif; ?>
	<?php echo $this->item->event->afterDisplayContent; ?> </div>

into ...
</p>
	<?php endif; ?>
	<?php endif; ?>
	<?php echo $this->item->event->afterDisplayContent; ?>
	<?php
if (!empty($this->item->pagination) && $this->item->pagination && $this->item->paginationposition && $this->item->paginationrelative) :
	echo $this->item->pagination;
?>
	<?php endif; ?>
	 </div>
  • Page:
  • 1
Time to create page: 0.146 seconds