nestacms - Filter articles by category with Nesta CMS -


we want display article summaries given category.

standard index page build this:

%section.articles= article_summaries(latest_articles) 

but see no way of filtering articles category.

ok figured out- list articles category, have assign pages given category , create actual category page each category- i.e. page named same category.

for example, if page assigned categories dogs , cats...

categories: dogs, cats 

i'll need create new pages called dogs.haml , cats.haml, list articles categories standard code found in default page.haml template:

%section.articles   = article_summaries(@page.articles) 

Comments

Popular posts from this blog

c# - Send Image in Json : 400 Bad request -

jquery - Fancybox - apply a function to several elements -

An easy way to program an Android keyboard layout app -