Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
#397 2008-08-29 13:42:04
Re: gbp_permanent_links
johnny_fx wrote:
I use “smd_if” and have links like this:
http://mysite.com/section/info?p=structureI want the link look like this:
http://mysite.com/section/info/structureIs 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
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
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
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
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
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
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
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
#406 2008-11-29 17:37:38
Re: gbp_permanent_links
I get other errors (Parse error: syntax error, unexpected $end in /home/hertze/public_html/textpattern/lib/txplib_misc.php(574) : eval()'d code on line 1867
) when I apply those patches. I suppose I’ll wait for Graeme to finish work on the new version. I hope it’s soon.
Offline
#407 2008-11-29 17:45:57
Re: gbp_permanent_links
december76 wrote:
I’ll wait for Graeme to finish work on the new version.
New version isn’t ready for the prime time yet. Am working on updating the current version so it’s 4.0.7 compatible.
@ruud, thank you very much for those patches :-)
Offline
#408 2008-11-29 18:01:47
Re: gbp_permanent_links
This should work with Txp 4.0.7
Offline