Knowledgebase: Tips and Tricks
Pagination in the Title Tab
Posted by Stacey Atkins, Last modified by Stacey Atkins on 08 November 2012 01:03 PM

If you are looking to have the page number for the pagination display in the title tab in your browser on the Category Display (CTGY) or All Products (PLST) page the following code will help you acheive it. 

 

CSSUI Framework

Code for PLST:

<title>&mvt:page:name Page &mvt:all_products:page_links:current_page;</title>

 

Code for CTGY:

<title>&mvt:category:name; Page &mvt:category_listing:page_links:current_page; </title>

 

 

MMUI Framework

Code for PLST:

 <title>&mvt:page:name Page &mvt:product_list:page_links:current_page;</title>

 

Code for CTGY:

<title>&mvt:category:name; Page &mvt:product_list:page_links:current_page;</title>

 

 

 

If you would like the page number to display in the title tab on pages other than the first page you'll need to use some more logic in the code, like the code below for example:

 

 

CSSUI Framework

Code for PLST:

<mvt:if expr="l.settings:all_products:page_links:current_page GT 1">

<title>&mvt:page:name Page &mvt:all_products:page_links:current_page;</title>

<mvt:else>

<title>&mvt:page:name</title>

</mvt:if>

 

 

Code for CTGY:

<mvt:if expr="l.settings:category_listing:page_links:current_page GT 1">

<title>&mvt:category:name; Page &mvt:category_listing:page_links:current_page; </title>

<mvt:else>

<title>&mvt:category:name;</title>

</mvt:if>

 

 

 

 

MMUI Framework

Code for PLST:

<mvt:if expr="l.settings:product_list:page_links:current_page GT 1">

<title>&mvt:page:name Page &mvt:product_list:page_links:current_page;</title>

<mvt:else>

<title>&mvt:page:name</title>

</mvt:if>

 

 

 

Code for CTGY:

<mvt:if expr="l.settings:product_list:page_links:current_page GT 1">

<title>&mvt:category:name; Page &mvt:product_list:page_links:current_page;</title>

<mvt:else>

<title>&mvt:category:name;</title>

</mvt:if>

 

Note: The code in this article was written for MMUI & CSSUI stores running Miva Merchant 5.5 Production Release 8 Update 7.  Please be sure to copy the code for your existing framework. If you do not know how to check your framework version please view this article, How to Check Your Miva Merchant Framework Version.

(0 vote(s))
This article was helpful
This article was not helpful

Comments (0)
Post a new comment
 
 
Full Name:
Email:
Comments:
CAPTCHA Verification 
 
Please enter the text you see in the image into the textbox below. This is required to prevent automated registrations and form submissions.

Help Desk Software by Kayako support.miva.com/supportsuite/index.php?