You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/channels/entries.md
+26-6Lines changed: 26 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -106,17 +106,17 @@ This parameter lets you set a different limit for the category display than the
106
106
107
107
category="2"
108
108
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.
110
110
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.
112
112
113
113
category="2|45|4|9"
114
114
115
115
Or use "not" to exclude categories
116
116
117
117
category="not 4|5|7"
118
118
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
120
120
121
121
category="3&7&8"
122
122
@@ -130,6 +130,8 @@ NOTE: **Note:** If you are using exclusion (`category="not 3|4"`) and an entry i
130
130
131
131
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.
132
132
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
+
133
135
### `category_group=`
134
136
135
137
category_group="2"
@@ -160,6 +162,18 @@ Or you can add the word "not" (with a space after it) to exclude channels:
160
162
161
163
You must specify this parameter if you use the [category name in URL](control-panel/settings/content-design.md) feature.
162
164
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
+
163
177
### `disable=`
164
178
165
179
disable="categories"
@@ -327,15 +341,21 @@ Or exclude roles using "not"
327
341
328
342
limit="12"
329
343
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.
331
351
332
352
### `month_limit=`
333
353
334
354
month_limit="30"
335
355
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`
0 commit comments