Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#256 2007-11-01 19:56:01

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

Re: gbp_permanent_links

Mmmm…

I think it’s fixed. It seems that I forgot to configure the “Redirect this permanent link to…” in the /section/title rule. I configured it to redirect to the /section/category/title rule.

I did it before my previous post, but it seems that it “didn’t work” because of some server or browser cache.

Now I tried again and it worked as expected.

PD: It would be good to have an expert write some basic documentation for this plug-in, including some examples, je. :D

Last edited by maniqui (2007-11-01 19:58:17)


La música ideas portará y siempre continuará

TXP Builders – finely-crafted code, design and txp

Offline

#257 2007-11-05 14:42:36

Shaliza
Member
Registered: 2006-01-22
Posts: 59

Re: gbp_permanent_links

I agree that an example should be included. I already posted this in another post, but here’s what I’m trying to do:

Let’s say I write an article & the main section for it is News, but it falls under another section called Entertainment. The link should look something like:

domain.com/news/entertainment/article

How exactly would I go about setting this up?

Offline

#258 2007-11-05 15:00:13

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

Re: gbp_permanent_links

“Entertainment” will be more a category than a section. So, you can create an “Entertainement” category, assign the article to that category and then setup a permalink rule like this (in the Permalink tab):

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


La música ideas portará y siempre continuará

TXP Builders – finely-crafted code, design and txp

Offline

#259 2007-11-06 23:50:39

Shaliza
Member
Registered: 2006-01-22
Posts: 59

Re: gbp_permanent_links

That seems to do the trick – thanks!

If I have any problems, I’ll come back.

Offline

#260 2007-11-19 03:25:50

shingoxray
New Member
Registered: 2007-11-12
Posts: 1

Re: gbp_permanent_links

I hope there would be a document describing every detail of the options.
That will be very nice.

Offline

#261 2007-12-08 18:05:04

typeshige
Member
From: USA
Registered: 2005-08-11
Posts: 151
Website

Re: gbp_permanent_links

This is an essential plugin to my project and has worked magnificently except for one case.

Most of my rules are based on text matching, i.e. match “abc/about//.*//” etc.

This has worked as expected except with txp:older and txp:newer tags.

With the plugin off, it wants to go to http site/?pg=x

With the plugin on, it goes to the first text matching rule alphabetically. So it wants to go to http site/abc/about/x

I have a rule that matches section and title, and it never tries to go there.

Actually, I’m not sure if text matching rules is what’s setting it off because all the text matching rules also match wildcards too. Is /.*/ the correct way to match anything?

If this is supposed to happen, what should I do to make the older / newer tags work properly again?

Thanks!

Offline

#262 2007-12-08 18:10:58

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

Re: gbp_permanent_links

I must admit that I didn’t understand too much about your settings (I would like to know what’s that about text matching)

Have you tried wrapping your older/newer tags with the “gbp disable permanent link” tag? (look at the plug-in code to see what’s exactly the way to write the tag, because I can’t remember right now)


La música ideas portará y siempre continuará

TXP Builders – finely-crafted code, design and txp

Offline

#263 2007-12-09 04:09:45

typeshige
Member
From: USA
Registered: 2005-08-11
Posts: 151
Website

Re: gbp_permanent_links

maniqui: Thank you very much for the suggestion. I tried the following:

<txp:gbp_disable_permlinks><txp:older><txp:text item=“older” /></txp:older></txp:gbp_disable_permlinks>

It didn’t make any difference to the output.

My new project needs to emulate section/sub-section/sub-sub-sections/etc and so I have a variety of permlink rules to make that happen using text matching (as opposed to regular-expressions, or sections)

Basically, going to /abc/def/ is the same as going to a section called “abc-def”

It has worked perfectly so far except for the problem with the tag for older/newer articles.

I was scanning the forums and there was some issues with this plugin and the postmaster plugin. Any chance there is something related..?

Thanks

Edit: Solved. I added some new rules. I overlooked the fact that the plugin can match page numbers.

Last edited by typeshige (2007-12-10 19:07:35)

Offline

#264 2007-12-17 01:46:48

Shaliza
Member
Registered: 2006-01-22
Posts: 59

Re: gbp_permanent_links

Not sure what happened, but it no longer works for me. Now I get a 404 page. I only have three other plugins installed:

gbp_admin_library [active obviously]
chh_title [active]
rss_suparchive [not active]

I tried making chh_title inactive, but that didn’t do the trick. Anyone know what the problem might be?

Last edited by Shaliza (2007-12-17 02:04:44)

Offline

#265 2007-12-17 20:39:42

Shaliza
Member
Registered: 2006-01-22
Posts: 59

Re: gbp_permanent_links

Anyone?

Offline

#266 2007-12-17 20:42:19

guiguibonbon
Member
Registered: 2006-02-20
Posts: 296

Re: gbp_permanent_links

Could you turn debugging on and copy the given code, or just point us to an url?

Offline

#267 2007-12-17 21:00:03

Shaliza
Member
Registered: 2006-01-22
Posts: 59

Re: gbp_permanent_links

Edit: Got the help I needed

Last edited by Shaliza (2007-12-19 01:03:49)

Offline

#268 2007-12-17 21:04:36

guiguibonbon
Member
Registered: 2006-02-20
Posts: 296

Re: gbp_permanent_links

Sorry, I should have been more specific. I meant the plugins debugging (admin>permanent links>preferences). It generates code at the top of the page.

Offline

#269 2007-12-17 22:13:01

Shaliza
Member
Registered: 2006-01-22
Posts: 59

Re: gbp_permanent_links

I edited the post.

Offline

#270 2007-12-17 22:22:00

guiguibonbon
Member
Registered: 2006-02-20
Posts: 296

Re: gbp_permanent_links

I the section/title permlink’s option, it seems you have set the rule to only work within the section ‘music’.

Could you confirm that and see what happens when you disable it?

Offline

Board footer

Powered by FluxBB