Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#625 2013-10-22 11:43:39

planeth
Plugin Author
From: Nantes, France
Registered: 2009-03-19
Posts: 215
Website

Re: gbp_permanent_links

Some url i saved worth reading for an understanding :
http://forum.textpattern.com/viewtopic.php?pid=239898#p239898
and
http://forum.textpattern.com/viewtopic.php?pid=267785#p267785

Basically gbp_pl will map the specified chunk of url to your rules defined further down in the panel.

Offline

#626 2014-02-12 00:06:30

piyashrija
Member
Registered: 2012-05-17
Posts: 30

Re: gbp_permanent_links

Hi all,

I have been trying to achieve url like mosman.nsw.gov.au through gbp_permanent_links and have been playing with plugin from last week but no success.

What i want to achieve

For Navigation: section/category/title
  • Council is section. http://test.com/council
  • About Council is a category. http://test.com/council/about-council
  • Title of article related to About Council. http://test.com/council/about-council/article-title

Plugin Settings

Preference: nnnnnnnnnn ( Note as suggested in previous comment if i set nnnyyynnyny it will not work because if i got to next section from http://test.com/council/about-council/article-title, It will be like http://test.com/nextsection/article-title i.e article-title will stay there)

  • Pref1(section/category/title) (Precedence:103)
  • Pref2(section/category) (Precedence:102)
  • Pref3(section/title) (Precedence:102)

Default permlink set to messy mode.

Please let me know my mistake and best way to configure it

Many thanks

Last edited by piyashrija (2014-02-12 00:07:01)

Offline

#627 2014-02-12 03:58:40

piyashrija
Member
Registered: 2012-05-17
Posts: 30

Re: gbp_permanent_links

I almost got through but got small problem.

At Second level

It’s display url as below

http://www.test.com/council/category/category-title

How can i make it work link below just for second

http://www.test.com/council/category/

Thanks

Last edited by piyashrija (2014-02-12 03:58:57)

Offline

#628 2014-02-12 08:37:02

THE BLUE DRAGON
Member
From: Israel
Registered: 2007-11-16
Posts: 619
Website

Re: gbp_permanent_links

piyashrija wrote #278825:

Default permlink set to messy mode.

I personally working with this plugin on default permanent link mode set to: ‘/section/title’
If you mean that the plugin works if you enter the URL in the address bar, but the links the plugin output are incorrect, then you can build the links by yourself instead of using the permlink tag.
<txp:site_url /><txp:section />/...

Offline

#629 2014-03-13 15:25:03

gfdesign
Member
From: Argentina
Registered: 2009-04-20
Posts: 401

Re: gbp_permanent_links

Hi everyone.
I have this problem: When I use this plugin with this format section/category/ all work fine, except when I want to show the category title in the page using <txp:category />.

I mean, when I use into an article list page, I get:

<txp:category title="0" /> <!--/ It works -->
<txp:category title="1" /> <!--/ It does not work -->

but, if I use the normal format as TXP uses: section?c=category both tags work

<txp:category title="0" /> <!--/ It works -->
<txp:category title="1" /> <!--/ It works -->

Does anybody else have this problem? (sorry, with this new forum format, I wasn’t able to find the answer in the forum in case this is)
Thanks

Last edited by gfdesign (2014-03-13 15:27:03)

Offline

#630 2014-07-10 15:35:18

ChrisArchitect
Member
From: Canada
Registered: 2007-06-20
Posts: 25

Re: gbp_permanent_links

Long time user of gbp but now am pulling my hair out about something. old old 4.0.7 install.

basic setup for urls
/section/
/title/
both work.

Not even sure how or why I configured gbp …but when it’s turned on, the /title/ urls work (effectively making titles look like site sections)

Driving me nuts that
myurl.com/title
with no trailing slash — works!
should be 404.

Any ideas appreciated

Last edited by ChrisArchitect (2014-07-10 15:37:52)

Offline

#631 2014-07-10 17:12:03

ChrisArchitect
Member
From: Canada
Registered: 2007-06-20
Posts: 25

Re: gbp_permanent_links

..cont’d

of course, this has lead me to realize I may not need gbp at all.
Under my permanent links class of ‘/section/title’ all I’m saying is that I don’t want ‘/title’ to also work. But rather, ‘/title/’. It should return 404 if no trailing slash.

So I just modded the code for section_title to check if no section supplied, and if so, look up article ID if there is a trailing slash.

seems to work, surprisingly.

my use for gbp was limited I guess….

Offline

#632 2014-07-10 17:17:21

colak
Admin
From: Cyprus
Registered: 2004-11-20
Posts: 9,007
Website GitHub Mastodon Twitter

Re: gbp_permanent_links

Hi Chris

I think that this is exactly how it should work (without the trailing slash). The way I understand the schema is that articles end up without the slash whereas sections and categories come with it. I guess sections and categories are thought of as directories and individual articles as a single html page.


Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.

Offline

#633 2014-12-22 07:36:08

admi
Member
From: BY
Registered: 2007-12-10
Posts: 145
Website

Re: gbp_permanent_links

Two years ago I tried the plugin and somebody helped me with the instruction:

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

I remember that it workred back then Ok. However today I decided to use gbp_peramlinks, followed the instruction and when I visit an indivifual article I got either 301 page not found or so called cyclic redired. What can be a problem? Do I have to use tags like txp:gbp_permlink…..

One of the problem is that I cannot find any clear-cut instruction. And this 60 page long topic may have the answer but so easy to get lost here.

Offline

#634 2014-12-22 12:31:24

qrayg
Member
From: USA
Registered: 2004-08-27
Posts: 81
Website

Re: gbp_permanent_links

@admi
Have you set your TXP Permanent Link Mode option to “?=messy” in Preferences?

Offline

#635 2014-12-22 18:14:13

admi
Member
From: BY
Registered: 2007-12-10
Posts: 145
Website

Re: gbp_permanent_links

qrayg wrote #286804:

@admi
Have you set your TXP Permanent Link Mode option to “?=messy” in Preferences?

yes. i have tried all options. do you think that the rule i posted above is enough to get the desired urls – section/category/title?

Also why is a slash at the end of individual article url?

Offline

#636 2014-12-22 18:39:15

els
Moderator
From: The Netherlands
Registered: 2004-06-06
Posts: 7,458

Re: gbp_permanent_links

I’m not sure you need the second rule. I’ve used the first rule in the past without needing the second one. You could try if deleting the second rule helps.

And there is a setting in the plugin preferences that lets you omit the trailing slash.

Offline

Board footer

Powered by FluxBB