The content-category component (Vvveb\Component\Content\Category) displays a single blog category. It extends the base category component (Vvveb\Component\Category) without changing options, so it auto-detects the category from the page URL on category pages.

Activate the component by adding:

data-v-component-content-category

Component Options

Same as the category component:

Option Attribute Description Default
taxonomy_item_id data-v-taxonomy_item_id Category ID, from URL by default url
slug data-v-slug Category slug, from URL by default url
type data-v-type Taxonomy type null
post_type data-v-post_type Post type null
language_id data-v-language_id Language ID Current language
site_id data-v-site_id Site ID Current site

Component Properties

Single-category fields exposed through data-v-category-* attributes: name, slug, content, image, image_url, url, full-url, count, and related taxonomy data.

HTML Example

<div data-v-component-content-category>
	<h1 data-v-category-name></h1>
	<div data-v-category-content></div>
</div>