I just can't seem to get the code to work from /templates/your_template/html/plg_content_pagenavigation/default.php to work in /templates/your_template/html/layouts/joomla/content/videos.php.

My objective is to populate a manual video article playlist with about 5 or 10 videos contents. All I will be needing is: intro images, titles and links... The player will auto play the next 'video article' each time one ends. I don't need the 'Previous' just the NEXT say 10 articles relating to the same category...

defined('_JEXEC') or die;

$table = JTable::getInstance ('content');
$prev_title = $next_title = '';
if ($row->prev) {
    $prev = $rows[$location - 1];
    $table->load ($prev->id);
    $prev_title = $table->title;
if ($row->next) {
    $next = $rows[$location + 1];
    $table->load ($next->id);
    $next_title = $table->title;
<ul class="pager pagenav">

  <?php if ($row->prev) : ?>
    <li class="previous">
    <a href="<?php echo $row->prev; ?>" rel="prev">
      <i class="fa fa-angle-left"></i>
      <span><?php echo JText::_('TPL_PREV_ARTICLE'); ?></span>
      <strong><?php echo $prev_title; ?></strong>
  <?php endif; ?>

  <?php if ($row->next) : ?>
    <li class="next">
    <a href="<?php echo $row->next; ?>" rel="next">
      <i class="fa fa-angle-right"></i>
      <span><?php echo JText::_('TPL_NEXT_ARTICLE'); ?></span>
      <strong><?php echo $next_title; ?></strong>
  <?php endif; ?>


Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Browse other questions tagged or ask your own question.