Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Re: [archived] gbp_faux_static - uri forwarding.
Next Problem: Never be too happy too early.
How can I change the comment-invitation to follow the same url-scheme? (I need sitename.com/year/month/title.html#comments)
(…)
Offline
Re: [archived] gbp_faux_static - uri forwarding.
/section/title requests forwarding to /category/title you need to have another rule to accept the new request, something like this:
- URI:
%^\/(?#category)\/(?#title)$% - Select ‘artikel’ in the section popup (Note: I earlier said that if you use meta patterns there is no need to change the popups – above you aren’t using the section meta pattern so this is fine.)
- Permanent Link Format:
/(?#category)/(?#title)
As for using category2 instead of category1, sure I can make this an option. It’s rather hectic here at the moment but I’ll be sure get this in the next release which is due middle of next week.
Yes the problem of <txp:page_title /> is outside of the plugin but I plan to add alternative tags to get thing working as expected.
Cheers.
Offline
Re: [archived] gbp_faux_static - uri forwarding.
> jonhicks wrote:
> Could this be used to support older /section/id/title links, as well as my default section/title/ links, in the way that url_handler did?
Jon,
This regexp should give you /section/id/title links: %^\/(?#section)\/(?#id)\/(?#title)$% and not interfere with the default urls types which you have specified in the textpattern preferences.
Offline
Re: [archived] gbp_faux_static - uri forwarding.
> Michael wrote:
> Update: Found the error. This regexp-thing is really difficult for stupid guys like me… (Maybe you could use the Blogger url-scheme in your tutorial on how to use this plugin?)
Yes I will definitely look into the Blogger url-scheme. Thanks for the suggestion.
Better documentation might be a better way to start.
Offline
Re: [archived] gbp_faux_static - uri forwarding.
chrisrhee wrote:
When I go to /audio-archive/ rss_suparchive works and ouputs a list of articles. When I go to /audio/archive/ the plugin only outputs the “DL” tags and that’s it. No DT, no DD. Just the DL. Everything else on the page works, except that one plugin and only when I go to the page with the URL created by this plugin. Any idea why?
chrisrhee,
I have no idea why. I shall take a look at how rss_suparchive works. I thought gbp_faux_static re-defines the global textpattern variables which I imagine rss_suparchive uses as well so everything should in theory work well together.
I’ll get back to you on this one.
Offline
Re: [archived] gbp_faux_static - uri forwarding.
Michael wrote:
Next Problem: Never be too happy too early.
How can I change the comment-invitation to follow the same url-scheme? (I need sitename.com/year/month/title.html#comments)
Michael,
I plan to add an alternative tag for <txp:comments_invite /> to get the urls following the same url-scheme.
Offline
#37 2005-09-16 10:39:18
- els
- Moderator

- From: The Netherlands
- Registered: 2004-06-06
- Posts: 7,458
Re: [archived] gbp_faux_static - uri forwarding.
graeme wrote:
doggiez, to get
/section/titlerequests forwarding to/category/titleyou need to have another rule to accept the new request, something like this:
- URI:
%^\/(?#category)\/(?#title)$%- Select ‘artikel’ in the section popup (Note: I earlier said that if you use meta patterns there is no need to change the popups – above you aren’t using the section meta pattern so this is fine.)
- Permanent Link Format:
/(?#category)/(?#title)
Graeme, thanks for your response. Maybe I’m missing something. Both /section/title and /category/title take me to the right article page, but /section/title is still not forwarding to /category/title. Selecting ‘artikel’ in the section popup does not make any difference.
This is what I have:
<img src=“http://doggiez.nl/images/static.gif” />
As for using category2 instead of category1, sure I can make this an option. It’s rather hectic here at the moment but I’ll be sure get this in the next release which is due middle of next week.
Thanks, but I doubt if it’s possible to do what I’d really like: when I’m on a category page of category foo there is for example one article that has foo as category1, and another one that has foo as category2. Ideally the permlink for both would give /foo/article-title.
Yes the problem of
<txp:page_title />is outside of the plugin but I plan to add alternative tags to get thing working as expected.
Thanks, that would be great. I solved it for the moment by adding <txp:mdn_if_section section="artikel"><txp:article limit="1" form="article-title" /></txp:mdn_if_section> in the <title></title> tags.
Offline
#38 2005-09-18 20:38:20
- els
- Moderator

- From: The Netherlands
- Registered: 2004-06-06
- Posts: 7,458
Re: [archived] gbp_faux_static - uri forwarding.
About this:
> As for using category2 instead of category1, sure I can make this an option. It’s rather hectic here at the moment but I’ll be sure get this in the next release which is due middle of next week.
Thanks, but I doubt if it’s possible to do what I’d really like: when I’m on a category page of category
foothere is for example one article that hasfooas category1, and another one that hasfooas category2. Ideally the permlink for both would give /foo/article-title.
You can forget about this (hope you did not dive into it already…). I dumped category2 for all articles.
I still can’t get the forwarding right though :( (see my previous post).
Offline
Re: [archived] gbp_faux_static - uri forwarding.
doggiez wrote:
Graeme, thanks for your response. Maybe I’m missing something. Both /section/title and /category/title take me to the right article page, but /section/title is still not forwarding to /category/title. Selecting ‘artikel’ in the section popup does not make any difference.
This is what I have:
doggiez, Sorry I’ve not had internet access for a while, nor will I have proper unrestricted net access on my development machine until the middle of next week.
I see what your problem is now… At the moment the best way to get /section/title to appear as /category/title is to rewrite the permalinks to point to /category/title. I know it’s not brilliant but when I’m able to I will be looking at adding forwarding to different urls, instead of just being able to forward to different section/categories/etc…
Offline
#40 2005-09-19 15:29:21
- els
- Moderator

- From: The Netherlands
- Registered: 2004-06-06
- Posts: 7,458
Re: [archived] gbp_faux_static - uri forwarding.
Sorry if I’m asking too much, I just have no idea of what is possible and what isn’t… I’ll go back to section/title for the time being, If I’m the only one who wants this, please don’t spend too much time on it.
Thanks anyway.
Offline
Re: [archived] gbp_faux_static - uri forwarding.
I’m confused as to how this is better than sgb_url_handler? I can use all of TXP’s built in tags and my urls are all section/cat/title with 404, 403, and 301 errors taken care of automatically. I can also still access my urls through any default TXP way without any tag or plugin editing.
I guess I just don’t understand what this plugin truly does.
Last edited by qrayg (2005-09-19 18:30:21)
Offline
#42 2005-10-05 07:02:09
- nardo
- Member

- From: tuvalahiti
- Registered: 2004-04-22
- Posts: 743
Re: [archived] gbp_faux_static - uri forwarding.
I’m confused too Graeme
basically I want to have URLs in the format “domain.tld/section/category” – and that URL outputs all articles in that section & category – for a mainly static site
is that within the scope of this plugin at present – or am I in the same boat as doggiez?
as the site is static, the menus to call these various pages could have hard-coded URLs… I just want to get rid of the “?c=” ! without it the URLs are easy to publicise e.g. domain.tld/library/reference
Offline
Re: [archived] gbp_faux_static - uri forwarding.
Dumb question, but I’m curious.
Will this plugin work with mdp_calendar to allow /Year/Month/Day/ style urls to return an article list?
Thanks, the plugin looks promising
-Dale
Offline
Re: [archived] gbp_faux_static - uri forwarding.
Okay I’m definitely not getting this to work, but I really want to.
I am trying to use the previous instructions for /sections/category/title and it works fine to actually use the URLs, but I only get the section front-page and not the actual article itself (which is the title).
Any idea what’s going on?
Offline
Re: [archived] gbp_faux_static - uri forwarding.
Hmmm… been a while and no response. It appears that I was a bit wrong. When trying /section/category/article, I’m given the correct page for /seciton/category/, but can never get to the actual article itself. Does anyone have any insight on this at all?
pattern: ^\/(?#section)\/(?#category)\/(?#title)$, regexp
prefs: category forwarding: yes, custom perm links: yes, default: /(?#section)/(?#category)/(?#title)
Offline