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

merlinofchaos’s picture

Category: support » feature

It 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.

petiar’s picture

Thanks for the reply.

It might be doable with a handler to provide the field

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! ;-)

merlinofchaos’s picture

Status: Active » Closed (won't fix)

This feature will not be put into Views 2 by default. Perhaps an external module could provide this.