Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#571 2011-06-06 13:58:22

oliverker
Plugin Author
From: Huddersfield
Registered: 2008-07-14
Posts: 90
Website

Re: gbp_permanent_links

oliverker wrote:

Im trying to use gbp_permanent_links and MLP together, all works kind of ok, until I try switch languages (english to french) using <txp:l10n_lang_list/> where it changes the the url apart from the language slug.

I will have a job using these two plug-ins coming up soon – could someone who could help please get in touch with a quote to make them work

Thanks

Offline

#572 2011-06-20 21:04:55

johnstephens
Plugin Author
From: Woodbridge, VA
Registered: 2008-06-01
Posts: 1,000
Website

Re: gbp_permanent_links

Sorry it took me so long to come back to this. Here’s what I did:

RewriteRule ^(.*)/(.*)/topic/(.*)$ $1/index.php?s=$2&c=$3 [L]

The first (.*) pattern finds the language requested, and the second finds the section requested. The third search pattern finds the category requested. These correspond to $1, $2, and $3 in the second URL string, which has all the info Textpattern needs to select a template and display the content.

I have a few other custom URL schemas that use different templates, and all of them use .htaccess instead of gpb_permanent_links.

I hope this helps.

Offline

#573 2011-07-05 08:34:17

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

Re: gbp_permanent_links

OK – This is the first time I have looked at this plugin because I was too scared :)

I just read 58 pages and keep seeing the same problem coming up that I’m having, but with no clear fix (unless I am asleep and missed it).

I have these rules setup with precedence:

Section1 section/category/title/ 101
Section2 section/title/ 100
Section3 section/category/title/ 100
Section4 section/title/ 100

I am using <txp:section_list /> and <txp:category_list /> to create my navigation links.

The Categories only show when in Sections 1 & 3.

I’m using ?messy_urls in admin

join_pretext_to_pagelinks is set to yes – in fact my whole preferences are set to the following:

n n n y y y n n y n y

All Section urls work perfectly – section/

The Category & Article urls work perfectly in Sections 1 & 3. section/category/ or section/category/article-title (or

The problem lies when you move from Sections 1 or 3 to Sections 2 or 4 after viewing an article or category – the category is still appended to the end of the url – which is what I don’t want at all :(

I have read references to using <txp:gbp_disable_permlinks> where you don’t want the gbp_permanent_links rules to work – but where do I put this when using <txp:section_list /> and <txp:category_list /> and would this revert to messy urls (because that is the only setting which my rules work on)?

Using txp 4.4.1, php 5.3.6, gbp_permanent_links · 0.14.7

Any tips would greatly appreciated

PS – many thanks Graeme, this plugin has got potential light year mileage (once I get it figured out).

Last edited by tye (2011-07-05 08:35:38)

Offline

#574 2011-07-06 02:46:27

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

Re: gbp_permanent_links

Well – I seem to have this working now :) But I’m not sure if its correct

I had to replace txp:category_list with txp:cbs_category_list, I turned all gbp_permanent_links Preferences to ‘No’ and kept my txp Permanent link mode to ?=messy

I didn’t use <txp:gbp_disable_permlinks> anywhere

Offline

#575 2011-07-06 03:46:57

radneck
Plugin Author
Registered: 2005-07-03
Posts: 109

Re: gbp_permanent_links

Good job getting it working. I had a similar issue and had to resort to hacking up the plugin.
I think the main reason for some of these issues is changed in the latest version of TXP which this plugin hasn’t been updated for.

Offline

#576 2011-07-08 03:29:47

progre55
Member
Registered: 2006-05-02
Posts: 668

Re: gbp_permanent_links

I am trying to get this to work and I thought this plug in could assist but but either I do not know how to use it (which is quite possible) or it cannnot do what I want it to do — I am unable to get the plug in to do anything —-

What I need is increased flexability in the URL-only title field so that I can define the exact url of articles. For a project I am working on the existing url format is:

http://www.example.com/travel/united_states/texas/dallas/hotels_intro.aspx

I need to be able to create Textpattern articles that have the same url structure

http://www.example.com/travel/united_states/texas/dallas/hotels_intro (minus the .aspx)

I can then strip off the .aspx using htaccess and get the articles to function properly.

I already have the old path in a custom filed so my ideal solution would be to tell Textpattern to use xyz custom field instead of URL-only title —-

I am willing to try anything and even to (cover your ears) modify the core it to work.

Also, because of the amount of articles being imported doing a 1 to 1 redirect in the htaccess file would be only a last resort —-

progre55

Last edited by progre55 (2011-07-08 03:31:24)

Offline

#577 2011-07-08 03:46:38

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

Re: gbp_permanent_links

You can use a Custom Field in gbp_permanent_links – I haven’t but they are there when you Build a rule

Offline

#578 2011-07-08 03:53:25

progre55
Member
Registered: 2006-05-02
Posts: 668

Re: gbp_permanent_links

Tye:

Thanks for the reply, but I tried and I must be doing something wrong because I cannot get the plug in to do anything.

  1. The plug in is loaded (gbp_permanent_links/gbp_admin_library)
  2. I created a list called “Test Functionality”
  3. I have this as the Permanent link rule: custom_1 /title /
  4. I have the setting Precedence: 100
  5. I have the conditions to only apply to a specific Section
  6. I have nothing in the Destination because all I am trying to do is rewrite the url.

When I go into the article and click “view” it still shows me the URL-only title path.

Offline

#579 2011-07-08 04:03:27

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

Re: gbp_permanent_links

Hey progre55 – I am no expert on this plugin, I only started using it this week, but what I did to get my rule to work was to play with all the preferences (some of which I have no idea what they do)

My final settings have all preferences set to ‘No’

Maybe give that a go

Offline

#580 2011-07-11 07:31:10

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

Re: gbp_permanent_links

Hi, it’s my first time using this plugin and I have a question please:

I have set a permanent rule to section/category/title and I want to use the <txp:if_category> tag to set different outputs base on category (to kind of fake sub-sections).

And unfortunately the txp:if_category doesn’t work when viewing the page with the new clean permanent, and only works when viewing with the regular messy permanent (?c=category_name).

Is there a way to make the txp:if_category to work with this plugin please?
Or is there any other way/plugin to make the url clean for categories?
(as /section/category/title and not as /section/?c=category/title)

I’m using v0.14.7, and TXP v4.4.1

Offline

#581 2011-07-11 08:18:47

lazyadmin
Member
From: Germany
Registered: 2009-08-08
Posts: 25
Website

Re: gbp_permanent_links

Take a look here, Gil: http://forum.textpattern.com/viewtopic.php?pid=236850#p236850

Last edited by lazyadmin (2011-07-11 08:19:24)

Offline

#582 2011-07-11 08:32:40

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

Re: gbp_permanent_links

lazyadmin wrote:

Take a look here, Gil: http://forum.textpattern.com/viewtopic.php?pid=236850#p236850

Cool thanks!
that solved it :)

