Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#391 2008-05-31 21:27:51

SPenguin
Member
From: London, UK
Registered: 2006-07-13
Posts: 14
Website

Re: gbp_permanent_links

graeme wrote:

But now is the time to give me your feature requests. What would you like to be possible which isn’t already?

Is there any possibility of getting it to read my mind, and tell me what to do?

John

Offline

#392 2008-06-10 09:20:57

kemie
Plugin Author
From: mexico<-->sweden
Registered: 2004-05-20
Posts: 495
Website

Re: gbp_permanent_links

yipee!
I’m also in favor of documentation. It has taken lots of experimentation to find out what options do, and how I can get them to work :)


~~~~~~~~~~~~~| monolinea.com | pixilate.com | istockphoto.com/kemie |~~~~~~~~~~~~~

Offline

#393 2008-07-22 08:30:26

Vitaliy
New Member
Registered: 2008-07-22
Posts: 2

Re: gbp_permanent_links

Hi everybody. Sorry for my half bad english (i’m russian).
I am in some trouble working not as much with plug’in as with txp logic.

i guess satisfaction of my mission is defined here:
http://forum.textpattern.com/viewtopic.php?pid=161252#p258 (post 258)
Even when i did like it says there, i have a problem.

The thing is: i did a little nesting (if this is an apropriate word). when i create an article (i mean a new page) as you know it’s always attached to the section. BUT what i need, is this page to be opened ONLY from subsection Site.ru/article/category/ I mean that link should go here Site.ru/article/category/1/ , and he goes to, but it shouldn’t be dubbed (i mean written) on page Site.ru/section/ . there should be nesting (or how you say it, maybe “inlay”). elementary logic.

So it’s not a problem with plug’in. I guess it’s a problem with the abridgment of a whole txp. What should i do with it?
Thanks a lot for attention.

Last edited by Vitaliy (2008-07-22 08:34:12)

Offline

#394 2008-07-30 15:35:25

graeme
Plugin Author
Registered: 2004-06-21
Posts: 337
Website

Re: gbp_permanent_links

Vitaliy wrote:

So it’s not a problem with plug’in. I guess it’s a problem with the abridgment of a whole txp. What should i do with it?
Thanks a lot for attention.

Yes this is more a limitation (or you could call it a feature) of Textpattern. I’ll have a think about how you might be able to overcome this.

Offline

#395 2008-07-30 15:43:25

graeme
Plugin Author
Registered: 2004-06-21
Posts: 337
Website

Re: gbp_permanent_links

The gbp_permanent_links repro is now on GitHub. The new version is under a different branch – not usable yet but feel free to take a look.

If people feel incline to add features or make some changes just let me know!

Offline

#396 2008-08-29 10:41:04

johnny_fx
New Member
From: Bulgaria
Registered: 2006-04-27
Posts: 8
Website

Re: gbp_permanent_links

Hi.
I use “smd_if” and have links like this:
http://mysite.com/section/info?p=structure

I want the link look like this:
http://mysite.com/section/info/structure

Is it possible?

Offline

#397 2008-08-29 13:42:04

graeme
Plugin Author
Registered: 2004-06-21
Posts: 337
Website

Re: gbp_permanent_links

johnny_fx wrote:

I use “smd_if” and have links like this:
http://mysite.com/section/info?p=structure

I want the link look like this:
http://mysite.com/section/info/structure

Is it possible?

Current no. I’m working on a new version where it will be possible for plugin authors to add new url segments

Offline

#398 2008-10-05 11:32:22

johnnie
Member
Registered: 2007-03-10
Posts: 58

Re: gbp_permanent_links

I have set the txp permlink to messy and I set up a basic scheme of /section/title/ using the plugin. I now have the following problem:

- When somebody goes to /gibberish it will somehow display the main page, instead of giving the expected 404. This will cause major duplicate content issues, as every invalid URL will present with the main page!

- Also, somehow /title/ also seems to work. I have not set this up and I do not want this, as it causes confusion between article pages and section pages if an article has a title equal to a section name…

A workaround to the first problems, is to set txp’s permlink scheme to /section/id/title, although this is undesirable. I have not found a workaround for the second problem. Is there a fix to this? Am I forgetting something?

Last edited by johnnie (2008-10-05 11:55:32)

Offline

#399 2008-10-14 04:18:42

nabrown78
Member
From: Northampton, MA, USA
Registered: 2006-10-04
Posts: 294
Website

Re: gbp_permanent_links

