Skip to content

Commit 5e7b59d

Browse files
committed
feature #7380 Added a mention to workflow_has_marked_place() Twig function (javiereguiluz)
This PR was merged into the master branch. Discussion ---------- Added a mention to workflow_has_marked_place() Twig function This fixes #7365. Commits ------- 6ecfae2 Added a mention to workflow_has_marked_place() Twig function
2 parents 06cc8a4 + 6ecfae2 commit 5e7b59d

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

workflow/usage.rst

+6-1
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ like this:
148148
The marking store type could be "multiple_state" or "single_state".
149149
A single state marking store does not support a model being on multiple places
150150
at the same time.
151-
151+
152152
.. tip::
153153

154154
The ``type`` (default value ``single_state``) and ``arguments`` (default value ``marking``)
@@ -248,3 +248,8 @@ The links below will only be displayed when the action is allowed:
248248
{% else %}
249249
No actions available.
250250
{% endfor %}
251+
252+
{# Check if the object is in some specific place #}
253+
{% if workflow_has_marked_place(post, 'to_review') %}
254+
<p>This post is ready for review.</p>
255+
{% endif %}

0 commit comments

Comments
 (0)