Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#13 2004-05-27 22:11:07

ramanan
Plugin Author
From: Toronto
Registered: 2004-03-12
Posts: 323
Website

Re: rsx_page_number

Hey. I’ve been a bit busy (lol) recently so I haven’t been looking at this. Fri, thanks for your ideas, I will probably work on this today and post something tonight.

Offline

#14 2004-05-27 23:44:59

ramanan
Plugin Author
From: Toronto
Registered: 2004-03-12
Posts: 323
Website

Re: rsx_page_number

I’ve updated the plugin. The link at the top should work, or just grab it from my site.

Offline

#15 2004-05-28 16:25:38

fri
Member
From: Denmark
Registered: 2004-04-30
Posts: 34
Website

Re: rsx_page_number

Dear Ramanam, (you have a classy site).

I’m so happy, and you are so clever.

I even dared to get my fingers durty in your code because it worked so well, exept fpr the links that forgot all about sections and categories – (present in some of my article lists).

So I looked a lot around and ended up writing “ s=’.$s.’&c=’.$c.’& “ in the beginning of each of the “href’s”.
Now, I have to tell it was very moving – because it worked! 8D :)

So I went on and put a “Page: “ in front of everything! and it looks very cute.

I’m running the messy urls on my localhost – do you think these added codebits will work on the clean urls as well?? (say yes..)

By the way, do you think one could have it working with article numbers the same way? If the “if_list_if_individual_tag” would work on the top of the articles too – this would be a nice toggle, don’t you think?

Thank you lots.

Last edited by fri (2004-05-28 16:26:40)

Offline

#16 2004-05-28 18:45:59

ramanan
Plugin Author
From: Toronto
Registered: 2004-03-12
Posts: 323
Website

Re: rsx_page_number

I can look into that later. Article numbers would be quite messy though, and I am under the impression they will no longer show up in URLs with the release of 1.19.

The changes you made should work with clean URLs as well. I’m actually not 100% sure though because the URLs are my site are all hacked up, and I don’t remmeber what normal clean URLs look like :)

Offline

#17 2004-06-26 13:04:04

gazetteer
New Member
From: UK
Registered: 2004-06-22
Posts: 5
Website

Re: rsx_page_number

I’m comming to this a bit late. Sorry!

Great plugin.

Is there a way of stopping the page number out-putting (using the numbered list) on a category when there is only one page as it does when you are on a single article page?

Last edited by gazetteer (2004-06-26 13:10:05)


Please be patient! It may take me a while to climb the learning curve.

Offline

#18 2004-06-26 18:24:58

ramanan
Plugin Author
From: Toronto
Registered: 2004-03-12
Posts: 323
Website

Re: rsx_page_number

Probably yes. I’ll look into it. So you want it to return nothing at all if there is only one page? Right now it would just display what, a 1?

Offline

#19 2004-06-27 11:32:09

gazetteer
New Member
From: UK
Registered: 2004-06-22
Posts: 5
Website

Re: rsx_page_number

Thanks for your reply.

I have made a minor change to your plugin so that it also outputs “Page:” before the page number so it looks like this “Page: 1, 2, 3”.

But it would be nice to just have nothing displayed when there is only 1 page as it doesn’t really have to say there is only 1 page. Like it does when you click on a permalink to article.

If you take a look at my site you’ll see what I mean.

Thanks.

Last edited by gazetteer (2004-06-27 11:36:15)


Please be patient! It may take me a while to climb the learning curve.

Offline

#20 2004-06-27 18:12:50

ramanan
Plugin Author
From: Toronto
Registered: 2004-03-12
Posts: 323
Website

Re: rsx_page_number

You shouldn’t need to modify the plugin to add Page: before the number listing, couldn’t you just write Page: before the tag itself. Something like:

Page: <txp:rsx_page_nav_list ... />

I’ll think about your other suggestion. I’ll try an add an option for that or something.

Offline

#21 2004-06-27 19:18:52

gazetteer
New Member
From: UK
Registered: 2004-06-22
Posts: 5
Website

Re: rsx_page_number

Yes I know, just can’t help but mess about and it seemed a good idea at the time:-)

Thanks for looking at it.


Please be patient! It may take me a while to climb the learning curve.

Offline

#22 2004-07-07 00:46:50

ramanan
Plugin Author
From: Toronto
Registered: 2004-03-12
Posts: 323
Website

Re: rsx_page_number

Hey, sorry this took so long. Anyways, I really don’t agree with what you wanna do with the navigation list, I think it should always display a page number. However, to get the effect you want, just:

Find:

<pre><code>
global $thispage;
</code></pre>

And add the following line of code:

<pre><code>
if ($numPages == 1) return ‘’;
</code></pre>

I believe that would do what you want. It will exit the plugin early if there is only one page to be displayed. Hope that helps.

Last edited by ramanan (2004-07-07 00:50:27)

Offline

#23 2004-07-20 10:46:48

gazetteer
New Member
From: UK
Registered: 2004-06-22
Posts: 5
Website

Re: rsx_page_number

To be honest I don’t know what I want yet!

I have been busy fighting against textpattern rather than working with it. And almost gave up! It is not like other systems like WP and MT etc. I didn’t understand the way it worked.

I have been round the houses and tried a few other things out and it has took me a while to realise that textpattern is the way to go.

I’m not currently using textpattern on my website as I need to learn a bit before I go live with it, but it is installed on my local server while I play and figure it all out.

Many thanks for your help.


Please be patient! It may take me a while to climb the learning curve.

Offline

#24 2004-08-10 23:27:12

feiliao
New Member
Registered: 2004-08-06
Posts: 9
Website

Re: rsx_page_number

Dear Ramanam, I am using txp:rsx_page_number_list / at my “default” page. When it is used at the main page, everything is fine. But when used at the category page, the link only goes to http://blahblah/?pg=2, instead of http://blahblah/?pg=2&c=blah…

Would you please to fix this little bug? I really like the way this script works. Thank you very much!

Offline

Board footer

Powered by FluxBB