Skip to content

Commit 738099b

Browse files
authored
Merge pull request #1085 from nep/nep-patch-1
Update the disable documentation in two places
2 parents 6002b83 + 07d6202 commit 738099b

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

docs/channels/entries.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ The syntax for the disable parameter is this: `disable="ITEM YOU WANT TO DISABLE
177177
- `relationship_custom_fields`
178178
- `relationship_categories`
179179

180-
NOTE: **Note:** If you disable categories, category fields will automatically be disabled.
180+
NOTE: **Note:** If you disable categories, category fields will automatically be disabled. If you disable custom_fields, that includes relationships. If you disable relationships, [relationship_custom_fields and relationship_categories](fieldtypes/relationships.md#optimizing-relationships-performance) will automatically be disabled.
181181

182182
You may specify multiple items to disable by separating them with the pipe character:
183183

@@ -191,7 +191,7 @@ For example, let's say you are using an instance of your channel tag to show you
191191
<a href="{title_permalink='channel/comments'}">{title}</a><br>
192192
{/exp:channel:entries}
193193

194-
In this example you are only showing the title of your entries and nothing else; yet, the channel tag automatically fetches categories and other data. Using the disable= parameter you can turn off the unneeded features from being queried. In this case, you don't need any of the features that can be disabled.
194+
In this example you are only showing the title of your entries and nothing else; yet, the channel tag automatically fetches categories and other data. Using the disable= parameter you can turn off the unneeded features from being queried. In this case, you don't need any of the features and they all can be disabled.
195195

196196
{exp:channel:entries orderby="date" sort="desc" limit="10" disable="categories|custom_fields|member_data|pagination"}
197197
<a href="{title_permalink='channel/comments'}">{title}</a><br>

docs/fieldtypes/relationships.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -336,7 +336,7 @@ Would output in the format:
336336

337337
## Optimizing Relationships Performance
338338

339-
If you are heavily using relationship fields, it is recommended that you disable certain features, such as custom fields or categories on related entries, to speed up template loading. That can be done by applying `disable` parameter to the `exp:channel:entries` tag that includes relationship field tag (or siblings / parents tag).
339+
If you are heavily using relationship fields, it is recommended that you disable certain features such as custom fields or categories on the related entries to speed up template loading. That can be done by applying the [`disable` parameter](/channels/entries.md#disable) to the `exp:channel:entries` tag that includes the relationship field tag (or siblings / parents tag).
340340

341341
The following items can be turned off:
342342

0 commit comments

Comments
 (0)