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
Post a Comment