PDA

View Full Version : Page navigate in category


collins
12-27-2007, 07:35 PM
in the search page, there have a page navigate, you can jump to another page when click the page number.

but in the category , haven't Page navigate.

how shall i modify the templates to add the page navigate ? anybody can help me ?

i try to copy the search page's page navigate code to the category, but it don't work.

the code in the search page like this : <vte:load module="box_pagination" list="{article_list_object}" />
________
G (http://www.toyota-wiki.com/wiki/Subaru_G)
________
I Inhale Vaporizer Reviews (http://vaporizer.org/reviews)

andy77
12-27-2007, 08:22 PM
http://www.vivvo.net/forums/showthread.php?p=5703#post5703

collins
12-28-2007, 02:59 AM
Thanks for you help.

in fact , i already tried this , but i got a problems. it didn't work, no any number response , it just display like this. :


-------------------------------
total: | displaying:
-------------------------------

could you tell me what's the problem , is it because the ViVVO version ?

now i use Vivvo CMS v4.0.1 (build 2341)
________
FORD XY FALCON GT SPECIFICATIONS (http://www.ford-wiki.com/wiki/Ford_XY_Falcon_GT)
________
New relationship advice forums (http://www.love-help.org/new-relationship-advice/)

maithily
12-28-2007, 03:54 AM
Add following code in in your template file category/default.tpl


<vte:load module="box_pagination" list="{article_list_object}" />

see below code for example

<div id="box_center_holder">
<vte:include file="{VIVVO_TEMPLATE_DIR}box/category_breadcrumb.tpl" />
<vte:box module="box_article_list" params = "{content_params}">
<vte:template>

<div id="category_holder">
<vte:if test="{PAGE_TITLE}">
<h1>
<vte:value select="{PAGE_TITLE}" />
</h1>
</vte:if>
<div class="box_body">
<vte:if test="{article_list}">
<vte:foreach item = "article" from = "{article_list}" start="1" loop="1">
<vte:include file="{VIVVO_TEMPLATE_DIR}summary/vertical.tpl" image_size="article_small" />
</vte:foreach>
<vte:foreach item = "article" from = "{article_list}" start="2">
<vte:include file="{VIVVO_TEMPLATE_DIR}summary/default.tpl" />
</vte:foreach>
<vte:include file="{VIVVO_TEMPLATE_DIR}box/subcategory_headlines.tpl" />
<vte:else>
<vte:value select="{LNG_NO_ENTRIES}" />
</vte:else>
</vte:if>
</div>
</div>
<vte:load module="box_pagination" list="{article_list_object}" />
</vte:template>
</vte:box>
</div>

shketuljko
12-28-2007, 08:07 AM
Please provide us url of your site.

collins
01-07-2008, 04:24 AM
Hayy New year !

Attach is the pic about the problem. this pics showed when i visit the page /index.php?category=1 .

i already add the code <vte:load module="box_pagination" list="{article_list_object}" /> into the template , but it works like this .

how shall i fix it ?

Thanks.
________
BBW VIDS (http://www.fucktube.com/categories/7/bbw/videos/1)
________
Hot Box Vape (http://hotboxvaporizers.com)

Micha
01-08-2008, 08:42 AM
Make sure that your <vte:load module="box_pagination" list="{article_list_object}" /> is inside <div id="category_holder">.

It should work.

collins
01-08-2008, 06:45 PM
i use follow code , it can works!:) i don't know why, but i am very happy . hahaha!! :D thanks all .

<span class="box_pagination">
<vte:load module="box_pagination" list="{article_list_object}" max_page="5" />
</span>
________
Ail Storm (http://www.dodge-wiki.com/wiki/AIL_Storm)
________
Honda rc111 (http://www.cyclechaos.com/wiki/Honda_RC111)