Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
#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/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)
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
foo
there is for example one article that hasfoo
as category1, and another one that hasfoo
as 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
Re: [archived] gbp_faux_static - uri forwarding.
Hi Guys,
Sorry that I have just seem to of disappeared. Personal things not been to great for me recently along the partial corruption of my development reposition (luckily this is now fixed :) with all that has happened I’ve just not been motivated to do any work on gbp_faux_static… until now!
I’m going to do better. I’m working on a better system to add the patterns and it’s obvious that I need much better documentation, I’ll find it hard but it will get there. Promise.
Here’s a quick reply to all the out standing questions.
doggiez, Don’t worry I think it’s a good feature to have. I have tested this and it’s possible so it will happen.
qrayg, This plugin was designed to extend txp’s url/premalink mode system. It grew out of the need to match an existing urls of a site I’m converting to textpattern. One problem was that there are several different urls formats.
With gbp_faux_static you can match txp’s default url scheme and as many other as you like. You aren’t as limited in choice because can have urls like “/YYYY/MM/section/id” or even spoof file extensions “/title.html” etc…
nardo, Yes, urls of the form “domain.tld/section/category” are possible.
dale, gbp_faux_static contains meta patterns for all years, month and days. So urls like “/Year/Month/Day/” are possible.
paularms, I’ve tried and tried but I can’t reproduce the behaviour you’re seeing. Maybe you could email some more information, such as the exact urls your are trying, names of your section/category and article titles.
Thanks for understanding,
Last edited by graeme (2005-10-23 21:55:31)
Offline
Re: [archived] gbp_faux_static - uri forwarding.
graeme: I sent you an email with a link to screenshots of the admin interface and an example of where I’m having the problems.
Offline
Re: [archived] gbp_faux_static - uri forwarding.
Great plugin, I have it almost working the way I want but I do have a question.
I’m trying to display recent articles from certain categories but the new url schemes are not being displayed, only the default ones. I’m using the below code but am trying to sort out how to display the faux urls with it as right now it displays the normal url scheme.
<code>
<txp:recent_articles label=“Web” limit=“5” break=”<br />” category=“web” sortby=“Posted” sortdir=“desc” />
</code>
<br />
I have setup all the proper regex in the settings page and everything works fine elsewhere. What modifcations do I need to implement to get the above to display faux urls?
edit Nevermind, I just used a custom article list to do the job.
Last edited by LeeUmm (2005-11-03 20:44:59)
Offline