Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2005-11-14 20:23:21

Lolly
New Member
Registered: 2005-02-04
Posts: 8

permlinks not working

I have lots of sections and my permlinks and comments are only working for the default “article” section and not for the rest of them. anyone know what’s wrong or what i can do to fix it?

thanks.

and if you need to see my site… <a href=“http://www.bananabu.com/”>http://www.bananabu.com/</a>

Offline

#2 2005-11-14 23:07:31

thebombsite
Archived Plugin Author
From: Exmouth, England
Registered: 2004-08-24
Posts: 3,251
Website

Re: permlinks not working

You need to tell TXP what to do in “individual_article” view for those sections. Have a look at the archive page template to see how it’s done. You should end up with something like:-

<code><txp:if_article_list>
blah blah
<txp:else />
blah blah
</txp:if_article_list></code>
<br />

And I’m up for adoption. :grin:

Last edited by thebombsite (2005-11-14 23:09:56)


Stuart

In a Time of Universal Deceit
Telling the Truth is Revolutionary.

Offline

#3 2005-11-15 04:37:24

Lolly
New Member
Registered: 2005-02-04
Posts: 8

Re: permlinks not working

should i create another archive page with that code in it? or put that code in the current one i have? i’m still a little confused, can you explain a little more?

Last edited by Lolly (2005-11-15 04:48:49)

Offline

#4 2005-11-15 05:23:14

Mary
Sock Enthusiast
Registered: 2004-06-27
Posts: 6,236

Re: permlinks not working

Er, it looks fine to me. ???

Offline

#5 2005-11-15 06:04:56

thebombsite
Archived Plugin Author
From: Exmouth, England
Registered: 2004-08-24
Posts: 3,251
Website

Re: permlinks not working

At the moment in your journal section you can see the “Belated Halloween” post. Although you are only showing one post you are actually in article_list view. It’s just that it’s a list of one. When you click the permlink or the reply link TXP is trying to go into individual_article view where you will see the comments and comment entry form but you haven’t told it what to do in this view so it’s balking on you. I don’t know if you have a separate page template for this section or not but wherever your code is for it you need something like this:-

<code>
<txp:if_article_list>
This is where your current code goes
<txp:else />
<txp:article />
</txp:if_article_list></code>
<br />

That extra “article” tag after the “else” tag tells TXP what to do for individual_article view and will automatically pick up the comments list and comment entry form when it switches. How’s that? And now I definitely want adopting. :grin:


Stuart

In a Time of Universal Deceit
Telling the Truth is Revolutionary.

Offline

#6 2005-11-15 07:04:32

Lolly
New Member
Registered: 2005-02-04
Posts: 8

Re: permlinks not working

OOOOKAY!!! i got it thank you very much mr. bombsite

Offline

#7 2005-11-15 07:18:48

thebombsite
Archived Plugin Author
From: Exmouth, England
Registered: 2004-08-24
Posts: 3,251
Website

Re: permlinks not working

No problem. Do come back if it gives you jip. :)


Stuart

In a Time of Universal Deceit
Telling the Truth is Revolutionary.

Offline

Board footer

Powered by FluxBB