Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2007-10-26 09:26:06

sraone77
Member
Registered: 2007-08-23
Posts: 11

Category for all section

How do I do to assign a category for all the sections?

Example:

<txp:category_list section=“Section1,Section2,Section3,… “ />

so it doesn’t work.

Help!

Offline

#2 2007-10-26 12:01:38

Gocom
Developer Emeritus
From: Helsinki, Finland
Registered: 2006-07-14
Posts: 4,533
Website

Re: Category for all section

Default section-attribute is unset, and empty, resulting in links without section restriction. So answer is:

<txp:category_list />

Leave section="" empty…

Cheers!

Last edited by Gocom (2007-10-26 12:02:32)

Offline

#3 2007-10-26 12:29:16

sraone77
Member
Registered: 2007-08-23
Posts: 11

Re: Category for all section

Sorry but the url don’t correspond

example:

If i click on the article “Tricase: GDF Smaschera total evader” the url is:

http://www.paesenostro.it/attualita/75/TRICASEGDFSmascheraevasoretotaleper23MlndiEuro

If i click on the category “Tricase” the url is:

http://www.paesenostro.it/categoria/Tricase/

ok?

Instead leaving section = “actuality” the url is

http://www.paesenostro.it/attualita/?c=Tricase

but it works only for the section “attualita”

Offline

#4 2007-10-30 03:40:39

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

Re: Category for all section

So what are you trying to accomplish?

Offline

#5 2007-10-30 08:54:09

sraone77
Member
Registered: 2007-08-23
Posts: 11

Re: Category for all section

The categories work only with one section and not with everybody even if i leave section=”“.

Offline

#6 2007-10-30 10:00:15

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

Re: Category for all section

Do you have an article tag on your default page? If you don’t…

<txp:if_category>
	<!-- if trying to view category list -->
	<txp:article />
<txp:else />
	<!-- otherwise, show this -->
</txp:if_category>

Offline

#7 2007-10-30 11:26:54

sraone77
Member
Registered: 2007-08-23
Posts: 11

Re: Category for all section

It is sorry it doesn’t work. the problem is that the connections not correspond.
Example:

If i click on the category “Tricase” the url is http://www.paesenostro.it/categoria/Tricase/
If i click on the article “Tricase” the url is http://www.paesenostro.it/attualita/75/TRICASEGDFSmascheraevasoretotaleper23MlndiEuro

understands?

Try to click on “Tricase: GDF Smaschera evasore totale” in the site www.paesenostro.it
Then try to click to the right in the form “Notizie dai paesi
“ to item “Tricase”. Ok?

Offline

#8 2007-10-30 23:44:37

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

Re: Category for all section

sraone77 wrote:

If i click on the category “Tricase” the url is http://www.paesenostro.it/categoria/Tricase/
If i click on the article “Tricase” the url is http://www.paesenostro.it/attualita/75/TRICASEGDFSmascheraevasoretotaleper23MlndiEuro

That is what is supposed to happen.

?

Offline

#9 2007-10-31 09:06:31

sraone77
Member
Registered: 2007-08-23
Posts: 11

Re: Category for all section

I want that click in the category “Tricase”, the site shows all the articles on “Tricase” of all the sections.

Offline

#10 2007-10-31 14:23:22

Gocom
Developer Emeritus
From: Helsinki, Finland
Registered: 2006-07-14
Posts: 4,533
Website

Re: Category for all section

I want that click in the category “Tricase”, the site shows all the articles on “Tricase” of all the sections.

So it does. Example http://www.paesenostro.it/categoria/Tricase/ shows all articles in category “Tricase”, dependless of the section.

Cheers!

Last edited by Gocom (2007-10-31 14:23:42)

Offline

#11 2007-10-31 14:37:46

sraone77
Member
Registered: 2007-08-23
Posts: 11

Re: Category for all section

Yes, but the articles of Tricase i set to the category Tricase, they are not here http://www.paesenostro.it/categoria/Tricase/ but here http://www.paesenostro.it/attualita/75/TRICASEGDFSmascheraevasoretotaleper23MlndiEuro

Exactly:

http://www.paesenostro.it/“name section”/“number article”/“title article”

Offline

#12 2007-11-01 01:41:35

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

Re: Category for all section

I don’t understand what the problem is.

An individual article with the category “Tricase” is here:
http://www.paesenostro.it/attualita/75/TRICASEGDFSmascheraevasoretotaleper23MlndiEuro

And the listing of all articles with the category “Tricase” (including the one above) are here:
http://www.paesenostro.it/categoria/Tricase/

That is what is supposed to happen.

Offline

#13 2007-11-01 09:33:55

the_ghost
Plugin Author
From: Minsk, The Republic of Belarus
Registered: 2007-07-26
Posts: 907
Website

Re: Category for all section

Gocom wrote:

Default section-attribute is unset, and empty, resulting in links without section restriction. So answer is:

<txp:category_list />
Leave section="" empty…

Hm.. I’m little confused – are categories depend on sections? I thought categories and sections exist regardless of each other…


Providing help in hacking ATM! Come to courses and don’t forget to bring us notebook and hammer! What for notebook? What a kind of hacker you are without notebok?

Offline

#14 2007-11-01 09:41:03

sraone77
Member
Registered: 2007-08-23
Posts: 11

Re: Category for all section

No unfortunately, the listing of all articles it is not the category “Tricase” but in the corresponding section.

In fact if i insert section=“attualita” everything is all right, because all the articles of “Tricase” of the section “attualita” are seen.

But if I remove section=“attualita” it goes out always the homepage.

Offline

#15 2007-11-01 09:53:27

the_ghost
Plugin Author
From: Minsk, The Republic of Belarus
Registered: 2007-07-26
Posts: 907
Website

Re: Category for all section

sraone77 – may be you attached more than one category to some articles?


Providing help in hacking ATM! Come to courses and don’t forget to bring us notebook and hammer! What for notebook? What a kind of hacker you are without notebok?

Offline

Board footer

Powered by FluxBB