Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
#601 2012-11-29 12:53:37
Re: gbp_permanent_links
Create a new rule:
1. Permalink rule:section/category/title
2. In Settings: a name (like “section-category-title” or whatever) and precedence = 100
3. In Conditions: Within section “News”
Now, create another rule:
1. Permalink rule:section/title
2. In Settings: a name (like “section-title” or whatever) and precedence = 90
3. In Conditions: Within section “News”
4. In Redirections: Redirect this permanent link to:section-category-title
.
That’s all. (I think)
I would like to see other examples, :D
Hi,
it works, but for some reason section links in horisontal menu and rss/atom in sidebar look like section/category – example – http://bps.e-gaza.com/articles/wheels/advice-to-rahula/
any other rule should be created to remove this side effect?
Offline
#602 2012-11-29 18:43:50
- els
- Moderator
- From: The Netherlands
- Registered: 2004-06-06
- Posts: 7,458
Re: gbp_permanent_links
admi wrote:
any other rule should be created to remove this side effect?
You can wrap the affected code in <txp:gbp_disable_permlinks>...</txp:gbp_disable_permlinks>
tags.
Last edited by els (2012-11-29 18:44:13)
Offline
#603 2012-11-30 10:48:10
Re: gbp_permanent_links
Els wrote:
You can wrap the affected code in
<txp:gbp_disable_permlinks>...</txp:gbp_disable_permlinks>
tags.
Thank you very much! So simple! I wish the plugin instructions had some examples of how to do this or that.
Offline
#604 2013-01-17 10:16:42
- beechy
- Member
- Registered: 2006-03-02
- Posts: 92
Re: gbp_permanent_links
Hi
Where can I download the lastest versions of:
gbp_admin_library v0.4.669 (Compressed)
gbp_permanent_links v0.14 patch 7 (Compressed / Minified)
The links to the plugins in the first post in this thread no longer work.
Thanks
Last edited by beechy (2013-01-17 10:27:04)
Offline
#605 2013-01-17 17:37:40
Re: gbp_permanent_links
@beechy – Links fixed.
G
Offline
#606 2013-01-18 11:18:51
- beechy
- Member
- Registered: 2006-03-02
- Posts: 92
Re: gbp_permanent_links
Thanks for fixing the link graeme….
I’ve had a look through the thread but can,t find out how I would I go about changing my textpattern category links when in a section to clean urls,
i.e at the moment my category urls when in a section are – www.mysite.com/news/?c=category-name
How would I use gbp_permanent_links to change these to clean urls?
i.e www.mysitename.com/news/category/category-name
- I still want my news article to show as www.mysite.com/news/article-title
Thanks
Offline
#607 2013-02-02 10:19:03
- Joey
- Member
- From: Netherlands
- Registered: 2005-01-19
- Posts: 257
Re: gbp_permanent_links
I’ve some side effects using this plugin. I use the plugin to create /section/title
URLs for one section in my website. However, for the news section I use the standard /year/month/date/title
layout.
Now, if the plugin is enabled, the URL type domain.com/title
will lead to the default page for one reason or the other. If I replace title
with an non-existing title/article textpattern does redirect me to a 404. Is there a way to prevent domain.com/title
from redirecting to the default page and to instead redirect the user to a 404?
Regards,
Joey
Offline
#608 2013-03-23 03:07:11
Re: gbp_permanent_links
I have gbp_admin_library v0.4.669 and gbp_permanent_links v0.14.7 running on TXP v4.5.4.
When I try to use <txp:permlink />
in an article form, it omits the beginning of my site url (the url is fully specified in my txp preferences).
Example:
With txp:gbp_disable_permlinks wrapped around the txp:permlink tag:
http://www.fulldomain.com/sitedirectory/section/article-title
The regular txp:permlink tag outputs the correctly gbp modified end of the url, but omits the domain:
/sitedirectory/section/category/article-title
I put the plugin and txp into debugging mode and no errors are being thrown. I’ve searched the forum and can’t find a problem similar to this. Not sure if it is a conflict between txp 4.5.4 and the plugin or something else.
EDIT – Note: <txp:category_list /> and <txp:category link=“1” /> both correctly output gbp modified url links with the full url.
Last edited by photonomad (2013-03-23 03:31:24)
Offline
#609 2013-07-02 08:00:07
Re: gbp_permanent_links
Hi there,
I’m trying usign gbp_permanent_links to remove category parameter from url, but something doesn’t work…
The site have MLP installed. Can it cause the problem?
The URL are correctly rewritten but the pages don’t show the correct content.
I don’t really know how to solve it…
Some suggestions?
Thanks
Offline
#610 2013-07-04 22:11:30
Re: gbp_permanent_links
wornout wrote:
The URL are correctly rewritten but the pages don’t show the correct content.
That’s intriguing me, could you provide more details?
Offline
#611 2013-07-05 10:09:30
Re: gbp_permanent_links
Solved!
Thanks.
Offline
#612 2013-07-05 12:02:50
Re: gbp_permanent_links
wornout, being that gbp_permanent_links is a mistery on itself (no documentation, sometimes quirky, etc), it would be nice if you share any tip or trick (or bug!) that you may have discovered :)
Offline