And thanks to Els ;)

Offline

#583 2011-08-06 07:41:26

mmelon
Member
Registered: 2006-03-02
Posts: 95

Re: gbp_permanent_links

Hi,

I’ve been browsing this entire thread trying to take in the possibilites afforded by this plugin. I would ideally like to build sites with nested sections and have this reflected in the url: shop/sale/t-shirts for example

another requirement ideally is having it content managed so if people add more sections the urls don’t need configuring.

people have suggested that categories can be repurposed as nested sections as they mantain a parent/child hierarchy.

I can’t for the life of me figure out how.

If I am in a section called ‘about us’, I have used adi menu to spoof that there is a section inside called ‘meet the team’

is there anyway I can make the url reflect

/about-us/meet-the-team/john
/about-us/meet-the-team/dave

instead of

/meet-the-team/john
/meet-the-team/dave

i suppose the extra challenge would be not knowing what the sections might be called. What if about-us was renamed our company?

Thanks for any further insight,
Mike

Last edited by mmelon (2011-08-06 07:44:15)

Offline

#584 2011-08-06 18:09:15

progre55
Member
Registered: 2006-05-02
Posts: 668

Re: gbp_permanent_links

Mike:

I am currently involved with a large project where I am moving a site that has numerous nested articles to TXP. Categories was not an option for me because of the complexity and limitations of TXP categories, but what I have done is used custom fields. Using custom fields has given me a great deal of flexability in combination with Gerhard’s Custom field plug in

I have found that with this plug in I was unsuccesful if I placed the custom fields as the first part of the url — so I have it set now where it is: section/custom 1/custom 2/ etc./title —-

Not sure if this helps but thought I would throw it out there —-

progre55

Offline

#585 2011-09-06 14:49:47

funtoosh
Member
From: Münster, Germany
Registered: 2006-10-09
Posts: 153
Website

Re: gbp_permanent_links

hi there,
the plugin reminded of MT’s URL configuring options, looks great!

i just saw that the plugin has no documentation, but is there an overview somewhere of what the different settings are all about?

cheers,
-f

- – - – 8< – - – - – - – - 8< – - – - – - – -

  1. show_prefix [default: N]
  2. show_suffix [N]
  3. omit_trailing_slash [N]
  4. redirect_mt_style_links [Y]
  5. clean_page_archive_links [Y]
  6. join_pretext_to_pagelinks [Y]
  7. check_pretext_category_context [N]
  8. check_pretext_section_context [N]
  9. force_lowercase_urls [Y]
  10. automatically_append_title [Y]
  11. use_cleaver_partial_matches [Y]
  12. permlink_redirect_http_status [301]
  13. url_redirect_http_status [302]
  14. text_and_regex_segment_scores [0]

Offline

Board footer

Powered by FluxBB