Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Pages: 1
Zem_Rewrite Woes
Hi,
I’ve never used Textpattern for a blog before, but have used it in the past as a CMS and had no problems. However, now I’m having more troubles than I thought possible. The first of which is Zem_Rewrite. I’ve been working with this plugin to get my permalinks to show up in the format:
/chronicles/year/month/entry-title
However, although the links actually work (whereas previously I got a “404” error), it takes me to the “archives” page. Now, I’ve renamed everywhere that “archives” appears to “chronicles” simply because that’s how I’d like it my addresses to be. I’ve worked out how to get /archives/ to act like /chronicles/ without any problems, but when I click on an entry that takes me to /chroniciles/year/month/entry-title it shows the /chronicles/ page. It’s like it ignores the whole /year/month/entry-title part. Is there any way that I can make a separate section for entries?
Thanks, I have been working on this for hours on end for the past two weeks, and I haven’t gotten very far at all.
Offline
#2 2005-03-04 02:55:10
- zem
- Developer Emeritus
- From: Melbourne, Australia
- Registered: 2004-04-08
- Posts: 2,579
Re: Zem_Rewrite Woes
zem_rewrite just parses the URL, it has no control over what’s displayed on the page. That’s explained in the last paragraph of the docs.
txp-rc3 has date URL support.
Alex
Offline
Re: Zem_Rewrite Woes
Hi Zem,
I have read the documentation for your plugin many times. I understand that zem_rewrite parses the URL into a format that TextPattern can understand. I probably posted by question in the wrong forum, but since it’s related to your plugin, I thought this would be the best place to post it. Anyway, where can I find TXP-RC3? The main TextPattern web site offers a download only for RC1. Also, does this mean that I won’t need your plugin, since RC3 has date URL support built-in?
Thanks.
Offline
Re: Zem_Rewrite Woes
I think I figured out what the deal is here. The article number is mandatory. Everything will work fine, so long as the article number is somewhere in the URL. How can I get it to work without having the article number in the URL?
Offline
Re: Zem_Rewrite Woes
Well this takes you back to where you started. To get rid of the ID, you need either Zem’s plugin (working fine for pre-RC3 versions), or you need RC3, which is currently only available through Subversion (see this post).
Who’s gonna textdrive you home tonight?
Offline
Re: Zem_Rewrite Woes
I have Zem’s plugin (zem_rewrite) and I can remove the {article} part which solves my problem with the URL issue. The problem is when I do that, it takes me to the archives page instead of the article. When I add the {article} part back in, everything works fine. I’m tempted to modify the plugin to search for an entry with a specific title in a specific month in the MySQL database to get the ID and then send it to Textpattern. Has this already been done, or am I just really missing something?
I’m using RC1, or so I believe. I downloaded the file that’s on the main page of www.textpattern.com.
Last edited by Jona (2005-03-04 18:06:38)
Offline
Re: Zem_Rewrite Woes
> Jona wrote:
> The article number is mandatory. Everything will work fine, so long as the article number is somewhere in the URL.
It’s not. Try RC3, it work fine without plugin and without article’s ID.
Offline
Re: Zem_Rewrite Woes
> Jeremie wrote:
> It’s not. Try RC3, it work fine without plugin and without article’s ID.
Does RC3 have any security issues or any problems like that? Or is it safe to use?
Offline
#9 2005-03-05 01:53:34
- Anark
- Member
- Registered: 2004-08-14
- Posts: 101
Re: Zem_Rewrite Woes
RC3 is practically identical with TXP v1.0, which should be released any day now. It better be safe. =)
Jeremie — I downloaded RC3 r68, I think, and haven’t paid much attention to any changes that were made since. The install that I’ve got doesn’t support ab URL scheme without article IDs — has this changed since r68?
Offline
Re: Zem_Rewrite Woes
Can I get a *.zip file? I’m working on everything on my localhost and I use Windows (not that much of a computer geek to use Linux :P).
Offline
Pages: 1