Closed (won't fix)
Project:
Rules
Version:
8.x-3.x-dev
Component:
Rules Core
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
27 Jun 2010 at 07:00 UTC
Updated:
13 Nov 2019 at 05:47 UTC
Jump to comment: Most recent
Comments
Comment #1
vstmusic commentedSorry, second condition is : (<1000 characters) ... of course
Comment #2
vstmusic commentedis there no solution to create this 'counter node string' condition ?
Comment #3
mitchell commentedThis condition does not currently exist, though it would be a nice addition to rules. If you write it, I hope you would also contribute it back.
The handbook and rules codebase would be helpful, and the guide for creating patches is a great resource all around. It would probably use strlen or count-chars.
Comment #4
vstmusic commentedarg. I don't know the php language.
Comment #5
mitchell commentedNew feature requests are going into 7.x first.
Comment #6
mitchell commentedTagging 'data'. Setting as inactive.
Comment #7
tr commentedNew features should go into 8.x-3.first, at this point, then be backported to 7.x-2.x if there is some demand.
Comment #8
tr commentedThe D8 Rules Essentials module includes a
countfilter that you can use in the Rules "Data comparison" condition to test the length of the node body, among other things. Use it like this:{{ node.body.value | count }}Because there has been no community interest in this since the original post, and because the feature is available in a contributed module for Rules, I am marking this as "Won't fix".
Comment #9
tr commentedTagging issues that will be fixed by code moved from D8RE.