<p>You will need to use some JavaScript, since all twig code is parsed on the server and sent to the browser as HTML.</p>

CC BY-SA 3.0
2016-06-29T17:58:17.080Z
2016-06-29T17:58:17.080Z
Aaron Berkowitz
<p>I'm creating a portfolio page, and I have a summary list of project entries displayed. At the top of the page, I've got a dropdown displaying a Category field. e.g. <code>craft.categories.group('industry')</code></p>

<p>My question: Is it possible to display/filter entries of a particular category dynamically/immediately when a dropdown entry is selected (using only Twig)? Or do I have to use Javascript?</p>

<p>Sorry for this basic question.</p>

<entries><categories>
Filter Entries within a page dynamically based on category
# Filter Entries within a page dynamically based on category

(Asked by: username_0 on 2016-06-29)

I'm creating a portfolio page, and I have a summary list of project entries displayed. At the top of the page, I've got a dropdown displaying a Category field. e.g. `craft.categories.group('industry')`

My question: Is it possible to display/filter entries of a particular category dynamically/immediately when a dropdown entry is selected (using only Twig)? Or do I have to use Javascript?

Sorry for this basic question.

**Tags:** entries, categories


---

## 1 answers

### Answer by username_1 on 2016-06-29. Score: 1

You will need to use some JavaScript, since all twig code is parsed on the server and sent to the browser as HTML.


---

