Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Re: gbp_permanent_links
Zanza wrote:
Hello Graeme. I’m trying to understand how your plugin works, and as far as I understand it seems to work only with article categories. For my site (and for image portfolios in general) it could be useful to deal also with image categories. I can think also of dealing with download (file) categories. Do you think this is possible or that would be possible in the future?
Thank a lot, I love the new interface!
Yes – your understand is correct. It works with article categories but not images or files categories. It might be possible but I have not looked it into yet. I will. It would be a good feature to have.
I’m please you and the others like the plugin useful. :)
Offline
#17 2006-10-09 06:13:37
- mstwntd
- Member

- From: Melbourne, Australia
- Registered: 2004-12-25
- Posts: 52
Re: gbp_permanent_links
Hi Graeme,
Thank you kindly for this magnificent plug-in. Great interface too!
Small issue:
On individual article pages, the <txp:link_to_next> / <txp:link_to_prev> tags don’t generate anything when accessed through a custom permalink.
Here’s how I currently have them set up (4.04 RC1):
<ul>
<txp:chh_if_data><li title="Next entry"><txp:link_to_next><txp:next_title /></txp:link_to_next></li></txp:chh_if_data>
<txp:chh_if_data><li title="Previous entry"><txp:link_to_prev><txp:prev_title /></txp:link_to_prev></li></txp:chh_if_data>
</ul>
Oh, and another thing. When date is used as part of a permalink, it displays %2F’s in the url, like:
http://www.example.com/article/2/2006%2F09%2F02/fames-ac-turpis/
Regards,
Last edited by mstwntd (2006-10-09 06:31:18)
Offline
Re: gbp_permanent_links
Graeme, I’m trying to use this to create section/year/month/day/title/ style links in a news section, but keeping the default section/title elsewhere. I’ve created a rule and specified that it only occurs with the news section, but all permalinks are being rewritten to the section/year/month/day/title/ scheme. Can you see where I’m going wrong?
Cheers,
Jon VC#9
Offline
Re: gbp_permanent_links
Hi! I’m going for the default section/category/title, however it’s not working quite right.
This is for a gallery section, I’m hoping the process can work something like this:
1. user enters the gallery section
site_url/gallery
2. user clicks a category (paintings, illustrations, etc..)
site_url/gallery/category
3. user clicks an article (piece of artwork, etc..)
site_url/gallery/category/title
But at the moment, when I click a category within the gallery section, the URL looks like:
site_url/gallery/category/category
Which of course results in a 404. I think I am using the plugin defaults (set to the “gallery” section only). Is this something I am doing wrong? What can I do to get this working?
And thanks Graeme! This plugin looks to be a very impressive piece of work!!
Last edited by rloaderro (2006-10-09 16:35:42)
Travel Atlas * Org | Start Somewhere
Offline
Re: gbp_permanent_links
Egor, Jon, Aeron,
Interesting issues. The good news is that I can reproduce them and they should be easy fixes.
The bad news is that I won’t be able to do anything until tomorrow evening.
Thanks for the bug reports. :-)
Offline
#21 2006-10-10 12:49:56
- mstwntd
- Member

- From: Melbourne, Australia
- Registered: 2004-12-25
- Posts: 52
Re: gbp_permanent_links
graeme wrote:
The good news is that I can reproduce them and they should be easy fixes.
Yay.
Offline
Re: gbp_permanent_links
gbp_permanent_links v0.7
Egor and Jon,
I’m pretty sure your problems are fixed
Aeron,
I thought I could reproduce your bug but I’m having trouble doing so now. Would you please check the new version.
And if you are still having trouble could you send me debugging output – it is the HTML comments at the top of your file. You will need to make sure you are on either testing or debugging production status and also to enable the debug option in gbp_permanent_links’ preferences.
Many thanks.
Last edited by graeme (2006-10-18 15:39:14)
Offline
Re: gbp_permanent_links
thanks for the update, works perfect for me.
Offline
Re: gbp_permanent_links
Thanks Graeme – all working great!
Cheers,
Jon VC#9
Offline
#25 2006-10-11 04:22:01
- mstwntd
- Member

- From: Melbourne, Australia
- Registered: 2004-12-25
- Posts: 52
Re: gbp_permanent_links
jonhicks wrote:
Thanks Graeme – all working great!
Ditto. Thanks heaps Graeme!
Offline
Re: gbp_permanent_links
Well I played around with it some more and waited to see any bug reports in here before moving my live site over to it from your old plugin, and everything works great. Thanks again for this wonderful plugin.
It’s a lot easier to use and setup schemes. I love how all the standard txp tags now work without having to use your old custom ones for the older plugin. The search results also bring back the correct urls as well, something I never got the old one to do.
Awesome.
Offline
#27 2006-10-12 19:21:11
- els
- Moderator

- From: The Netherlands
- Registered: 2004-06-06
- Posts: 7,458
Re: gbp_permanent_links
This is a great plugin, and if others can get it to work exactly as they want I’m sure I will some day ;) But at the moment I have two questions:
1. I set up two permanent links, one /section/title for one particular section, and the other is /section/category/title for the other sections. This is working fine. But… when I’m on a section page or an individual article page, all my category links generated by <txp:category_list /> and <txp:category1 link="1" /> change to /section/. Why is that?
2. Is it only possible to create permanent links for articles? Because I tried to set up /section/category/ for category pages, and when I manually type in the url it goes to the right page, but it doesn’t change the links that are generated by TXP tags, they remain /category/category-name. I suppose this has something to do with my still not fully understanding the ‘forward’ and ‘redirect’ options…? Do I have to enter something there?
Offline
Re: gbp_permanent_links
Els wrote:
This is a great plugin, and if others can get it to work exactly as they want I’m sure I will some day ;) But at the moment I have two questions:
1. I set up two permanent links, one /section/title for one particular section, and the other is /section/category/title for the other sections. This is working fine. But… when I’m on a section page or an individual article page, all my category links generated by
<txp:category_list />and<txp:category1 link="1" />change to /section/. Why is that?2. Is it only possible to create permanent links for articles? Because I tried to set up /section/category/ for category pages, and when I manually type in the url it goes to the right page, but it doesn’t change the links that are generated by TXP tags, they remain /category/category-name. I suppose this has something to do with my still not fully understanding the ‘forward’ and ‘redirect’ options…? Do I have to enter something there?
I have already fixed both these issues. There are related to the bug Aeron reported. I just need some time to do more testing to make sure it doesn’t break anything. Tomorrow.
You don’t need to use the ‘forward’ and ‘redirect’ options. They are only useful you want more control over which rule is used within certain sections or categories.
Offline
#29 2006-10-12 19:36:32
- els
- Moderator

- From: The Netherlands
- Registered: 2004-06-06
- Posts: 7,458
Re: gbp_permanent_links
Thanks! :)
Offline
Re: gbp_permanent_links
This release includes bug fixes when dealing with conditions rules which were reported by Els.
Thanks for all the kind words everyone has left here.
Offline