Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
#133 2005-06-02 09:25:39
Re: [plugin] [ORPHAN] sgb_url_handler - support all url variations at the same time
no, it is on sgb_url handler :)
~~~~~~~~~~~~~| monolinea.com | pixilate.com | istockphoto.com/kemie |~~~~~~~~~~~~~
Offline
#134 2005-06-02 17:21:09
Re: [plugin] [ORPHAN] sgb_url_handler - support all url variations at the same time
Hey, what is the latest version of this plugin?
I think it’s 1.5.
I’m Jonesin’ for 1.7 because I need {example.com/section/year/month/day/title}
Anyone got that scheme to work yet? Anyone know of a 1.7? Anyone seen the sun-god?
Last edited by mrdale (2005-06-02 17:24:50)
Offline
#135 2005-06-02 17:46:33
Re: [plugin] [ORPHAN] sgb_url_handler - support all url variations at the same time
I think sgb hasn’t been around for quite some time.
I managed to get example.com/section/year/month/day/title to work. However, I use zem_rewrite for it but it plays well with sgb_url_handler 0.1.5 which is also active (because I also need section/title).
In zem_rewrite, this is my setup:
<code>
$uri_scheme[‘date’] = ‘{section}/{year}/{month}/{day}/{url_title}’;
$uri_scheme[‘article_urltitle’] = ‘{section}/{category}/{url_title}’;
$uri_scheme[‘article_alt’] = ‘{section}/{article}/{url_title}’;
$uri_scheme[‘category’] = ‘{section}/{category}/’;
$uri_scheme[‘article’] = ‘{section}/{url_title}’;
$uri_scheme[‘section’] = ‘{section}/’;
</code>
Offline
#136 2005-06-02 18:45:43
Re: [plugin] [ORPHAN] sgb_url_handler - support all url variations at the same time
Andreas > Thanks
Have you had any luck getting a date-based url (without an article title or ID) to produce a date based list of articles?
Offline
#137 2005-06-02 19:23:16
Re: [plugin] [ORPHAN] sgb_url_handler - support all url variations at the same time
I use rss_suparchive for that. Have a look
For some reason, the year-only archive doesn’t work, as I’ve just noticed. Have to look into that.
Offline
#138 2005-06-08 11:37:27
Re: [plugin] [ORPHAN] sgb_url_handler - support all url variations at the same time
I just spent a bunch of time wondering why the hell this wasn’t working after I moved all the files over to a Dreamhost subdomain to do some development work. Turns out I had to disable “Run PHP as CGI” that’s highly recommended by Dreamhost. So anyone who can’t get this working on Dreamhost — try disabling that option.
Offline
#139 2005-06-12 22:30:36
Re: [plugin] [ORPHAN] sgb_url_handler - support all url variations at the same time
Any plans of adding support for /section/id/? Because I’d like to keep my URLs short and simple.
(Well, I saw this had already been asked at the previous page but my eyes ignored it. Colour me stupid.)
Last edited by nicklas (2005-06-16 09:14:40)
Offline
#140 2005-06-16 00:40:07
Re: [plugin] [ORPHAN] sgb_url_handler - support all url variations at the same time
Hot damn, I’m back! Sorry about my absence, I had a lot going on and unfortunately I just didn’t have time for txp development (gasp). Anyway I’m cracking on a new version of this plugin and will keep you all posted.
For those who are curious, I’m buying my first house (or rather I’m being out-bid on several houses), I dislocated my shoulder (again) and my work-load at work tripled. The good news is, I’ve written some new URL handling code for a project at work, and it’ll be finding it’s way into the plugin shortly.
- sgb
Offline
#141 2005-06-16 11:06:23
Re: [plugin] [ORPHAN] sgb_url_handler - support all url variations at the same time
Welcome back, sgb!
Remember to put support for /section/category/title and error handling in ;-)
I’m looking forward to a new version of your great plugin!
Offline
#142 2005-06-17 10:21:40
Re: [plugin] [ORPHAN] sgb_url_handler - support all url variations at the same time
sgb_url_handler works just by installing and activating it. The plugin looks for various sections, categories and article titles and tries to match them to an article.
Error handling is done by another plugin: sgb_error_documents which also just works by installing, activating and configuring some entries in the code view of the plugin.
Offline
#143 2005-06-17 14:33:27
- Andrew
- Plugin Author
- Registered: 2004-02-23
- Posts: 730
Re: [plugin] [ORPHAN] sgb_url_handler - support all url variations at the same time
sgb, I’ve looked briefly thru the docs for this and I’m wondering if this plugin can/could support 301 redirects? Basically what I’m looking for is a “strict” enforcement of the url structure for the site in question, rather than the default “loose” method that will serve up a document if it can find a match for your request.
For instance, such as in this example, if there is an article match for a request (but incorrect url based on my prefs) I’d like for the user to be permanently redirected to the url matching the format set in prefs.
Is this possible?
Offline