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/add-ons/statistics.md
+24-4Lines changed: 24 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -49,6 +49,26 @@ Here is an example of the tag with the parameter in use:
49
49
statistics content
50
50
{/exp:stats}
51
51
52
+
### `status=`
53
+
54
+
status="open"
55
+
56
+
This parameter can be used to restrict statistics reporting to entries assigned to a particular [status](control-panel/channels.md#statuses-tab). Status-filtered statistics include entries that are not expired and do not have a future entry date. You can choose multiple statuses using a pipe:
57
+
58
+
status="draft|reviewed|published"
59
+
60
+
Or exclude statuses using "not"
61
+
62
+
status="not submitted|processing|closed"
63
+
64
+
If the `status=` parameter does not include `closed`, closed entries are excluded from the statistics.
65
+
66
+
Here is an example of the tag with the parameter in use:
@@ -57,13 +77,13 @@ Here is an example of the tag with the parameter in use:
57
77
58
78
{last_comment_date format="%m/%d/%Y %h:%i %a"}
59
79
60
-
The date of the most recent comment. This variable can be affected by the channel= parameter. See [Date Variable Formatting](templates/date-variable-formatting.md) for more information.
80
+
The date of the most recent comment. This variable can be affected by the `channel=` and `status=` parameters. See [Date Variable Formatting](templates/date-variable-formatting.md) for more information.
61
81
62
82
### `{last_entry_date}`
63
83
64
84
{last_entry_date format="%m/%d/%Y %h:%i %a"}
65
85
66
-
The date of the most recent entry. This variable can be affected by the channel= parameter. See [Date Variable Formatting](templates/date-variable-formatting.md) for more information.
86
+
The date of the most recent entry. This variable can be affected by the `channel=` and `status=` parameters. See [Date Variable Formatting](templates/date-variable-formatting.md) for more information.
67
87
68
88
### `{last_visitor_date}`
69
89
@@ -87,11 +107,11 @@ The total number of people currently online who have chosen to be "anonymous" an
87
107
88
108
### `{total_comments}`
89
109
90
-
The combined total number of comments for all entries. This variable can be affected by the channel= parameter.
110
+
The combined total number of comments for all entries. This variable can be affected by the `channel=` and `status=` parameters.
91
111
92
112
### `{total_entries}`
93
113
94
-
The total number of active entries in the database (not closed and not expired). This variable can be affected by the `channel=` parameter.
114
+
The total number of active entries in the database. This variable can be affected by the `channel=`and `status=` parameters. If the `status=`parameter includes `closed`, closed entries are included in this total.
0 commit comments