Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
#16 2014-01-31 16:10:30
- GugUser
- Member

- From: Quito (Ecuador)
- Registered: 2007-12-16
- Posts: 1,477
Re: Category list
For example: I wrote:
Caution with the quotation marks in your code.
In your latest code example you repeat the same quotation marks. Why?
Do you read what I write to you or is it better I’ll no longer respond to you?
Last edited by GugUser (2014-01-31 16:14:58)
Offline
#17 2014-01-31 16:34:20
- matteo
- Member
- Registered: 2013-12-19
- Posts: 26
Re: Category list
I apologize if are not as precise.
I change the quotation marks
Offline
#18 2014-01-31 16:50:19
- GugUser
- Member

- From: Quito (Ecuador)
- Registered: 2007-12-16
- Posts: 1,477
Re: Category list
If you publish multiline code, you should begin the first line with bc.. and space. Your example is then shown as:
<ul id="secondary-menu">
<txp:if_article_section name="ricette">
<txp:category_list wraptag="ul" break="">
<li<txp:if_category name='<txp:category />'> class="active"</txp:if_category>>
<txp:category title="1" link="1" section="ricette" />
</li>
</txp:category_list>
<txp:else />
<txp:article_custom section='<txp:section />' status="live" limit="999">
<li><txp:permlink><txp:title /></txp:permlink></li>
</txp:article_custom>
</txp:if_article_section>
</ul>
BTW: Status “live” isn’t necessary, it’s default.
Offline
#19 2014-01-31 18:37:53
- els
- Moderator

- From: The Netherlands
- Registered: 2004-06-06
- Posts: 7,458
Re: Category list
matteo wrote #278602:
my url is indeed ?s=ricette&c=dolci-e-biscotti and is empty.
Does the page template for section ‘ricette’ have a <txp:article /> tag? It needs one to display the articles.
Offline