This seems like such a powerful plugin, and it SEEMS to be exactly what I need, but for the life of me I cannot figure out how to make it work as I want. I feel like I’ve tried every combo…I want to output pages like siteurl/category that would display a list of articles from section “articles”; the permalinks for these articles would be like siteurl/category/title. It seems like a basic set-up, but I haven’t been able to do it. The key for me is that siteurl/category_x and siteurl/category_y would use the same page template, but output articles from the respective category.
One fundamental question – if I have my TXP clean url preferences set to /title – how does that affect things. I guess, what ‘precedence’ does that have?
Also, if one uses a url scheme that doesn’t have a section in it, then when outputing an article list, how does textpattern know what page to use?
Again, this is a fantastic plugin, and I can tell a LOT of hours have been spent on it. I’d happily donate if I could only figure out how to use it on my site!

Thanks in advance for any help.

Offline

#400 2008-10-14 12:31:23

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

Re: gbp_permanent_links

nabrown78 wrote:

I want to output pages like siteurl/category that would display a list of articles from section “articles”; the permalinks for these articles would be like siteurl/category/title. It seems like a basic set-up, but I haven’t been able to do it. The key for me is that siteurl/category_x and siteurl/category_y would use the same page template, but output articles from the respective category.

I think I have my sites set up like how you want yours. I have /section/category/title/ urls but I can also display articles depending on the url. So /section/category and just /section/ work just fine. Here’s my set up:

  • I set my link mode to ?messy.

Under the Permanent Links tab:

  • /section/category/title/ Precedence: 3
  • /section/title/ Precedence: 2
  • /section/category/category/ Precedence: 1
  • /section/ Precedence: 0

My page template looks like this:

<txp:if_category>

//-- Category Display

<txp:else />

<txp:if_article_list>

//-- Article List

<txp:else />

//-- Individual Article

</txp:if_article_list>

</txp:if_category>

Sites that use this scheme:

The downfall to this setup is that every article that has the possibility of being listed in a category view or through a search has to have at least 1 category set. If a category is not set you will start to get // in some url situations. Also, the plugin seems to force a url pattern depending on what view you are in. So, if you have a listing of articles that do not have a category set while in a section view, those permalinks will not obey the /section/category/title/ pattern.

Supposedly this plugin is in the middle a huge revamp but it’s been months since we’ve heard anything on its progress.

Last edited by qrayg (2008-10-14 12:32:13)

Offline

#401 2008-10-14 17:37:43

graeme
Plugin Author
Registered: 2004-06-21
Posts: 337
Website

Re: gbp_permanent_links

qrayg wrote:

Supposedly this plugin is in the middle a huge revamp but it’s been months since we’ve heard anything on its progress.

I’m still working on it when I get the chance. Been quite busy with real work for the past couple of months.

Offline

#402 2008-10-14 17:47:58

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

Re: gbp_permanent_links

graeme wrote:

I’m still working on it when I get the chance. Been quite busy with real work for the past couple of months.

I totally understand. No disrespect at all, I love the existing plug-in and use it on every site I produce.

Offline

#403 2008-11-29 16:11:47

december76
Member
From: Malmö, Sweden
Registered: 2004-05-18
Posts: 45
Website

Re: gbp_permanent_links

Hello.

It seems gbp_permanent_links causes some issues in Txp 4.0.7. In my case it caused pagination (txp:older / txp:newer) to fail, as well as evoke some error messages in debug mode.

See the following two threads:

http://forum.textpattern.com/viewtopic.php?id=29034

http://forum.textpattern.com/viewtopic.php?id=29035

Any chance of an update soon? I’m having a hard time living without this excellent plugin.

/Joakim

Offline

#404 2008-11-29 16:32:53

ruud
Developer Emeritus
From: a galaxy far far away
Registered: 2006-06-04
Posts: 5,068
Website

Re: gbp_permanent_links

The PHP Notice messages when using this plugin in TXP 4.0.7 can probably be fixed by applying a small one line patch
I’m not sure what’s causing older/newer to fail.

Last edited by ruud (2008-11-29 16:33:16)

Offline

#405 2008-11-29 16:47:16

ruud
Developer Emeritus
From: a galaxy far far away
Registered: 2006-06-04
Posts: 5,068
Website

Re: gbp_permanent_links

I think the older/newer tags can be fixed with this patch (not tested):

--- gbp_permanent_links-0.11.669.orig 2008-11-29 17:45:19.000000000 +0100
+++ gbp_permanent_links-0.11.669.new 2008-11-29 17:45:19.000000000 +0100
@@ -694,13 +694,21 @@
 			return false;

 		return true;
 	}

-	function _permlinkurl ($article_array, $pl_index = NULL) {
+	function _permlinkurl ($article_array, $pl_index = NULL, $type = PERMLINKURL) {
 		global $pretext, $prefs, $production_status;

+		if ($type == PAGELINKURL)
+		{
+			unset($prefs['custom_url_func']);
+			$url = pagelinkurl($article_array);
+			$prefs['custom_url_func'] = '_permlinkurl';
+			return $url;
+		}
+
 		if (empty($article_array)) return;

 		if ($pl_index)
 			$pl = $this->get_permlink($pl_index);
 		else {

Offline

Board footer

Powered by FluxBB