Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#136 2008-10-01 12:54:58

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

Re: [plugin] [ORPHAN] ob1_pagination

Hello,

I have one question.
For the pagination i need that this in html :

<LI id=active><A id=current href=“http://tygoborst.nl/gastenboek#”>1</A>

How can i make the id in the a tag ?

Roelof

Offline

#137 2008-10-10 08:47:03

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

Re: [plugin] [ORPHAN] ob1_pagination

Nobody ??

Roelof

Offline

#138 2008-10-10 09:14:27

paperboy
Member
From: Gothenburg, SE
Registered: 2006-01-24
Posts: 30
Website

Re: [plugin] [ORPHAN] ob1_pagination

You can add a class for the active li <txp:ob1_pagination liselected=“active” /> to get <li class=“active”> </li>.

Offline

#139 2008-10-10 11:48:13

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

Re: [plugin] [ORPHAN] ob1_pagination

Thank you for the help, but that part is not the problem.
I need the < a id=current > otherwise a lot of css doesn’t work.

Roelof

Offline

#140 2008-10-10 12:18:57

Bloke
Developer
From: Leeds, UK
Registered: 2006-01-29
Posts: 12,443
Website GitHub

Re: [plugin] [ORPHAN] ob1_pagination

roelof wrote:

I need the < a id=current > otherwise a lot of css doesn’t work.

I know it’s not an ‘answer’ to your problem, but can’t you change the CSS from #current to .current and use a class? Using an ID for an active marker is not ideal in case you ever have more than one on a page.


The smd plugin menagerie — for when you need one more gribble of power from Textpattern. Bleeding-edge code available on GitHub.

Hire Txp Builders – finely-crafted code, design and Txp

Offline

#141 2008-10-10 13:29:16

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

Re: [plugin] [ORPHAN] ob1_pagination

Hello Bloke,

I can be a solution.
But how “must” I change this bit of the css.
bc. #navlist A#current:link { BACKGROUND: none transparent scroll repeat 0% 0%; PADDING-BOTTOM: 2px; COLOR: #93425a; BORDER-BOTTOM: #000 4px solid
}
#navlist A#current:visited { BACKGROUND: none transparent scroll repeat 0% 0%; PADDING-BOTTOM: 2px; COLOR: #93425a; BORDER-BOTTOM: #000 4px solid
}

Roelof

Offline

#142 2008-10-10 13:51:13

Bloke
Developer
From: Leeds, UK
Registered: 2006-01-29
Posts: 12,443
Website GitHub

Re: [plugin] [ORPHAN] ob1_pagination

#navlist A .current:link {
	BACKGROUND: none transparent scroll repeat 0% 0%; PADDING-BOTTOM: 2px; COLOR: #93425a; BORDER-BOTTOM: #000 4px solid
}
#navlist A .current:visited {
	BACKGROUND: none transparent scroll repeat 0% 0%; PADDING-BOTTOM: 2px; COLOR: #93425a; BORDER-BOTTOM: #000 4px solid
}

?


The smd plugin menagerie — for when you need one more gribble of power from Textpattern. Bleeding-edge code available on GitHub.

Hire Txp Builders – finely-crafted code, design and Txp

Offline

#143 2008-10-10 17:36:12

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

Re: [plugin] [ORPHAN] ob1_pagination

Hoi Bloke,

Strange, when you change something from a class to a id i allways thougt that something has to change in the css.

Roelof

Offline

#144 2008-10-10 17:44:44

paperboy
Member
From: Gothenburg, SE
Registered: 2006-01-24
Posts: 30
Website

Re: [plugin] [ORPHAN] ob1_pagination

???

That’s what he meant, change the # to a . (dot) in the CSS if you are going to use class=“active” instead of id=“active”.

Last edited by paperboy (2008-10-10 17:45:24)

Offline

#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

Kjeld
Member
From: Tokyo, Japan
Registered: 2005-02-05
Posts: 465
Website

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

rathersplendid
Plugin Author
From: London
Registered: 2008-05-02
Posts: 163
Website

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

Board footer

Powered by FluxBB