Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#616 2013-09-25 13:19:27

tye
Member
From: Pottsville, NSW
Registered: 2005-07-06
Posts: 859
Website

Re: gbp_permanent_links

I think (????!!!) its server dependent also – just keep messing with the prefs until it works with your setup – I’ve always managed to get it working

Offline

#617 2013-09-25 13:30:33

Bloke
Developer
From: Leeds, UK
Registered: 2006-01-29
Posts: 12,505
Website GitHub

Re: gbp_permanent_links

tye wrote:

I think (????!!!) its server dependent also

Yes, I’ve had odd results on different servers. Have always run sites with section/title permlink mode though, so maybe that was part of the issue to which qrayg alluded.

I’ve had it where you go to a page, gbp kicks in and lets you handle the ‘missing’ URL content but if the URL is malformed in any way and you decide you can’t render the content as the visitor expects, when you try to throw a manual 404 it just swallows it and you get no content at all. Very odd. Sometimes it also stops 404ing on invalid category pages too, even if I haven’t set up a rule to go near categories.

Maybe my gbp rules were mashed, or maybe it was a server setup thing. Who knows!


The smd plugin menagerie — for when you need one more gribble of power from Textpattern. Bleeding-edge code available on GitHub.

Hire Txp Builders – finely-crafted code, design and Txp

Offline

#618 2013-09-25 13:57:28

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

Re: gbp_permanent_links

Bloke wrote:

Yes, I’ve had odd results on different servers. Have always run sites with section/title permlink mode though, so maybe that was part of the issue to which qrayg alluded.

I’ve used the heck out of this plugin and I’ve found it works fine in most URL modes, but whenever I have problems doing category views I always end up going back to ?messy mode. I think it’s just best to stick with ?messy mode and build out all your URL scenarios using the plugin prefs.

Maybe there’s a better solution but mine is the only one that works on the many sites I built that have /section, /section/title, /section/category and /section/category/title urls. I recently built a site using the /yyyy/mm/dd/title mode and I ended up having to switch to ?messy mode and recreate the url mode in the plugin prefs so I could get /section/category URLs to work properly.

Offline

#619 2013-09-25 14:50:45

Bloke
Developer
From: Leeds, UK
Registered: 2006-01-29
Posts: 12,505
Website GitHub

Re: gbp_permanent_links

qrayg wrote:

whenever I have problems doing category views I always end up going back to ?messy mode.

That might actually be sage advice. Maybe all my troubles were attributable to PEBKAC. Next time I do a gbp_pl site I’ll try that approach, thanks for the tip.


The smd plugin menagerie — for when you need one more gribble of power from Textpattern. Bleeding-edge code available on GitHub.

Hire Txp Builders – finely-crafted code, design and Txp

Offline

#620 2013-09-25 16:03:15

maniqui
Member
From: Buenos Aires, Argentina
Registered: 2004-10-10
Posts: 3,070
Website

Re: gbp_permanent_links

Bloke wrote:

qrayg wrote:

whenever I have problems doing category views I always end up going back to ?messy mode.

That might actually be sage advice. Maybe all my troubles were attributable to PEBKAC. Next time I do a gbp_pl site I’ll try that approach, thanks for the tip.

Indeed, it is.

qrayg wrote:

I think it’s just best to stick with ?messy mode and build out all your URL scenarios using the plugin prefs.

And this one too.

Sometimes it’s a hard-to-tame plugin, somewhat frustrating, but then, it can make some wonders with URLs too.


La música ideas portará y siempre continuará

TXP Builders – finely-crafted code, design and txp

Offline

#621 2013-09-25 18:49:43

milosevic
Member
From: Madrid, Spain
Registered: 2005-09-19
Posts: 390

Re: gbp_permanent_links

I have been trying to understand this pluging for several years and I have never succeded.

Does any one could upload one or to samples of a desired URL pattern and a screenshot showing how to set it on working? I will be really thankfully!

Last edited by milosevic (2013-09-25 18:50:05)


<txp:rocks/>

Offline

#622 2013-09-25 22:44:34

tye
Member
From: Pottsville, NSW
Registered: 2005-07-06
Posts: 859
Website

Re: gbp_permanent_links

I used messy most of the time (matches my coding :)) – but obviously my textpattern google sitemap results were messy too :(

Compromise

Offline

#623 2013-10-22 05:53:58

MarcoK
Plugin Author
From: Como
Registered: 2006-10-17
Posts: 248
Website

Re: gbp_permanent_links

milosevic wrote:

I have been trying to understand this pluging for several years and I have never succeded.
Does any one could upload one or to samples of a desired URL pattern and a screenshot showing how to set it on working? I will be really thankfully!

I have the same trouble. Can someone write some example?

Last edited by MarcoK (2013-10-22 05:54:18)

Offline

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

planeth
Plugin Author
From: Nantes, France
Registered: 2009-03-19
Posts: 240
Website GitHub Mastodon

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

#625 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

#626 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

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

THE BLUE DRAGON
Member
From: Israel
Registered: 2007-11-16
Posts: 638
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

#628 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

#629 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

#630 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

Board footer

Powered by FluxBB