From 169538d174abd6c2177d6f07cfcce4c0a0a31e45 Mon Sep 17 00:00:00 2001 From: Yuri Salimovskiy Date: Mon, 8 May 2023 17:52:31 +0300 Subject: [PATCH 1/2] Docs for `primary_role_id` param --- docs/channels/entries.md | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/docs/channels/entries.md b/docs/channels/entries.md index 13cade934..629fbc280 100755 --- a/docs/channels/entries.md +++ b/docs/channels/entries.md @@ -309,13 +309,15 @@ NOTE: **Note:** Using this parameter will automatically constrain the entries ta ### `group_id=` +NOTE: We recommend using [primary_role_id=](#primary_role_id) parameter instead, which works the same. + group_id="4" You can decide from which Member Role (by specifying the role ID) you wish entries to be shown. If you choose "4", then only entries created by members of the Primary Role with the ID of 4 will be shown. You can choose multiple Roles using a pipe: group_id="2|3|4" -Or exclude groups using "not" +Or exclude role using "not" group_id="not 2|3|4" @@ -436,6 +438,18 @@ This tells ExpressionEngine to override the normal [pagination](templates/pagina This tells ExpressionEngine to function in "pagination" mode for your channel entry fields so that you can automatically have an entry span multiple pages. See the [Spanning a Channel Entry Across Multiple Pages](channels/entry-spanning.md) page. +### `primary_role_id=` + + primary_role_id="4" + +You can decide from which Member Role (by specifying the role ID) you wish entries to be shown. If you choose "4", then only entries created by members of the Primary Role with the ID of 4 will be shown. You can choose multiple Roles using a pipe: + + primary_role_id="2|3|4" + +Or exclude roles using "not" + + primary_role_id="not 2|3|4" + ### `related_categories_mode=` related_categories_mode="no" related_categories_mode="yes" From 1f22d88968704f9e94839f936afc8c2a6ed88765 Mon Sep 17 00:00:00 2001 From: Bryan Nielsen Date: Thu, 8 Feb 2024 14:49:40 -0500 Subject: [PATCH 2/2] Update entries.md --- docs/channels/entries.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/channels/entries.md b/docs/channels/entries.md index 629fbc280..ba090f5c1 100755 --- a/docs/channels/entries.md +++ b/docs/channels/entries.md @@ -309,7 +309,7 @@ NOTE: **Note:** Using this parameter will automatically constrain the entries ta ### `group_id=` -NOTE: We recommend using [primary_role_id=](#primary_role_id) parameter instead, which works the same. +NOTE: We recommend using [primary_role_id=](#primary_role_id) parameter instead, which works the same but more clearly conveys that the filtering is happening on primary role ID. group_id="4"