Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

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

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

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

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

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

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

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

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

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

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

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

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

#587 2011-10-26 21:22:38

Manaus
Member
From: Turin, Italy
Registered: 2010-10-22
Posts: 251
Website

Re: gbp_permanent_links

Hello,
sorry I can’t get the knack of this plugin…
I try to recap:

First section is ‘rule’. This is how the url will look like
Settings is name;
Conditions is the scope of the perm link rule;
Destination if you want forwarding between sections

I’d like to show /section5/article3 as /article3: i entered component type: title/, then conditions: ‘within section3’.
But clicking on the article3 perm link (url is correct) loads the default section (homepage) with the article list…

Btw it is working if no section is defined in the scope.

Thanks……

Last edited by Manaus (2011-10-26 21:24:50)

Offline

#588 2011-11-04 13:09:20

Manaus
Member
From: Turin, Italy
Registered: 2010-10-22
Posts: 251
Website

Re: gbp_permanent_links

Specifically,
if I use only title as permanent link rule, I get the right article, displayed in the default page.
That is maybe because there is no section defined in the url. I wonder: does the page generation occur before or after the url request?

Offline

Board footer

Powered by FluxBB