Skip to content

Commit d822ea9

Browse files
authored
Update entries.md
Calling more attention to the Related Category Mode, and making a few more tweaks to add detail.
1 parent c5be66b commit d822ea9

File tree

1 file changed

+26
-6
lines changed

1 file changed

+26
-6
lines changed

docs/channels/entries.md

Lines changed: 26 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -106,17 +106,17 @@ This parameter lets you set a different limit for the category display than the
106106

107107
category="2"
108108

109-
Categories are specified by ID number (the ID number of each category is displayed in the Control Panel). The reason we use the ID is because categories can be called anything (with spaces, quotes, etc.), and also renamed. It would be much more difficult to have to update the tag parameters every time you updated a category name. Further, you can have multiple categories with the same name either in different Category Groups or in different parts of the hierarchy within the same Category Group.
109+
Categories are specified by ID number, not name or category_url_title. The reason we use the ID is because categories can be called anything (with spaces, quotes, etc.), and are often renamed. It would be much more difficult to have to update the tag parameters every time you updated a category name. Furthermore, you can have multiple categories with the same name in different Category Groups or even in different parts of the hierarchy within the same Category Group. And category_url_title must be unique within a Category Group, but does not have to be across different Category Groups.
110110

111-
And as with some of the other parameters, you can stack categories to get entries with any of those categories
111+
As with some of the other parameters, you can stack categories to get entries with any of those categories -- the pipe means OR.
112112

113113
category="2|45|4|9"
114114

115115
Or use "not" to exclude categories
116116

117117
category="not 4|5|7"
118118

119-
And, you can use an inclusive stack to only get entries with _all_ of the categories
119+
And, you can use an inclusive stack to only get entries matching _all_ of the categories
120120

121121
category="3&7&8"
122122

@@ -130,6 +130,8 @@ NOTE: **Note:** If you are using exclusion (`category="not 3|4"`) and an entry i
130130

131131
NOTE: **Note:** Using this parameter will automatically cause ExpressionEngine to _ignore_ any category information specified via the URL. For instance, if you are on a "category page" (e.g. a `/C13/` segment in the URL) that will be completely ignored in favor of whatever you have specified via the parameter.
132132

133+
NOTE: **Note:** If you want to list entries related to the current entry by its categories, use the [related_categories_mode](#related_categories_mode) parameter.
134+
133135
### `category_group=`
134136

135137
category_group="2"
@@ -160,6 +162,18 @@ Or you can add the word "not" (with a space after it) to exclude channels:
160162

161163
You must specify this parameter if you use the [category name in URL](control-panel/settings/content-design.md) feature.
162164

165+
### `channel_entries_limit=`
166+
167+
channel_entries_limit="10"
168+
169+
This is used only in [Related Categories Mode](#related_categories_mode). Do not get this confused with the more frequently used [limit=](#limit) parameter.
170+
171+
### `custom_fields=`
172+
173+
custom_fields="yes"
174+
175+
This is used only in [Related Categories Mode](#related_categories_mode). Do not get this confused with the more frequently used [disable=](#disable) parameter.
176+
163177
### `disable=`
164178

165179
disable="categories"
@@ -327,15 +341,21 @@ Or exclude roles using "not"
327341

328342
limit="12"
329343

330-
This parameter limits the number of entries on any given page. The limit will default to 100 entries if a value is not specified. If you are using [pagination](templates/pagination.md) then this will determine the number of entries shown per page.
344+
This common parameter limits the number of entries on any given page. The limit will default to 100 entries if a value is not specified. If you are using [pagination](templates/pagination.md) then this will determine the number of entries shown per page. You can simultaneously set alternative limits for [pages filtered by month](#year-month-day) (`month_limit`) and [pages filtered by category](#category) (`cat_limit`) and [Related Category pages](#related_categories_mode) (`related_categories_mode`).
345+
346+
### `member_data=`
347+
348+
member_data="yes"
349+
350+
This is used only in [Related Categories Mode](#related_categories_mode). Do not get this confused with the more frequently used [disable=](#disable) parameter.
331351

332352
### `month_limit=`
333353

334354
month_limit="30"
335355

336-
This parameter lets you set a different limit for the month display than the regular display. For example, let's say you normally only want 10 entries on your main channel page, but you want 100 entries shown when viewing a specific month. For that, you could do this:
356+
This parameter lets you set a different limit for the month display than the regular display. For example, let's say you normally only want 10 entries on your main channel page, but you want 30 entries shown when viewing in the context of a specific month. For that, you could use this code, and the month limit would be used if the URL was something like: `example.com/blog/2025/10`
337357

338-
{exp:channel:entries limit="10" month_limit="100"}
358+
{exp:channel:entries limit="10" month_limit="30"}
339359

340360
### `offset=`
341361

0 commit comments

Comments
 (0)