Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#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

#16 2007-11-01 11:00:24

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

Re: Category for all section

What? no.

Example: Article -> “Tricase: GDF Smaschera evasore totale”

Cat. 1 -> Tricase
Cat. 2 ->
Section -> attualita

Offline

#17 2007-11-01 16:07:08

els
Moderator
From: The Netherlands
Registered: 2004-06-06
Posts: 7,458

Re: Category for all section

sraone77, is this the same problem?

Offline

#18 2007-11-01 17:31:06

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

Re: Category for all section

Yes, thanks. I have succeeded. I have done this way:

<txp:if_category>
<txp:asy_wondertag><txp:article_custom category=”<txp:category />” /></txp:asy_wondertag>
<txp:else />
<txp:chh_article_custom listform=“notizia” pgonly=“0” section=“attualita,cronaca,politica,economia,turismo” sort=“Posted desc” />
</txp:if_category>

Offline

#19 2007-11-01 18:04:25

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

Re: Category for all section

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

You can just criteria the articles same time with section and the category – you see. So, no they don’t depend on section, as they are seperated as in the db as well.

Cheers!

Last edited by Gocom (2007-11-01 18:05:29)

Offline

Board footer

Powered by FluxBB