Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#121 2008-05-14 13:46:21

obeewan
Archived Plugin Author
From: Stockholm, Sweden
Registered: 2004-08-12
Posts: 319
Website

Re: [plugin] [ORPHAN] ob1_pagination

To all,
I apologize for the documentation beeing in error. I will fix it (and apply the fix Ruud wrote about) the coming weekend.


Plugins: ob1_advanced_search 1.032b, ob1_search_score 1.0, ob1_pagination 2.5, ob1_title 4.1, ob1_modified 2.1

“Let your plans be dark and as impenetratable as night, and when you move, fall like a thunderbolt.”
— Sun Tzu

Offline

#122 2008-07-08 19:50:10

gesiwuj
Member
Registered: 2008-07-01
Posts: 20

Re: [plugin] [ORPHAN] ob1_pagination

Great plugin… working great except for one thing. I’m using it for an archives page (so each page of archives has a button). The problem is that I only have two pages (from six articles) at the moment but it’s showing six buttons (ie: the number of articles) – basically, I need it to show only the number of pages that actually exist. Visiting past Page 2 gives me the basic template without the articles.

I tried RsQ’s solution on Page 5 but this didn’t seem to work (it kept saying, it’s trying to divide by 0… which of course leads to a maths error). I reverted back to the actually functional (but problematic) version.

At the moment I have an equal number of articles on each page, but ideally I would want fewer on page 1 (as it has some details etc.).

Please help, magical TextPattern community!

Offline

#123 2008-07-17 07:29:31

damienbuckley
Member
From: Brisbane, QLD, AU
Registered: 2006-02-24
Posts: 138
Website

Re: [plugin] [ORPHAN] ob1_pagination

This doesnt seem to work at all in 4.0.7 – I installed it and when I included the tag in a form it said the tag didnt exist. Anyone else come across this problem?

Offline

#124 2008-07-17 07:42:02

jstubbs
Member
From: Hong Kong
Registered: 2004-12-13
Posts: 2,395
Website

Re: [plugin] [ORPHAN] ob1_pagination

Damien, think that the plugin uses an old tag reference, before it was renamed to ob1_pagination.

This is what you need:

<txp:ob1_pagination firsttext="First page" previoustext="Previous page" nexttext="Next page" lasttext="Last page" ulclass="pagination" />

Offline

#125 2008-07-17 07:43:22

jstubbs
Member
From: Hong Kong
Registered: 2004-12-13
Posts: 2,395
Website

Re: [plugin] [ORPHAN] ob1_pagination

I was right – in ob1_pagination the example has this, which is incorrect:

<txp:ob1_googlenav firsttext="First" previoustext="Previous" nexttext="Next" lasttext="Last" />

Offline

#126 2008-07-17 07:49:59

the_ghost
Plugin Author
From: Minsk, The Republic of Belarus
Registered: 2007-07-26
Posts: 907
Website

Re: [plugin] [ORPHAN] ob1_pagination

I use this code for pagination (chh_if_data is used to render wrapping donly if pagination exists):

<txp:chh_if_data>

<div class="pagination">
<txp:if_article_list>
<txp:ob1_pagination ulid="pagination"
	linkcurrent="0" 
	outputlastfirst="1"
	liempty="empty"
	liselected="current"

	pagetext="Page"
	firsttext="&lt;&lt; First"
	firsttexttitle="First page in list" 

	previoustext="&lt; Back" 
	previoustexttitle="Prev page in list" 

	nexttext="Forward &gt;"
	nexttexttitle="Next page in list"

	lasttext="Last &gt;&gt;" 
	lasttexttitle="Last page in list" />
</div>
</txp:if_article_list>

</txp:chh_if_data>

Providing help in hacking ATM! Come to courses and don’t forget to bring us notebook and hammer! What for notebook? What a kind of hacker you are without notebok?

Offline

#127 2008-07-18 03:18:44

damienbuckley
Member
From: Brisbane, QLD, AU
Registered: 2006-02-24
Posts: 138
Website

Re: [plugin] [ORPHAN] ob1_pagination

jstubbs wrote:

Damien, think that the plugin uses an old tag reference, before it was renamed to ob1_pagination.

This is what you need:

<txp:ob1_pagination firsttext="First page" previoustext="Previous page" nexttext="Next page" lasttext="Last page" ulclass="pagination" />
Thanks mate - I figured that out about 5 mins after posting that - doh! - The plugin's 'view' file needs updating as I nearly wrote it off with this problem.

Offline

#128 2008-09-25 06:16:11

roelof
Member
Registered: 2005-03-27
Posts: 647

Re: [plugin] [ORPHAN] ob1_pagination

Hello,

Maybe this plugin can be something for my site.
What i need is code like this :

<UL id=navlist> <LI id=active><A id=current href=”****”>1</A> <LI><A href=”**”>2</A> <LI><A href=”*****”>3</A> <LI><A href=”***”>4</A> <LI><A href=”***”>5</A> <LI><A href=”****”>6</A> <LI><A href=”***”>7</A> <LI><A href=”*****”>8</A> <LI><A href=”*****”>Volgende</A>
</LI></UL

Can this plugin makes such a code.

Roelof

Offline

#129 2008-09-25 23:24:13

gomedia
Plugin Author
Registered: 2008-06-01
Posts: 1,373

Re: [plugin] [ORPHAN] ob1_pagination

Would <txp:section_list/> be what you’re looking for?

Offline

#130 2008-09-26 06:49:26

roelof
Member
Registered: 2005-03-27
Posts: 647

Re: [plugin] [ORPHAN] ob1_pagination

Nope,

The url must look like this : http://www.tamarawobben.nl/?c=jaar1&month=2004-07&pg=2

Roelof

Offline

#131 2008-09-30 17:36:31

roelof
Member
Registered: 2005-03-27
Posts: 647

Re: [plugin] [ORPHAN] ob1_pagination

Can i have this plugin without the next, prev, first and last tag.
So only the numbers ?

Roelof

Offline

#132 2008-09-30 18:17:38

jstubbs
Member
From: Hong Kong
Registered: 2004-12-13
Posts: 2,395
Website

Re: [plugin] [ORPHAN] ob1_pagination

Have you tried something like:

<txp:ob1_pagination firsttext="" previoustext="" nexttext="" lasttext="" />

Offline

Board footer

Powered by FluxBB