Closed (won't fix)
Project:
Views (for Drupal 7)
Version:
6.x-2.0-beta2
Component:
User interface
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
1 May 2008 at 14:02 UTC
Updated:
25 Sep 2009 at 16:48 UTC
Hi,
I was wondering whether there is any way to filter the result by the lenght of body and/or teaser? Example: display only those nodes which has more than 50 words in body. Is it possible to achieve using Views?
Thanks,
Petiar.
PS: Even if the answer on this query is not, I must admit that you're doing amazing job! Thanks a lot for the Views module. Version 2 looks pretty cool!
Comments
Comment #1
merlinofchaos commentedIt is not currently doable with the tools that are in Views 2 by default.
It might be doable with a handler to provide the field; something that could perform the calculation. I'm not sure such a thing is something I would want to put in Views by default, though, as it would be a rarely used filter and would probably have to be done for a lot of fields or it would be very confusing as to why I only implemented it for one field.
It might be possible to implement some kind of overlay for string fields in the filter settings, though. I'll think about it as a feature request but it's a pretty low priority so I wouldn't expect to see it.
Comment #2
petiar commentedThanks for the reply.
So do you think I could just create new field in my content type which would not have any user interface, only would contain the count of words, right? That should be easy as I need this feature for my own content type module so I should be able to add one more calculated field!
I am going to try it right, now. You are genious, mate! ;-)
Comment #3
merlinofchaos commentedThis feature will not be put into Views 2 by default. Perhaps an external module could provide this.