Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
#145 2008-10-10 18:08:46
- roelof
- Member
- Registered: 2005-03-27
- Posts: 647
Re: [plugin] [ORPHAN] ob1_pagination
oke,
I didn’t saw it.
But my orginal problem is not solved by this.
I don’t know how to make a id or a class with the <a> tag.
Roelof
Offline
#146 2008-11-19 13:34:38
- roelof
- Member
- Registered: 2005-03-27
- Posts: 647
Re: [plugin] [ORPHAN] ob1_pagination
Hello,
In 4.0.7 i have this page template :
<txp:smd_if field="urlvar:month, urlvar:pg" operator="eq,undefined" value="2005-04">
<txp:article limit="1" form="dagboek" sort="Posted asc" />
<txp:ob1_pagination outputlastfirst ="0" outputnextprevious="0" />
<txp:else />
<txp:smd_if field="urlvar:month, urlvar:pg" operator="eq,eq" value="2005-04, 1">
<txp:article limit="1" form="dagboek" sort="Posted asc" />
<txp:ob1_pagination outputlastfirst ="0" outputnextprevious="0" />
<txp:else />
<txp:smd_if field="urlvar:month" operator="eq" value="2005-04">
<txp:article limit="3" form="dagboek" offset="-2" sort="Posted asc" />
<txp:ob1_pagination outputlastfirst ="0" outputnextprevious="0" />
</txp:smd_if>
</txp:smd_if>
</txp:smd_if>
So you can see there are different number of articles on different pages.
But now ob1-pagination says different number of pages on different pages.
Does anyone know how to tackle this problem.
Roelof
Edit :
1 solution to this problem. to make a new tag let’s say pages and let the script read it instead of caluculating how much pages there must be.
So : txp:ob1_pagination outputlastfirst =“0” outputnextprevious=“0” pages=3/>
There are 3 pages with articles.
But i don’t know if this can be easily changed because im not a progammer.
Last edited by roelof (2008-11-19 16:28:20)
Offline
#147 2008-12-24 00:55:06
Re: [plugin] [ORPHAN] ob1_pagination
Hi Henrik,
I recently updated one of my sites to Txp 4.0.7 and MLP 0.9.11.
I use ob1_pagination and the section is now not included in the navigation links of ob1_pagination. This could be a problem with MLP and not ob1_pagination, I am not sure.
The links in ob1_pagination should be:
http://ikjeld.com/en/[section name]/?pg=2
http://ikjeld.com/en/[section name]/?pg=3
http://ikjeld.com/en/[section name]/?pg=4
But now they are:
http://ikjeld.com/en/?pg=2
http://ikjeld.com/en/?pg=3
http://ikjeld.com/en/?pg=4, etc.
I have the same problem in the pagination links in result pages created with chh_keywords.
See for yourself at ikjeld.com
Do you think it is an MLP or ob1_pagination issue?
• Old Photos of Japan – Japan in the 1850s~1960s (100% txp)
• MeijiShowa – Stock photos of Japan in the 1850s~1960s (100% txp)
• JapaneseStreets.com – Japanese street fashion (mostly txp)
Offline
#148 2009-02-02 15:37:28
- ig0r
- Member
- Registered: 2009-01-26
- Posts: 13
Re: [plugin] [ORPHAN] ob1_pagination
Hi!
I’ve installed this plugin, but having some problems. I have this code:
<txp:article_custom category=“one” limit=“2” form=“read” />
<txp:ob1_pagination firsttext=“First page” previoustext=“Previous page” nexttext=“Next page” lasttext=“Last page” ulclass=“pagination” liselected=“active” />
But pagination isn’t showing! Not digits nor “First page”/“Last page” What can be the problem? I’ve installed it correctly. There is more articles then 2 I’m sure.
And no errors are showing up :(
Last edited by ig0r (2009-02-04 22:37:28)
Offline
#149 2009-02-04 20:54:57
- ig0r
- Member
- Registered: 2009-01-26
- Posts: 13
Re: [plugin] [ORPHAN] ob1_pagination
So it doesn’t support article_custom tag?
So bad :(
Last edited by ig0r (2009-02-04 22:37:53)
Offline
#150 2009-03-29 10:00:14
Re: [plugin] [ORPHAN] ob1_pagination
For some reason I can’t get this to work…
My code is:
<txp:ob1_pagination firsttext="First page" previoustext="Previous page" nexttext="Next page" lasttext="Last page" ulclass="pagination" liselected="active" />
Is there anything wrong with it? And if not, what could be the issue? Is this plugin known to conflict with others?
Cheers
Admin Themes Prometheus | Stung | <txp:coder/
My Portfolio | ɹǝpuɐz.com | @MrMartineau
<txp:coder /> – Convert your designs into Textpattern-based websites
jQuery Style | @jquerystyle
Offline
#151 2009-03-29 10:08:46
Re: [plugin] [ORPHAN] ob1_pagination
rathersplendid:
- do you use pagination with txp:article tag, not txp:article_custom?
- try to use plugin without attributes, i.e.
<txp:ob1_pagination />
- try to disable all plugins and then enable them one by one to see if one of them influences ob1_pagination
Last edited by the_ghost (2009-03-29 10:09:05)
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
#152 2009-03-30 07:34:22
Re: [plugin] [ORPHAN] ob1_pagination
At the moment, I am using chh_article_custom to display my articles. I may switch to the txp default article tag and see how I manage.
Thanks
Admin Themes Prometheus | Stung | <txp:coder/
My Portfolio | ɹǝpuɐz.com | @MrMartineau
<txp:coder /> – Convert your designs into Textpattern-based websites
jQuery Style | @jquerystyle
Offline
#153 2009-03-30 09:27:39
Re: [plugin] [ORPHAN] ob1_pagination
I have made the switch and it’s working now.
Annoying that I can’t use the chh_article_custom plugin..
Admin Themes Prometheus | Stung | <txp:coder/
My Portfolio | ɹǝpuɐz.com | @MrMartineau
<txp:coder /> – Convert your designs into Textpattern-based websites
jQuery Style | @jquerystyle
Offline
#154 2009-06-04 15:00:41
Re: [plugin] [ORPHAN] ob1_pagination
Would it be possible to have an option whereby you can show say pages 1-5 and then say you had 50 pages, page 50 and then … in between.
Check http://www.vimeo.com/ and look at the bottom pagination to see what i mean.
~ Cameron
Offline
#155 2009-06-04 15:23:29
Re: [plugin] [ORPHAN] ob1_pagination
driz wrote:
Would it be possible to have an option whereby you can show say pages 1-5 and then say you had 50 pages, page 50 and then … in between.
I don’t think this plugin can do that (willing to be proved wrong). But I’ve implemented something similar in the paging segment of smd_gallery — in fact, it was originally based on ob1_pagination. You can specify how many pages either side of the current page to show. Adding ‘First’ and ‘Last’ links to bookend the nav area means you’re most of the way there. e.g. First << 5 6 7 8 9 >> Last
if you were on page 7 and wanted 2 either side.
If you’re handy with PHP you could have a go at hacking what I’ve done into ob1_pagination.
Last edited by Bloke (2009-06-04 15:25:34)
The smd plugin menagerie — for when you need one more gribble of power from Textpattern. Bleeding-edge code available on GitHub.
Txp Builders – finely-crafted code, design and Txp
Offline
#156 2009-06-04 21:34:25
- els
- Moderator
- From: The Netherlands
- Registered: 2004-06-06
- Posts: 7,458
Re: [plugin] [ORPHAN] ob1_pagination
driz wrote:
Would it be possible to have an option whereby you can show say pages 1-5 and then say you had 50 pages, page 50 and then … in between.
driz, rsx_page_number can do that.
Offline