Forums

Welcome, Guest
Username: Password: Remember me

TOPIC: Navigation between listings

Navigation between listings 2 years 8 months ago #2787

  • Bibbity
  • Bibbity's Avatar
  • Offline
  • Fresh Boarder
  • Posts: 7
  • Karma: 0
JU Directory - Lite

Front-end of directory navigates between single listings by ID. Is it possible to navigate by Title instead? Was able to get the list view to order by title.

harvest.thewoodward.org/index.php/ju-directory/2-vendor/9-hanahan-goat-soap

Hanahan Goat Soap is our first listing alphabetically and should only have a Next button that leads to Krazy Kraut.
Last Edit: 2 years 8 months ago by Bibbity. Reason: Put in the wrong forum
The administrator has disabled public write access.

Navigation between listings 2 years 8 months ago #2788

  • admin
  • admin's Avatar
  • Offline
  • Administrator
  • Posts: 1641
  • Thank you received: 178
  • Karma: 43
You need to edit the template to change Next/Prev text to listing title.
And you can order listing by title by default by change the ordering priority in field manager.
The administrator has disabled public write access.

Navigation between listings 2 years 7 months ago #2892

  • Bibbity
  • Bibbity's Avatar
  • Offline
  • Fresh Boarder
  • Posts: 7
  • Karma: 0
How do I edit the template?
The administrator has disabled public write access.

Navigation between listings 2 years 7 months ago #2893

  • admin
  • admin's Avatar
  • Offline
  • Administrator
  • Posts: 1641
  • Thank you received: 178
  • Karma: 43
The template file in: components/com_judirectory/templates/
The administrator has disabled public write access.

Navigation between listings 2 years 7 months ago #2901

  • Bibbity
  • Bibbity's Avatar
  • Offline
  • Fresh Boarder
  • Posts: 7
  • Karma: 0
Sorry to be dim, I am not a coder. I think found the correct file to edit, but it is all gibberish to me. Is this the correct section I need to edit, and how do I change this so it navigates by title and not by ID? Thank you for your help!

<div class="navigation clearfix">
<ul class="pager">
<?php
if ($this->item->prev_item)
{
?>
<li class="pull-left">
<a href="<?php echo $this->item->prev_item->link; ?>"
title="<?php echo $this->item->prev_item->title ?>"><?php echo JText::_('COM_JUDIRECTORY_PREV'); ?></a>
The administrator has disabled public write access.
Time to create page: 0.222 seconds
Powered by Kunena Forum