Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2006-10-16 08:54:25

lottad
New Member
Registered: 2006-10-10
Posts: 5

display categories that are in sections which aren't on the first page

Maybe this is a silly beginners question, but I can’t find an easy answer neither here nor in the FAQ that I can understand and use (maybe if english was my first language but…).

My problem is that when I publish an article in a section that I don’t want to show on the first page the category links does’nt seem to work.

In my example I have a section named food that I don’t want to show on the first page, and for articles in that section I’m using categories like fish, vegetables, pasta etc. But as long as I’ve put NO for “on front page” the category links doesn’t work. As soons as I change the NO to YES in the sections page the category links starts to work again.

I’m using the Three-Columns_MX4_TXP -template and have reinstalled it (I thought that maybe some of the changes I did caused this problem…)
All my sections are using duplicates of the default page template and the same default style.

Thank you ahead of time and I hope I can get this to work in an esy way :)

// Lotta

Offline

#2 2006-10-16 09:00:56

Dragondz
Moderator
From: Algérie
Registered: 2005-06-12
Posts: 1,529
Website GitHub Twitter

Re: display categories that are in sections which aren't on the first page

can you give us a link to your website for testing?

Offline

#3 2006-10-16 09:26:06

lottad
New Member
Registered: 2006-10-10
Posts: 5

Re: display categories that are in sections which aren't on the first page

Here it is, in swedish and I’ve just started to add some articles from my old site
www.curious.nu

the section food is
http://www.curious.nu/mat
and all the categories displayed belongs to articles under that section

for the moment articles in the section food i set to display on the first page, but I can change that

// Lotta

Offline

#4 2006-10-16 09:29:24

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

Re: display categories that are in sections which aren't on the first page

By default, category links point to the frontpage, you can change that by setting the ‘section’ attribute in the category tag. This ‘section’ attribute doesn’t exist in Textpattern 4.0.3, but will be available in the upcoming 4.0.4 version of Textpattern (hopefully released this week).

Without attribute ‘section’, the Fisk category link is:
http://www.curious.nu/category/Fisk/

With the attribute ‘section’ it will be:
http://www.curious.nu/mat/?c=Fisk

Last edited by ruud (2006-10-16 09:31:19)

Offline

Board footer

Powered by FluxBB