Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
#49 2007-09-05 20:05:15
- progre55
- Member
- Registered: 2006-05-02
- Posts: 668
Re: [plugin] [ORPHAN] jk_neighbour: just like link_to_next/prev, only a bit better
Jeff:
Sorry for the delay. I am going to work on it tonight and let you know what I come up with …
progre55
Offline
#50 2007-09-06 00:26:44
- progre55
- Member
- Registered: 2006-05-02
- Posts: 668
Re: [plugin] [ORPHAN] jk_neighbour: just like link_to_next/prev, only a bit better
Jeff:
I am ridiculous and you hit the nail right on the head. My problem was that I was selecting the wrong custom field. The plug in works great when you use it correctly. SORRY.
I do have one question, is it at all possible to “sort by” two custom fields. I know the plug in is designed to stay within the same section. I also know that you can limit it to a particular category. What I would like to do (and what I have done) is divided the information (articles) by assigning different properties using the custom fields. So in my case, I want to “sort by” price and then by a secondary custom field.
I tried “sort by” using commas to sepearet values, but no luck.
Again, sorry for the confusion in my brain.
progre55
Offline
Re: [plugin] [ORPHAN] jk_neighbour: just like link_to_next/prev, only a bit better
As I reported in this other thread, I needed to have custom class and title attributes for the next and previous link functions. I started with this plugin and hacked myself a solution. While I was at it I fixed the bug that had the sortby argument defaulting to “title”. For compatibility it should be “posted”.
Thanks for the code. I am a total newbie so it was useful.
robin
Offline
Re: [plugin] [ORPHAN] jk_neighbour: just like link_to_next/prev, only a bit better
Thanks for the note Robin. Glad it was useful.
I am not sure if I would call the “title” defaulting a bug though. Defaulting to “posted” renders the plugin identical to link_to_next
and link_to_prev
and thus pretty unnecessary.
Offline
Re: [plugin] [ORPHAN] jk_neighbour: just like link_to_next/prev, only a bit better
To me that is what “default” means… that the usual expected results would be returned. Maybe not a bug but a difference of interpretation.
robin
Offline
Re: [plugin] [ORPHAN] jk_neighbour: just like link_to_next/prev, only a bit better
Any ideas how I can exclude an article by by using a second category?
The logic would be…
Navigate all articles in category1 but not ones that have a value of “exclude” for category2.
CHeers,
Lawrence
Offline
#55 2007-11-02 15:49:47
- progre55
- Member
- Registered: 2006-05-02
- Posts: 668
Re: [plugin] [ORPHAN] jk_neighbour: just like link_to_next/prev, only a bit better
Jeff:
Sorry for my last issue and mistake, but I was hoping you have an answer to this question:
- Is it at all possible to “sort by” two custom fields. I know the plug in is designed to stay within the same section :)
- I also know that you can limit it to a particular category. :)
- For this project, what I have done is divide the information (articles) by assigning different properties using the custom fields. So in my case, I want to “sort by” price and then by a secondary custom field.
I tried “sort by” using commas to sepearet values, but no luck.
Why I need to do this: The reason is that I am running a search that returns a list of articles, but all the articles fall into the same section. I am filtering like I mentioned by Price, but I also need it to keep within the same group (ie custom field) that the search was run on.
Thank you or Anyone else who may be able to give some insight.
progre55
Offline
Re: [plugin] [ORPHAN] jk_neighbour: just like link_to_next/prev, only a bit better
I will see what I can do. Shouldn’t take too long to implement. I will try to whip something up for Sunday night.
Offline
#57 2007-11-05 04:23:32
- progre55
- Member
- Registered: 2006-05-02
- Posts: 668
Re: [plugin] [ORPHAN] jk_neighbour: just like link_to_next/prev, only a bit better
Jeff:
THANK YOU. I look forward to testing it out.
You Rock.
progre55
Last edited by progre55 (2007-11-05 04:24:02)
Offline
#58 2007-11-09 22:15:15
- progre55
- Member
- Registered: 2006-05-02
- Posts: 668
Re: [plugin] [ORPHAN] jk_neighbour: just like link_to_next/prev, only a bit better
Jeff:
Any luck?
Thanks.
progre55
Offline
Re: [plugin] [ORPHAN] jk_neighbour: just like link_to_next/prev, only a bit better
Hey Progre. Don’t have any time to test this, but this might work. Let me know, and I will release it properly (or fix bugs as the case may be). Post any queries if things don’t work.
Jeff
Offline
Re: [plugin] [ORPHAN] jk_neighbour: just like link_to_next/prev, only a bit better
Progre, A little feedback would be nice seeing as I took the time to write this code for you…
Offline