Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
#106 2005-04-21 04:09:43
Re: [plugin] [ORPHAN] sgb_url_handler - support all url variations at the same time
greenrift –
0.1.7 (the often discuss but never seen) has a configuration section where you can specify specific URL schemes for specific sections. This is used for responding to URLs, not writing them. It would be pretty easy to reference the same configuration for writing URLs. Depending on time, etc. I got some ideas for some URL writing functions, maybe if micampe up for co-developing one we can put together an update to mic_permlink.
rbl -
If I’m understanding you correctly you’re using my hacks to add support for example.com/section/category/url-title URLs. And when you’re viewing a category listing you’re only seeing posts which have a url-title?
I think that might be a RC3 related issue. I know awhile back there were a few releases where the update script didn’t properly add url-titles for articles that didn’t have them. In theory all articles in TxP should have url-titles now. I’ll poke around the forum a bit tomorrow evening after I get to the hotel (I’m doing some travelling) and see if I can find the info. There may be some alterations to the code, but my hacks don’t really affect how URLs are generated, they just added a mode.
- sgb
Offline
#107 2005-04-21 19:11:02
- rbl
- Member
- From: Portugal
- Registered: 2004-02-25
- Posts: 40
Re: [plugin] [ORPHAN] sgb_url_handler - support all url variations at the same time
Yes, something like that… I’ll try to explain a little better. I’ll use years and months because it’s easier to understand but the “Permanent link mode” is “/section/category/title”
Imagine this:- You create three sections one for each year between 2001 and 2003.
- You create 12 categories, one for each month of the year (“January”, “February”, “etc”).
- You then create 12 articles, name them after the months (“January”, “February”, “etc”) and post them under each appropriate category in all sections.
Hitting yoursite/2001/ will show you the 12 articles within that section but yoursite/January/ will show you only one article, because TXP will not list the category but rather the first article with that URL-only title.
Like you said, this might be a TXP related issue but I really don’t know.
Hope it’s clearer now =) Thanks for your help!!
Ricardo
Last edited by rbl (2005-04-21 19:11:50)
Offline
#108 2005-04-22 12:20:59
Re: [plugin] [ORPHAN] sgb_url_handler - support all url variations at the same time
sgb – Any idea when you’ll be ready to release the newest version? I’ve got some pretty big problems I need to work out with my site before the reboot deadline of 5/1. I’d be happy to help test if you need it.
Offline
#109 2005-04-25 17:59:46
Re: [plugin] [ORPHAN] sgb_url_handler - support all url variations at the same time
FYI – I made a few minor changes to the plugin code so that it properly resolves “section/id” URLs and date filtering URLs using rss_suparchive.
If anyone is interested I can post the changes.
Offline
#110 2005-04-26 12:37:03
Re: [plugin] [ORPHAN] sgb_url_handler - support all url variations at the same time
Wilshire –
The forum was down last night, I sent you and email about doing some testing, let me know if you’re still interested.
The new version supports cutom URL schemes so you’ll be able to add /section/id. You’ll also be able to set what the plugin does with a specific scheme (e.g. have sgb_url_handler do nothing so another plugin can handle the URL).
All –
The plugin will be posted in a day or two, I need to write up instructions on the new features and finish testing some things.
- sgb
Offline
#111 2005-04-26 12:38:16
Re: [plugin] [ORPHAN] sgb_url_handler - support all url variations at the same time
sgb – I didn’t get an email but I’d be happy to help test.
Offline
#112 2005-04-26 13:20:40
Re: [plugin] [ORPHAN] sgb_url_handler - support all url variations at the same time
sgb- great to hear it’s coming. It’s a great plugin!
Offline
#113 2005-04-27 14:21:06
Re: [plugin] [ORPHAN] sgb_url_handler - support all url variations at the same time
sgb, like will i’m also very much looking forward to it for a may 1st reboot. is there anything i can do to help? back rub? coffee? :)
~~~~~~~~~~~~~| monolinea.com | pixilate.com | istockphoto.com/kemie |~~~~~~~~~~~~~
Offline
#114 2005-05-04 02:37:59
Re: [plugin] [ORPHAN] sgb_url_handler - support all url variations at the same time
Anyone know if this or any plugin can be used to get the following permalinks: /section/ID?
Basically, my client would like to be able to link between her articles using a simple "link" :/section/ID format.
Thanks, Cameron
“If you build it, they will come.”
Offline
#115 2005-05-04 05:04:18
Re: [plugin] [ORPHAN] sgb_url_handler - support all url variations at the same time
You can use section/id/title which comes with TXP out of the box. TXP doesn’t need the titles to determine the articles they are just added for human conveniece.
Offline
#116 2005-05-04 15:18:47
Re: [plugin] [ORPHAN] sgb_url_handler - support all url variations at the same time
Ok I’m a bit daft sometimes so you’ll have to excuse me, but I’m lost!
I just installed this plugin and I didn’t install its sgb_error companion yet. Now I’ve got my permlinks set to section/title in my txp prefs and i made an article in the journal section, under the journal category and its title is Try This so the the link that forms for it would be:
http://www.blog.dev/journal/try-this
And then to test to see if this plugin was working I typed:
http://www.blog.dev/try-this
into the browser bar since the plugin said it allows site.com/title links but when I do this i keep getting the default page and not the article. Is this supposed to happen, have I done something wrong? And I read something about adding index.php to the site urls and modifying the TXP source, do I do this if have mod_rewrite enabled?
Last edited by marz (2005-05-04 15:21:06)
Offline
#117 2005-05-04 21:29:59
Re: [plugin] [ORPHAN] sgb_url_handler - support all url variations at the same time
> andreas wrote:
> You can use section/id/title which comes with TXP out of the box. TXP doesn’t need the titles to determine the articles they are just added for human conveniece.
Thanks Andreas – you’re right, this is a solution. Cheers, C
“If you build it, they will come.”
Offline
#118 2005-05-05 13:54:30
Re: [plugin] [ORPHAN] sgb_url_handler - support all url variations at the same time
I do believe I may be having a brainfart, but I’m trying to do something like:
http://www.domain.com/section/pluginspecificpage/1/ or:
http://www.domain.com/section/pluginspecificpage/showall/
http://www.domain.com/section/pluginspecificpage/?action=1 (this will work, but I would prefer to not do it this way, if possible)
Obviously it’s not an article that I’m attempting to pull up, and as a result, with this plugin, I get a 404. How would I go about letting this plugin (and perhaps txp) know that in this instance and any later plugin generated results, it’s an acceptable URL?
Offline
#119 2005-05-12 07:52:25
Re: [plugin] [ORPHAN] sgb_url_handler - support all url variations at the same time
What is the difference between zem_rewrite plugin and this one?
Why is the trigger for author not implemented?? Your documentation gives the option example.com/{author}/Author when i look through your code i find that the trigger for author is disabled!
Last edited by ifeelcool.com (2005-05-12 08:10:05)
Offline
#120 2005-05-19 14:29:58
Re: [plugin] [ORPHAN] sgb_url_handler - support all url variations at the same time
I did a small change to sgb_url_handler v. 0.1.5
I added
<code>
$c = (ckEx(‘category’, $parts1)) ? $parts1 : null;
</code>
to the case <code>// Must be /Section/Category/Title</code>
this alows me to use the global $c around my page, for example highlight the category iam in my category list.
edit: ops textile messed that up, but anyway, it is the same line that is used just some lines above this case.
Last edited by osei (2005-05-19 14:31:37)
Johan Nilsson
Offline