The content-archives component (Vvveb\Component\Content\Archives) builds a date-based archive index (month/year) for posts, with post counts per period. It powers blog archive widgets and archive pages.

Activate the component by adding:

data-v-component-content-archives

Component Options

Add options as HTML attributes using the data-v-* syntax.

Option Attribute Description Default
start data-v-start Starting offset 0
limit data-v-limit Number of archive entries 0 (all)
language_id data-v-language_id Language ID 1
site_id data-v-site_id Site ID 1
count data-v-count Include post counts, overridable from URL 4
order data-v-order Sorting rules, overridable from URL url fallback price asc
type data-v-type Post type to archive post
interval data-v-interval Grouping interval (month, year, …) month
id_manufacturer data-v-id_manufacturer Legacy filter, unused for posts null
id_category data-v-id_category Legacy filter, unused for posts null

Component Properties

Each entry renders inside data-v-archives / data-v-archive repeatables with the archive period (year, month), post count and archive URL fields.

HTML Example

<div data-v-component-content-archives data-v-interval="month">
	<div data-v-archives>
		<div data-v-archive>
			<a href="" data-v-archive-url><span data-v-archive-name></span></a>
			<span data-v-archive-count></span>
		</div>
	</div>
</div>