I build a small module taking this module's filter stuff as mother module to return the number of results of the View instead of embedding the View.
Not sure if this would be a useful feature or not, but I'd like to see if you are open to extend this module or make it as a new module.

Filter process internal function is taken from this module, but it executes the result in a different way (sets pager to 0to get all results). Plus, my this tiny module supports "current-view" as a valid View's machine name so we can get View's total number of results in View's footer or header without executing the View.

Related: #347719: How many nodes from a view?
Thanks!

Comments

pasqualle’s picture

do I understand you correctly, you put something like [viewcount:current-view] into the views header, and it returns the count?

ayesh’s picture

Yes.
Similar to [view:my_view] , but [viewcount:my_view] returns results count of the View.
Also it processes "current-view" to get current view's results (without views_get_view() - using views_get_current_view )

Thanks.

igor mashevskyi’s picture

Issue summary: View changes
Status: Active » Closed (outdated)

D6 reached its EOL back in February 2016, and there is no active release for D6 for this module anymore.
Development or support is not planned for D6. All D6-related issues are marked as outdated in a bunch.

Everyone can apply the patch above (not tested by the maintainers, tested by the community) to their D6 projects.
If the issue remains relevant for D10+ versions, merge requests with proposed solutions for a new module version (D10+) are welcome in a new follow-up issue.

Thanks!

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.