Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Re: gbp_permanent_links
no worries. this isn’t a rush at all and can wait. just curious as to where it stood. haven’t tested with this new version but with .8 i couldn’t get it working.
Offline
#74 2006-12-07 22:38:33
- ghz
- New Member
- From: Budapest, Hungary
- Registered: 2006-10-10
- Posts: 4
Re: gbp_permanent_links
hi,
i have just tried this plugin to allow permanent links just like in movabletype. (yes. i have just switched from it due to several reasons.)
the default textpattern link is: section/id/title/
i have set up a new permanent link: section/year/month/title/
i’d like to use it for section ‘blog’ so in conditions and destination i have set ‘blog’. (nothing else.)
http://site.tld/blog/303/he is working (imho it must because of being txp default)
http://site.tld/blog/2006/07/he (gives me 404)
here you can see the debug output:
http://pastebin.co.uk/7175
i am sure it is my fault but i do not really understand how this thing is working. can someone tell me how to set up permanent links for this simple situation?
regards,
andras
Offline
Re: gbp_permanent_links
i am sure it is my fault but i do not really understand how this thing is working. can someone tell me how to set up permanent links for this simple situation?
@Andras, It should be working – I can’t reproduce this. Very strange.
Your debugging was helpful but I can’t see exactly why it is failing. I suspect it is to do with the conditions settings. Will you be able to install 0.11b as I have added more debugging to help find out what is going on.
@Lee, I wasn’t very successful with getting sub-sections working. It’ll require some changes to the plugin. I’m not quite sure how it’ll work yet but I would like to get this working, it would be a very useful feature.
Thanks
Offline
#76 2006-12-08 14:11:01
- ghz
- New Member
- From: Budapest, Hungary
- Registered: 2006-10-10
- Posts: 4
Re: gbp_permanent_links
graeme:
wooo. this extended debug report helped me a lot, thanks very much. by the way, the problem was a misconfiguration.
but i have found a small issue:
i am using movabletype like permalinks: section/year/month/title/
my new default permalink structure: section/year/month/day/title/
what i am doing now is forwarding from the first one to the default one. it is working if i set up the permalink as section/date/title/ where date is the embedded year/month/day/ expression. in case i set up the whole thing manually (so no /date is used) then the page is displayed, but the redirect is not working. this does not affect me at all because i can use the /date solution but might confuse somebody else in the future.
and a question:
is it possible to match and replace with a regexp field? or matching is enough for forwarding? (i’d like to forward titles like ‘word1_word2_word3.html’ to the texpattern default ‘word1-word2-word3’)
update: well i have just seen this show suffix option. :)
Last edited by ghz (2006-12-08 14:23:33)
Offline
Re: gbp_permanent_links
ghz wrote:
wooo. this extended debug report helped me a lot, thanks very much. by the way, the problem was a misconfiguration.
Great! Glad you were able to figure it out.
but i have found a small issue…
Thanks for letting me know about this. I shall look into it.
is it possible to match and replace with a regexp field? or matching is enough for forwarding? (i’d like to forward titles like ‘word1_word2_word3.html’ to the texpattern default ‘word1-word2-word3’)
Are Movable Type urls like this ‘word1_word2_word3.html’ ? This isn’t possible at the moment but it would make a good option to include. Shouldn’t be too hard, I’ll give it a go once I get home from work.
Offline
Re: gbp_permanent_links
I’ve installed the plugin on my localhost, but after this screen:
You haven’t created any custom permanent links rules yet.
Click here to add one.
I get this error message:
Fatal error: Non-static method PermanentLinksBuildTabView::gbpFInput() cannot be called statically in C:\mylocalpath\textpattern\lib\txplib_misc.php(512) : eval()’d code on line 1495
Offline
#79 2006-12-11 11:36:14
- grinstead
- Member
- From: UK
- Registered: 2006-10-06
- Posts: 19
Re: gbp_permanent_links
Thanks for the Plugin.
All works fine apart from I can not seem to find a way to add the full url to permlinks? Permlinks are showing as /section/category/title this results in my my feed xml file being invalid as its not the full url (http://…..)
Thanks
Offline
#80 2006-12-11 15:31:01
- grinstead
- Member
- From: UK
- Registered: 2006-10-06
- Posts: 19
Re: gbp_permanent_links
Just an update, I’m using domain/section/category/rss for the feed but if I use domain/section/category/?rss=2 then I’m getting this as the permlinks domain/section/title which is better but missing the category!
I’m using this set up section/category/title/
Does that make sense?
Thanks
Offline
Re: gbp_permanent_links
Work with ob1_googlenav?
Edit: Yes, no problem.
Thanks and Great Plugin!
Last edited by Rigel (2006-12-18 18:56:42)
Offline
#82 2006-12-13 10:19:14
- grinstead
- Member
- From: UK
- Registered: 2006-10-06
- Posts: 19
Re: gbp_permanent_links
[Update]
Thanks Graeme for helping me out yesterday, as an inpatient sod I am I emailed Graeme, in which he provided me with a work around.
Thanks again.
Offline
Re: gbp_permanent_links
I still can’t use this plugin. Can anyone explain?
I get this error message:
Fatal error: Non-static method PermanentLinksBuildTabView::gbpFInput() cannot be called statically in C:\mylocalpath\textpattern\lib\txplib_misc.php(512) : eval()‘d code on line 1495
Offline
Re: gbp_permanent_links
I just want all of my permalinks to be:
section/title.htm
It can’t be done with this plugin.
How can I do this?
Offline