Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
#217 2007-07-20 14:52:15
Re: gbp_permanent_links
Again, i’d like to know if I can use your plugin to do this:
I had a static page www.site.com/section/title.htm#fragment
The title.htm page contained several fragment, so all these url are valid:
www.site.com/section/title.htm#fragment2
www.site.com/section/title.htm#fragment3
www.site.com/section/title.htm#fragment4
etc… They’re all pieces of content on one page. Now I’d like to split that page in 4 pages, one for each fragment. So I’d like that old static (non-txp) url:
www.site.com/section/title.htm#fragment
Could be redirected to actual txp managed url:
www.site.com/section/fragment
the same for fragment2, 3, 4.
Is there a way to do this with your plugin?
Thanks
Z-
Offline
#218 2007-08-15 19:41:44
- guiguibonbon
- Member
- Registered: 2006-02-20
- Posts: 296
Re: gbp_permanent_links
Zanza, have you tried enabling prefix, and using /section/title
where you set the prefix of title to title.htm#
?
Gream, I’m totally impressed by this plugin, and your commitment.
Two questions : is this compatible with MLP?
And would it be possible to enable faux-sub-domains? I’d be particularly interested in something like author-name.site.com
.
Also, author
modules don’t seem to work (404), while login
does. Could this be caused by a space in the real name?
Offline
#219 2007-08-16 13:06:40
- kevinpotts
- Member
- From: Ghost Coast
- Registered: 2004-12-07
- Posts: 370
Re: gbp_permanent_links
graeme — I don’t have any specific problems, but I did want to say thank you for writing an incredibly useful plugin. I just discovered it last week and implemented it within ten minutes on my own site because I’ve been seeking this exact functionality for a long time. (Also gave you a nod in a recent article on my site.) Keep up the great work.
Kevin
(graphicpush)
Offline
#220 2007-08-16 16:21:56
Re: gbp_permanent_links
Keep up the great work.
Yes, indeed. I want to underline that too. I’ve used several URL plugins but all had some kind of drawback to them – yours is excellent!
Offline
#221 2007-08-17 01:31:49
Re: gbp_permanent_links
>graeme. Any news on image category support? Can’t wait to start using this plugin.
Offline
#222 2007-08-17 11:46:32
Re: gbp_permanent_links
@Graeme: I’d like to thank you for this plug-in. This is the very first time I’m making a TextPattern-based website (it’s a large one, url later), and I could use your plug-in after only 2 tries… It’s so simple to use, a kid could use it!
Again: Thank you very much!
Textpattern projects: Maxvoltar, Made by Elephant, Twunch
Offline
#223 2007-08-19 07:46:52
- guiguibonbon
- Member
- Registered: 2006-02-20
- Posts: 296
Re: gbp_permanent_links
Hi Greame. I improved gbp_if_text so that I can also check if a text is set, no matter what its value is with <txp:gbp_if_text name="foo">...</txp:gbp_if_text>
(a few pages have common behaviors, so I’ve set the same text-name to them). Here’s the code :
function gbp_if_text ($atts, $thing) {
global $pretext;
extract(lAtts(array(
'name' => '',
'val' => '',
),$atts));
if ($name != "" && $val == "") {
$match = (isset($pretext["permlink_text_{$name}"]));
} elseif ($name != "" && $val != "") {
$match = (@$pretext["permlink_text_{$name}"] == $val);
} else {
$match = false;}
return parse(EvalElse($thing, $match));
}
Last edited by guiguibonbon (2007-08-19 08:04:18)
Offline
#224 2007-08-20 07:30:44
Re: gbp_permanent_links
Ok, it’s not going so smooth as I first thought…
Here’s a current example structure:
- blog index/post
- blog archive
- what is rss?
These are all different sections, but they should look (url-wise) like this:
- blog index/post
- blog archive
- what is rss?
Maybe you can give a quick step-by-step how-to so I can see how you have to use the system in a decent way…
Thank you!
Textpattern projects: Maxvoltar, Made by Elephant, Twunch
Offline
#225 2007-08-21 00:17:42
- diuk
- Member
- Registered: 2007-08-21
- Posts: 15
Re: gbp_permanent_links
rloaderro wrote:
Hi! I’m going for the default section/category/title, however it’s not working quite right.
This is for a gallery section, I’m hoping the process can work something like this:
1. user enters the gallery section
bq. site_url/gallery
2. user clicks a category (paintings, illustrations, etc..)
site_url/gallery/category
3. user clicks an article (piece of artwork, etc..)
site_url/gallery/category/title
But at the moment, when I click a category within the gallery section, the URL looks like:
site_url/gallery/category/category
Sorry if this has been addressed before but I’m having the same problem, category links become appended with the category name I’m currently navigating. Is there a workaround to this?
Thanks,
D
Last edited by diuk (2007-08-21 00:19:03)
Offline
#226 2007-08-21 15:54:15
- marios
- Archived Plugin Author
- Registered: 2005-03-12
- Posts: 1,253
Re: gbp_permanent_links
Dear Graeme,
I am also having trouble with a redirectbehavior as rloaderro describes.
I have a section of topics, with a permlink rule of section/category/custom_field
that uses it’s on template and is restricted to that section only.
Now when I get from a section/category/customfield directly to an article_frontpage, the custom_field request URI part get’s appended to the article frontpage URL.
(Doesn’t happen, when going from another section)
Feels almost, as if some variable content doesn’t get emptied out before another rule applies.
However, I also have two other rules, one that applies to that section with a different template, and one that does not.
Is it a bug, may be I’m just using a wrong rule combination?
(I am using it together with mlp on a 4.0.5 install, if that helps, and sql version is 5.0.19)
UPDATE: I am also getting an error notice, when using regular expressions:
Notice: unserialize() [function.unserialize]: Error at offset 172 of 191 bytes in /Users/www/Sites/dev_sundrivedesign2/textpattern/lib/txplib_misc.php(534) : eval()'d code on line 1676
Thanks again for all this terriffic work, I appreciate it.
It says then: Not a Number (NaN) in the regexp component display field.
( Thanks again for all this terrific work, I really apreciate it )
regards, marios
Last edited by marios (2007-08-23 08:29:35)
⌃ ⇧ < ⎋ ⌃ ⇧ >
Offline
#227 2007-08-21 18:50:35
- diuk
- Member
- Registered: 2007-08-21
- Posts: 15
Re: gbp_permanent_links
There seems to be a problem with txp 4.0.5, I am not able to turn on debugging, trying to do so results in a blank page.
I think there is a htaccess trick to get section/category/article type urls, anyone has any ideas on how to set this up with mod_rewrite? Thanks in advance.
Regards,
D
Last edited by diuk (2007-08-21 18:50:58)
Offline
#228 2007-08-23 01:43:35
Re: gbp_permanent_links
First off — what a sexy plugin. But I’m having a few issues.
I have three rules set up:
“news” – section/date/title/ – precedence: 200 – Only for the News section
“resources” – section/category/title – precedence: 200 – Only for the Resources section
“global” – section/title – precedence: 100 – Works site wide.
All the links are formed right, but when I click on them they all give me the same error:
Not Found
The requested URL /news/2007/08/18/news-item-1/ was not found on this server.
Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
Any suggestions? I’m sure there is something small I’m overlooking.
PHP: 4.7
Txp: 4.0.5
gbp_admin_library: 0.4.581
gbp_permanent_links: 0.11.617
Thanks for the help.
Offline