Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
#61 2005-01-05 00:47:04
- zem
- Developer Emeritus
- From: Melbourne, Australia
- Registered: 2004-04-08
- Posts: 2,579
Re: [plugin] [ORPHAN] zem_rewrite: configurable clean URLs
<strike>This could be the $s
clobbering bug that’s in 1rc1. Are you running that version? Can you update to svn-current?</strike>
On second thoughts, I don’t think that’s the case. If it were, article permalinks should still work.
All I can suggest right now is some good old-fashioned debugging. Place var_dump() calls at strategic points in the code, see if you can work out where things are going wrong. Start with var_dump($_GET) near the end of zem_handle_uri().
Last edited by zem (2005-01-05 01:00:07)
Alex
Offline
Re: [plugin] [ORPHAN] zem_rewrite: configurable clean URLs
Actually, article permalinks DO still work.
Where do I get the current dev release?
Offline
Re: [plugin] [ORPHAN] zem_rewrite: configurable clean URLs
Thanx Zem, that fixed one issue. Now I have a new one, and I am not quite sure why yet. It might be the whole “front page” issue, or it could be a TXP issue, and not your plugin…. but here goes.
If you visit the home page, the category links look like this:
http://s90447587.onlinehome.us/testbed/*default*/Misc/
Notice the word Default. That is the section. Misc is the category.
If I click on Misc, then the correct article(s) show up.
However, I do not have a section called default. Only article and about. about has no articles in it, article has three (one in each of three categories).
If I then click on the Articles section, and then click on a category, I still get the proper article(s) for that category, yet the category link now looks like:
http://s90447587.onlinehome.us/testbed/*article*/Misc/
My next step is to work on my .htaccess file. It has a few kluges to make things work, and I currently can’t fully customize the link formats.
Eric
Offline
Re: [plugin] [ORPHAN] zem_rewrite: configurable clean URLs
> This could be the $s
clobbering bug that’s in 1rc1. Are you running that version? Can you update to svn-current?
Yep! Found the ticket here http://dev.textpattern.com/trac.cgi/ticket/61 , switched a couple of lines of code and it’s working much better. Still some voodoo with the clean URL stuff, but at least I’m getting my templates now.
-jeff
Offline
Re: [plugin] [ORPHAN] zem_rewrite: configurable clean URLs
zem, this is the greatest thing since sliced bread.
But as I’m sitting here looking at it on my test server, I notice one problem: how do I generate “next” and “previous” links using my preferred URL scheme? Does/can zem_nav integrate with this plugin for that?
You cooin’ with my bird?
Offline
#66 2005-01-06 01:44:44
- zem
- Developer Emeritus
- From: Melbourne, Australia
- Registered: 2004-04-08
- Posts: 2,579
Re: [plugin] [ORPHAN] zem_rewrite: configurable clean URLs
> If you visit the home page, the category links look like this:
> http://s90447587.onlinehome.us/testbed/*default*/Misc/
> Notice the word Default. That is the section. Misc is the category.
Like I said, category links don’t work on the front page. If they did, ‘/foo/’ would be ambiguous – it could mean section foo, or category foo. ‘/foo/bar/’ is fine, since foo is obviously the section.
Alex
Offline
#67 2005-01-06 01:46:25
- zem
- Developer Emeritus
- From: Melbourne, Australia
- Registered: 2004-04-08
- Posts: 2,579
Re: [plugin] [ORPHAN] zem_rewrite: configurable clean URLs
> But as I’m sitting here looking at it on my test server, I notice one problem: how do I generate “next” and “previous” links using my preferred URL scheme? Does/can zem_nav integrate with this plugin for that?
Good point. No, it doesn’t yet. I’m planning on updating some of my other plugins to better work with zem_rewrite when I get time. That would be a good addition.
Alex
Offline
Re: [plugin] [ORPHAN] zem_rewrite: configurable clean URLs
This is probably a regular TXP question, but that means:
default is the default section
And then you can have whatever sections you want specified, yet default is always there, and only used on the homepage?
Eric
Offline
#69 2005-01-07 08:08:08
- Kangaby
- New Member
- Registered: 2004-12-26
- Posts: 2
Re: [plugin] [ORPHAN] zem_rewrite: configurable clean URLs
> Kangaby wrote:
Warning: Compilation failed: unrecognized character after (? at offset 3 in /path/to/my/textpattern/publish.php(767) : eval()’d code on line 75
(path/to/my replaces the real path)
—-
So I guess nobody has a clue then.
Offline
Re: [plugin] [ORPHAN] zem_rewrite: configurable clean URLs
> edburdo wrote:
> default is the default section
> And then you can have whatever sections you want specified, yet default is always there, and only used on the homepage?
That’s correct; ‘default’ is hard-wired into Textpattern.
Last edited by ubernostrum (2005-01-07 17:49:02)
You cooin’ with my bird?
Offline
Re: [plugin] [ORPHAN] zem_rewrite: configurable clean URLs
Hey!?
Do I need to modify the templates in order to use zem_rewrite?
I know that I need to change permalinks and stuff, but I thought I saw something somewhere about needing to add a line at the top of my templates. I can’t seem to find anything about that in the documentation though.
If so, what is the line I need to add?
-Jeff
Last edited by jjeff (2005-01-09 00:51:20)
Offline
Re: [plugin] [ORPHAN] zem_rewrite: configurable clean URLs
uh.. yeah… do we need to add any tags other than the zem_link tags for this to work – to rewrite the addresses? I’m having a really stupid moment right now… I’m probably missing something. but my test page does not work with this right now…
Offline