View matcher reference¶
You can use the following matchers to match content views:
Identifier | Matches |
---|---|
Id\Content |
ID number of the content item. |
Id\ContentType |
ID number of the content type that the content item belongs to. |
Identifier\ContentType |
Identifier of the content type that the content item belongs to. |
Id\ContentTypeGroup |
ID number of the group containing the content type that the content item belongs to. |
Id\Location |
ID number of a Location. |
Id\LocationRemote |
Remote ID number of a Location. |
Id\ParentContentType |
ID number of the parent content type. |
Identifier\ParentContentType |
Identifier of the parent content type. |
Id\ParentLocation |
ID number of the parent Location. |
Id\Remote |
Remote ID of a content item. |
Id\Section |
ID number of the Section that the content item belongs to. |
Identifier\Section |
Identifier of the Section that the content item belongs to. |
Depth |
Depth of the Location. The depth of a top level Location is 1. |
UrlAlias |
Virtual URL of the Location. |
Product attribute value | Value of product attributes. |
Product code | Product code. |
Product type | Product type. |
Product availability | Product availability. |
Product | Whether the object is a product. |
Product catalog root | Whether the Location is the root of a product catalog. |
Taxonomy entry ID | ID of taxonomy entry. |
Taxonomy entry identifier | Identifier of taxonomy entry. |
Taxonomy entry level | Level of taxonomy entry. |
Taxonomy type | Taxonomy type. |
Tip
Each matcher has a scalar value or an array of scalar values. When an array is passed, it matches on one of its values.
You can also create custom view matchers.
Id\Content¶
Matches the ID number of a content item.
1 2 |
|
Id\ContentType¶
Matches the ID number of a content type that the content item belongs to.
1 2 |
|
Identifier\ContentType¶
Matches the identifier of the content type that the content item belongs to.
1 2 |
|
Id\ContentTypeGroup¶
Matches the ID number of the content type Group that the content item belongs to.
1 2 |
|
Id\Location¶
Matches the ID number of a Location. In the case of a content item, matched against the main Location.
1 2 |
|
Id\LocationRemote¶
Matches the Remote ID number of a Location. In the case of a content item, matched against the main Location.
1 2 |
|
Id\ParentContentType¶
Matches the ID number of the parent content type. In the case of a content item, matched against the main Location.
1 2 |
|
Identifier\ParentContentType¶
Matches the identifier of the parent content type. In the case of a content item, matched against the main Location.
1 2 |
|
Id\ParentLocation¶
Matches the ID number of the parent Location. In the case of a content item, matched against the main Location.
1 2 |
|
Id\Remote¶
Matches the remote ID number of a content item.
1 2 |
|
Id\Section¶
Matches the ID number of the Section that the content item belongs to.
1 2 |
|
Identifier\Section¶
Matches the identifier of the Section that the content item belongs to.
1 2 |
|
Depth¶
Matches the depth of the Location. The depth of a top level Location is 1.
1 2 |
|
UrlAlias¶
Matches the virtual URL of the Location. Matches when the URL alias of the Location starts with the value passed.
1 2 |
|
Product attribute value¶
Ibexa\Contracts\ProductCatalog\ViewMatcher\ProductBased\AttributeValue
matches the value of product attributes.
1 2 |
|
Product code¶
Ibexa\Contracts\ProductCatalog\ViewMatcher\ProductBased\ProductCode
matches the product code.
1 2 |
|
Product type¶
Ibexa\Contracts\ProductCatalog\ViewMatcher\ProductBased\ProductType
matches the product type.
1 2 |
|
Product availability¶
Ibexa\Contracts\ProductCatalog\ViewMatcher\ProductBased\IsAvailable
matches the availability of a product.
Refers to the existence of availability, not to whether the product is in stock.
1 2 |
|
Product¶
Ibexa\Contracts\ProductCatalog\ViewMatcher\ProductBased\IsProduct
matches when the object is a product.
1 2 |
|
Product catalog root¶
Ibexa\Contracts\ProductCatalog\ViewMatcher\LocationBased\RootLocation
matches depending on whether the Location is the root of a product catalog.
1 2 |
|
Taxonomy entry ID¶
Ibexa\Taxonomy\View\Matcher\TaxonomyEntryBased\Id
matches based on an ID of the taxonomy entry.
1 2 |
|
Taxonomy entry identifier¶
Ibexa\Taxonomy\View\Matcher\TaxonomyEntryBased\Identifier
matches based on an identifier of the taxonomy entry.
1 2 |
|
Taxonomy entry level¶
Ibexa\Taxonomy\View\Matcher\TaxonomyEntryBased\Level
matches based on a level of the taxonomy entry.
With this matcher, you can apply view rules based on a selection of taxonomy entry levels, by using the following logical operators: <
, >
, <=
, >=
, =
.
1 2 |
|
Taxonomy type¶
Ibexa\Taxonomy\View\Matcher\TaxonomyEntryBased\Taxonomy
matches based on a type of taxonomy that the taxonomy entry belongs to.
1 2 |
|