Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
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 />
Leavesection=""
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
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
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