Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
#277 2007-12-30 08:54:49
- jpdupont
- Member
- Registered: 2004-10-01
- Posts: 752
Re: gbp_permanent_links
Hello,
I try to use your plugin without success.
I create a rule “section/category/title/”.
Articles displayed are not displayed the same way with and without the rule.
I’s possible to test here :
(first line = url without the rule)
http://www.gerouville.be/index.php?c=1-creation&s=asbl
http://www.gerouville.be/asbl/1-creation/
Seems to be correct : don’t work when the user click on the second vertical menu (yellow)
http://www.gerouville.be/index.php?c=2-buts&s=asbl
http://www.gerouville.be/asbl/2-buts/
Display the first category (horizontal menu) again, and article is displayed twice.
http://www.gerouville.be/index.php?c=3-membres&s=asbl
http://www.gerouville.be/asbl/3-membres/
Display the second category (must be category 3). article displayed twice …
http://www.gerouville.be/index.php?c=4-activites&s=asbl
http://www.gerouville.be/asbl/4-activites/
…
Thanks for the help !
Offline
#278 2007-12-30 13:57:50
- guiguibonbon
- Member
- Registered: 2006-02-20
- Posts: 296
Re: gbp_permanent_links
Could you turn on the plugin’s debugging?
Offline
#279 2007-12-30 14:56:35
- jpdupont
- Member
- Registered: 2004-10-01
- Posts: 752
Re: gbp_permanent_links
I just turn on the rule and debugging (plugin and txp).
Offline
#280 2007-12-30 15:35:44
- guiguibonbon
- Member
- Registered: 2006-02-20
- Posts: 296
Re: gbp_permanent_links
strange, he adds an id to pretext… Try making a section/category/ permalink rule (without title).
Offline
#281 2007-12-30 17:08:09
Re: gbp_permanent_links
The ID in pretext is being added by the default textpattern URL processor. This might be because the default permanent link style is set to section/title
and there an article with the same url title as the category name.
Try changing the default permanent link style.
Offline
#282 2007-12-30 17:10:15
- guiguibonbon
- Member
- Registered: 2006-02-20
- Posts: 296
Re: gbp_permanent_links
Graeme, you’re back!
Well then, some feature ideas/requests :
- in destination, allow to add a status of articles to pretext
- cache pretexts for each url (would be a huge ressources saver)
- MLP compatibility (where does that stand?)
- subdomains could also stand for something if the dns is correctly configured (section, language,…).
- also found some tiny bugs
grr… had a last one I can’t quite remember. found it
Last edited by guiguibonbon (2007-12-30 17:22:20)
Offline
#283 2007-12-30 17:29:34
Re: gbp_permanent_links
Yes I’m back! :-)
Been working on PL over the past couple of days just getting back into the swing of things. Going over all the missed posts and and fixing any bugs that have been reported. I’ll be making some progress with new features in the coming weeks.
Offline
#284 2007-12-30 17:49:22
- net-carver
- Archived Plugin Author
- Registered: 2006-03-08
- Posts: 1,648
Re: gbp_permanent_links
graeme
Welcome back! Glad to see you here again.
— Steve
Offline
#285 2007-12-30 20:21:21
- jpdupont
- Member
- Registered: 2004-10-01
- Posts: 752
Re: gbp_permanent_links
Done.
Offline
#286 2007-12-31 13:52:14
- guiguibonbon
- Member
- Registered: 2006-02-20
- Posts: 296
Re: gbp_permanent_links
<txp:if_category>
[<txp:if_category>: true]
<txp:article limit=1 />
[SQL (0,002527): select Form from ger_txp_form as txp_form where name='default']
[Module: default]
<txp:permlink>
<txp:title/>
</txp:permlink>
<txp:body/>
</txp:if_category>
<txp:if_individual_article>
[<txp:if_individual_article>: true]
<txp:article/>
[Module: default]
<txp:permlink>
<txp:title/>
</txp:permlink>
<txp:body/>
</txp:if_individual_article>
The plugin is still doing something wrong (id still in pretext for no reason) but you could easily avoid the problem by not putting two article tags right after each other (once between if_category tags, once between if_individual_article tags). Especially since they are using the same form anyway.
Last edited by guiguibonbon (2007-12-31 13:55:54)
Offline
#287 2007-12-31 14:10:06
- jpdupont
- Member
- Registered: 2004-10-01
- Posts: 752
Re: gbp_permanent_links
Thanks,
I explain the code of my page here
It’s not possible to remove one article tag.
Still an other problem, when displaying category “2” when I click on category “3” menu.
Offline
#288 2007-12-31 15:26:04
- guiguibonbon
- Member
- Registered: 2006-02-20
- Posts: 296
Re: gbp_permanent_links
Currently, the articles will be displayed twice on pages with an url like ‘section/cat/title’ because it will both have a category and be a single article. You should set it to :
<txp:if_individual_article>
<txp:article />
<txp:else/>
<txp:if_category>
<txp:article limit=1 />
<txp:else />
<txp:article status="sticky" limit=1 />
</txp:if_category>
</txp:if_individual_article>
Have you set the permlinkmode to messy in txp preferences, as greame suggests above?
Last edited by guiguibonbon (2007-12-31 15:26:54)
Offline