Textpattern Forum

You are not logged in. Register | Login | Help

#541 2010-09-10 06:28:36

cain-mi
Plugin Author
Registered: 2005-07-03
Posts: 104
Website

Re: gbp_permanent_links

I’ve stumbled on an issue that I haven’t seen before, which is strange because I’ve used this great plugin quite freqently.

I’m using the pretty standard /section/category/title rule for my permanent links, but enabled for only 1 section (we’ll call it section3).

Works great, except when I’m viewing a category or article under section3, the URLs in the top level navigation of my site (generated using section_list) change from:
example.com/section1/
example.com/section2/
example.com/section3/

to:
example.com/section1/current_category/
example.com/section2/current_category/
example.com/section3/current_category/
current_category being the category currently being viewed, or the category of the article currently being viewed.

Anyone know how to stop this?
I can disable join_pretext_to_pagelinks but that stuffs up the second level navigation in section3, i.e. it becomes:
example.com/category/category1/
example.com/category/category2/
example.com/category/category3/

instead of (the correct):
example.com/section3/category1/
example.com/section3/category2/
example.com/section3/category3/

Any tips would be great. I don’t particularly want to hard code it in the plugin.
Also, I hope this wasn’t too confusing.

Cheers,
cain-mi

Last edited by cain-mi (2013-10-10 05:46:13)

Offline

#542 2010-09-14 14:44:52

andreas
Member
Registered: 2004-02-28
Posts: 452
Website

Re: gbp_permanent_links

With graeme’s help I found a solution to my problem.

Using the tag <txp:gbp_disable_permlinks> … </txp:gbp_disable_permlinks> you can tell the plugin to leave certain sections of your site alone.

I enclosed the relevant vdh_flicks tags with the above tags and all works fine.

Offline

#543 2010-09-14 15:03:07

hablablow
Member
From: Paris
Registered: 2004-12-13
Posts: 309
Website

Re: gbp_permanent_links

Andreas you saved my day with your post…
This is also the solution to my problem
Thanks !


_
_I plant seeds for future visions. Farmer of your eyes. Subliminal engineer of your minds. eion founder__

Hablablow + Webdesignofficina

Offline

#544 2010-09-14 15:12:25

hablablow
Member
From: Paris
Registered: 2004-12-13
Posts: 309
Website

Re: gbp_permanent_links

There’s an issue I have come across using this plugin. In the Permanent Links tab: List, Build, Preferences, and Edit, they all point to siteurl/textpattern/…
In a multisite setup the path is siteurl/admin/…
Links have to be changed manually in your browser to reach the links…
Anyone came across this ?
And knows which values to change in the library and the plugin ?
Thanks !


_
_I plant seeds for future visions. Farmer of your eyes. Subliminal engineer of your minds. eion founder__

Hablablow + Webdesignofficina

Offline

#545 2010-09-15 01:17:21

cain-mi
Plugin Author
Registered: 2005-07-03
Posts: 104
Website

Re: gbp_permanent_links

Thanks very much Andreas, perfect.

Offline

#546 2010-09-24 04:18:27

cain-mi
Plugin Author
Registered: 2005-07-03
Posts: 104
Website

Re: gbp_permanent_links

Graeme,

I’ve got a little bug, which I think has to do with gbp_permanen_links.

Problem can be reproduced by:

  1. Starting with fresh 4.2.0 install
  2. Upload and activate gbp_permanen_links (and gbp_admin_library obviously)
  3. Add the site-wide rule section/category/title
  4. Add a new article called ‘about’ in the section ‘about’ and give it a category
  5. Go to your new site, and click the section link ‘About’

Provided you’re using the stock Pages and Forms, you should see some errors regarding <txp:link_to_next>, which I think is caused by the <txp:if_individual_article> tag returning true incorrectly (it should return false because you are viewing the section, not the individual article). This seems to be a case when there is an article with the same title (and therefore URL part) as a section – something to do with algorithms in gbp_permanen_links perhaps?

Its worth noting that disabling the plugin and refreshing will get rid of all the errors.

Edit: It almost definitely has to do with the logic in the cleaver partial match tests.

I’ve implemented a rough hack to disable it in the mean time, but is there any chance this could be added as a pref so it can be disabled if necessary?

Your thoughts would be appreciated.

Cheers,
cain-mi

Last edited by cain-mi (2013-10-10 05:46:20)

Offline

#547 2010-10-01 09:36:25

jodeci
Member
From: Taipei
Registered: 2008-01-13
Posts: 30
Website

Re: gbp_permanent_links

Sorry if this has been asked before, but the only search result that came back was in German!

After installing gbp_permanent_links, I get 404 errors when I “preview” articles that are not of “live” status.
Preview as in: http://domain.com/section/id/?txpreview=id.timestamp

Any suggestions? Thanks!

Offline

#548 2010-11-03 22:47:53

smd_ksu
Member
Registered: 2008-12-23
Posts: 25

Re: gbp_permanent_links

Is there a trick to using <txp:gbp_disable_permlinks>? I am trying to use it around upm_date_menu with no luck.

Offline

#549 2010-11-14 22:29:28

Els
Admin
From: The Netherlands
Registered: 2004-06-06
Posts: 7,388
Website

Re: gbp_permanent_links

Since Txp 4.3.0: using the standard section/category/title rule, going to a section/category URL made <txp:if_category> return false (see post JanDW).


<txp:Els /> ;)
Tag Reference | Unexpected behaviour? Check the tag trace | Still no clue? Check the names of your custom fields

Online

#550 2010-11-23 04:47:24

cain-mi
Plugin Author
Registered: 2005-07-03
Posts: 104
Website

Re: gbp_permanent_links

Els wrote:

Since Txp 4.3.0: using the standard section/category/title rule, going to a section/category URL made <txp:if_category> return false (see post JanDW).

Post 546 related.

Offline

Board footer

Powered by FluxBB