Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
#25 2004-12-13 22:21:19
- zem
- Developer Emeritus
- From: Melbourne, Australia
- Registered: 2004-04-08
- Posts: 2,579
Re: [plugin] [ORPHAN] zem_rewrite: configurable clean URLs
> The problem is that when I specify for zem_permalink to create link to an article that is not in a category, such as the ones in the About and Contact sectioons, it inserts “{category}” even thought none of the articles in that section have one.
Good point. I’ve added a more general fix for this kind of problem. It’ll appear in the next release.
> The second change was to the id retreval code. I added a little logic to detect whether a category was included in the url, and if so, adds that to the id retreval criteria.
I’m working on a new plugin that does the job of retrieving articles. I’ll incorporate the idea.
Thanks,
z.
Alex
Offline
Re: [plugin] [ORPHAN] zem_rewrite: configurable clean URLs
I can’t seem to get this to work. I installed v0.5 and replaced my old permling tags with <txp:zem_permlink>.
I edited the plugin code to eliminate the ID and the permlinks appear on my front page but if I call an article I get a 404.
I also get one if I don’t modify the default permling structure of the plugin.
My TXP install runs on a subdomain (notes.andreas-kalt.de) if that is of any importance.
Any suggestions are appreciated. This is a cool plugin and I’ve been waiting for something like this for ages. Thanks zem!
Last edited by andreas (2004-12-14 22:32:11)
Offline
#27 2004-12-14 23:06:24
- zem
- Developer Emeritus
- From: Melbourne, Australia
- Registered: 2004-04-08
- Posts: 2,579
Re: [plugin] [ORPHAN] zem_rewrite: configurable clean URLs
Did you install the Rewrite stuff in .htaccess?
Alex
Offline
Re: [plugin] [ORPHAN] zem_rewrite: configurable clean URLs
I’ve got this installed and working great except for categories. how do I replace the txp:category_list?
also should I convert from zem_link to zem_permlink? zem_link seems to work find but just thought I’d check.
thanks
Last edited by babeskidoodle (2004-12-15 04:30:12)
charlie
Offline
Re: [plugin] [ORPHAN] zem_rewrite: configurable clean URLs
zem, I did replace my .htaccess entries with the code that comes with the plugin.
Offline
#30 2004-12-15 12:16:10
- zem
- Developer Emeritus
- From: Melbourne, Australia
- Registered: 2004-04-08
- Posts: 2,579
Re: [plugin] [ORPHAN] zem_rewrite: configurable clean URLs
Andreas,
It looks like the rewriterules are being ignored for some reason. It’s possible the subdomain has something to do with it. Is your subdomain set up as a subdirectory in your main site’s document root? Is there a .htaccess file for your main site as well as for the subdomain?
Alex
Offline
Re: [plugin] [ORPHAN] zem_rewrite: configurable clean URLs
Hi zem. I’m finally getting around to your plugin. (All roads lead to zem’s house.) I have a real stoooooooooooooopid question…
When I add your Rewrite rules to the .htaccess file, do I clear out all the other content in that file in the process (i.e., all the content in there from the TxP install)? If not, what do I keep?
(Wouldn’t hurt to add a comment about this in your instructions for non-devs like me. Just a thought.)
Offline
Re: [plugin] [ORPHAN] zem_rewrite: configurable clean URLs
Zem,
my (subdomain) site is in a subdirectory of my html directory so it is on the same level as the maindomain site and there is no extra .htaccess file.
Offline
Re: [plugin] [ORPHAN] zem_rewrite: configurable clean URLs
It would be really great to have urls like:
/section/parent_category/child_category/title
Or is this already possible? Another thing is, that it is still impossible to create urls without id’s.
Sven
<bc />
Offline
Re: [plugin] [ORPHAN] zem_rewrite: configurable clean URLs
With zem’s plugin URLs without IDs are possible. Just delet /{article}/ from the plugin configuration code.
Offline
#35 2004-12-15 21:02:39
- zem
- Developer Emeritus
- From: Melbourne, Australia
- Registered: 2004-04-08
- Posts: 2,579
Re: [plugin] [ORPHAN] zem_rewrite: configurable clean URLs
It doesn’t yet do nested parent/child categories, but it’s a possibility for the future.
Alex
Offline
#36 2004-12-15 21:06:17
- zem
- Developer Emeritus
- From: Melbourne, Australia
- Registered: 2004-04-08
- Posts: 2,579
Re: [plugin] [ORPHAN] zem_rewrite: configurable clean URLs
Andreas,
So the only .htaccess file is in the subdomain directory? Is there anything in it other than the rewriterules?
Can you confirm that a trivial redirect works, i.e:
RewriteEngine on
RewriteRule asdfasdf http://example.com/ [R,L]
..and fetch http://yourdomain.com/asdfasdf
Alex
Offline