Skip to content

Added {category_group_id} and {category_group_name} variables #918

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: 7.dev
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions docs/channels/categories.md
Original file line number Diff line number Diff line change
Expand Up @@ -236,6 +236,14 @@ This variable simply displays the name of the category.

This variable displays the URL title of the category

### `{category_group_id}`

The ID of category group that the category belongs to.

### `{category_group_name}`

The name of the category group that the category belongs to.

### `{count}`

The "count" out of the current categories being displayed. If five categories are being displayed, then for the fourth category the {count} variable would have a value of "4".
Expand Down
10 changes: 9 additions & 1 deletion docs/channels/category-archive.md
Original file line number Diff line number Diff line change
Expand Up @@ -297,7 +297,15 @@ This displays the name of the category.

### `{category_url_title}`

This variable displays the URL title of the category:
This variable displays the URL title of the category

### `{category_group_id}`

The ID of category group that the category belongs to.

### `{category_group_name}`

The name of the category group that the category belongs to.

### `{path}`

Expand Down
8 changes: 8 additions & 0 deletions docs/channels/category-heading.md
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,14 @@ The name of the category being viewed.

The URL title of the category.

### `{category_group_id}`

The ID of category group that the category belongs to.

### `{category_group_name}`

The name of the category group that the category belongs to.

### Custom Category Fields

All custom fields assigned to a category can be accessed using the "short name" of the field:
Expand Down
8 changes: 8 additions & 0 deletions docs/channels/entries.md
Original file line number Diff line number Diff line change
Expand Up @@ -1446,6 +1446,14 @@ The total number of categories being displayed.

This variable displays the URL title of the category

##### `{category_group_id}`

The ID of category group that the category belongs to.

##### `{category_group_name}`

The name of the category group that the category belongs to.

##### `{parent_id}`

The category ID associated with the category's parent (or 0 in the case of a top level category).
Expand Down