Dotclear

Vous n'êtes pas identifié(e).

Annonce

#1 2014-09-07 11:22:31

jarekb
Membre
Inscription : 2014-09-06

How to show entry from just one category [SOLVED]

Hello,

I have few categories following this formula:

News
Reviews
Articles
Interviews
Next category 1
Next category 2
...

By default, Dotclear shows on main site all entries from all categories.

I woluld like to show entries from "News" category only. Is it possible?

I guess, I must edit "home.html" page in my template. I am using Chestnut template.

Any help appreciated.

Dernière modification par jarekb (2014-09-12 06:06:57)

Hors ligne

#2 2014-09-07 11:39:24

Jean-Michel
Modérateur à ailes d'ange
Lieu : Paris
Inscription : 2006-08-22
Site Web

Re : How to show entry from just one category [SOLVED]

Hello,

This theme has a particular structure, but in general when a category is filtered through the home, it does so :
<tpl:Entries category="News">  in place off <tpl:Entries>.

You can read the documentation.

Hors ligne

#3 2014-09-08 15:30:25

jarekb
Membre
Inscription : 2014-09-06

Re : How to show entry from just one category [SOLVED]

Hello Jean-Michel,

Thank you for advice! I've changed the first line od categories-home.html to:

<tpl:Entries category="News">

and now it works like a charm :)

Hors ligne

Vous n'êtes pas identifié(e).

Pied de page des forums

Sites map