Zen Cart Logo
If this is your first visit, check our documentation. To post, register or login.
Forums / Customizing the Look of Your Shop / Templates, Stylesheets, Page Layout / Change the [<< Prev] [Next >>] on listing to button image

Change the [<< Prev] [Next >>] on listing to button image

Locked

Started by makoshark on 2 Jun 2009, 7:47 PM · Views: 2,728

Results 1 to 5 of 5
This thread is locked. New replies are disabled.
2 Jun 2009, 7:47 PM
#1
makoshark avatar

makoshark

Zen Follower

Join Date:
Jun 2007
Location:
Laurinburg, NC
Posts:
165
Plugin Contributions:
0

Post #1 by makoshark

This is something I have been wanting to do for some time. I would like to change the page navigation [<< Prev] 1 2 3 4 [Next >>] to button images like this
I found this in the /includes /languages/my template/english.php

  define('PREVNEXT_TITLE_FIRST_PAGE', 'First Page');
  define('PREVNEXT_TITLE_PREVIOUS_PAGE', 'Previous Page');
  define('PREVNEXT_TITLE_NEXT_PAGE', 'Next Page');
  define('PREVNEXT_TITLE_LAST_PAGE', 'Last Page');
  define('PREVNEXT_TITLE_PAGE_NO', 'Page %d');
  define('PREVNEXT_TITLE_PREV_SET_OF_NO_PAGE', 'Previous Set of %d Pages');
  define('PREVNEXT_TITLE_NEXT_SET_OF_NO_PAGE', 'Next Set of %d Pages');
  define('PREVNEXT_BUTTON_FIRST', '<<FIRST');
  define('PREVNEXT_BUTTON_PREV', '[<< Prev]');
  define('PREVNEXT_BUTTON_NEXT', '[Next >>]');
  define('PREVNEXT_BUTTON_LAST', 'LAST>>');
``` this seams to be what generates the prev next text. How do I get the define to display an image and keep the page numbers. Also how do you give the image mouse over description. I think this would make a great post. **Thanks for any help, James**
2 Jun 2009, 10:39 PM
#2
limelites avatar

limelites

Totally Zenned

Join Date:
Jan 2009
Posts:
2,085
Plugin Contributions:
0

Post #2 by limelites

Makoshark:

This is something I have been wanting to do for some time. I would like to change the page navigation [<< Prev] 1 2 3 4 [Next >>] to button images like this
I found this in the /includes /languages/my template/english.php

define('PREVNEXT_TITLE_FIRST_PAGE', 'First Page')
define('PREVNEXT_TITLE_PREVIOUS_PAGE', 'Previous Page');
define('PREVNEXT_TITLE_NEXT_PAGE', 'Next Page');
define('PREVNEXT_TITLE_LAST_PAGE', 'Last Page');
define('PREVNEXT_TITLE_PAGE_NO', 'Page %d');
define('PREVNEXT_TITLE_PREV_SET_OF_NO_PAGE', 'Previous Set of %d Pages');
define('PREVNEXT_TITLE_NEXT_SET_OF_NO_PAGE', 'Next Set of %d Pages');
define('PREVNEXT_BUTTON_FIRST', '<<FIRST');
define('PREVNEXT_BUTTON_PREV', '[<< Prev]');
define('PREVNEXT_BUTTON_NEXT', '[Next >>]');
define('PREVNEXT_BUTTON_LAST', 'LAST>>');

this seams to be what generates the prev next text. How do I get the define to display an image and keep the page numbers. Also how do you give the image mouse over description. I think this would make a great post. Thanks for any help, James

Try something like this:

define('PREVNEXT_TITLE_FIRST_PAGE', '<img src="https://www.YOURSITE.COM/includes/templates/YOURTEMPLATE/images/YOUR_IMAGE.GIF" class="THINK_UP_A_NEW_CLASS_SO_YOU_CAN_STYLE_IT"> PUT_TEXT_HERE_IF_NEEDED');

3 Jun 2009, 1:55 AM
#3
makoshark avatar

makoshark

Zen Follower

Join Date:
Jun 2007
Location:
Laurinburg, NC
Posts:
165
Plugin Contributions:
0

Post #3 by makoshark

limelites:

Try something like this:

define('PREVNEXT_TITLE_FIRST_PAGE', '<img src="https://www.YOURSITE.COM/includes/templates/YOURTEMPLATE/images/YOUR_IMAGE.GIF" class="THINK_UP_A_NEW_CLASS_SO_YOU_CAN_STYLE_IT"> PUT_TEXT_HERE_IF_NEEDED');
I remember a little from programing class, but I am not sure what you mean by give it a class and style it. please forgive me not knowing what is obvious to you and what I should have learned at University.

3 Jun 2009, 7:19 AM
#4
limelites avatar

limelites

Totally Zenned

Join Date:
Jan 2009
Posts:
2,085
Plugin Contributions:
0

Post #4 by limelites

Hi, I just mean call it something unique (give it a class) and style it in your stylesheet, something like this:

define('PREVNEXT_TITLE_NEXT_PAGE', '<img src="https://www.shop.nilandsplace.com/includes/templates/YOURTEMPLATE/images/next_page.gif" class="imgNextPage"> next page');

Then in your stylesheet:

#imgNextPage{float:right; padding:xxpx; }

17 Aug 2009, 5:50 AM
#5
makoshark avatar

makoshark

Zen Follower

Join Date:
Jun 2007
Location:
Laurinburg, NC
Posts:
165
Plugin Contributions:
0

Post #5 by makoshark

I got side tracked (installed Linux) and never did try you idea until today. I could not get the image to show. I tried it another way and still could not get it to work. It is not a dire need but I sure would like it. the images are about the same as the smilies on this forum. any help would be great