Problem/Motivation
There is no way to use Node View Count as an extra/pseudo field.
Proposed resolution
Addition of 3 extra/pseudo fields using hook_entity_extra_field_info().
Each field covers the following scenario (as provided by arguments combination in NodeViewCountRecordsManager::getNodeViewsCount()):
- node_view_count_total: Total node views count
- node_view_count_unique: Unique (per user) node views count)
- node_view_count_total_for_user: Total node views count for current user
User interface changes
An extra/pesudo field will be added to Node displays.
API changes
None
Data model changes
None
| Comment | File | Size | Author |
|---|
Issue fork nodeviewcount-3145688
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #2
martinpe commentedPatch with new feature added
Comment #5
stefanos.petrakisPatch worked fine, thank you; still was missing caching, added that in the PR.
Comment #6
stefanos.petrakisHi-jacked this issue a bit and added the following (currently in the PR):
Comment #7
stefanos.petrakis