Go back to Examples

CMS Select

CMS - Intermediate

CMS select is used if you have a form with a select input and want dynamic content rendered in it from a collection list.

                <label for="category">Choose a category:</label>
<select name="category" id="category">
    <template v-for="category in categories">
        <option v-bind:value="category.slug" v-html="category.name"></option>
    </template>
</select>