Replicate or replace /node/*/visitors with a view

Created on 23 October 2023, about 1 year ago
Updated 1 August 2024, 4 months ago

Problem/Motivation

I am looking to create Chart views for visitors to an author's nodes (and commerce entities if possible).

Right now, when creating a new view of visitor counters, I can't get the node id from the URL in the contextual filter, and there is no relationship to the node or entity that is counted (unless I'm missing something).

It would be great to have the ability to create a view just like the /node/*/visitors page, and be able to create chart displays or other kinds of views.

Steps to reproduce

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

πŸ“Œ Task
Status

Fixed

Version

2.0

Component

Code

Created by

πŸ‡ΉπŸ‡­Thailand AlfTheCat

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

  • Issue created by @AlfTheCat
  • πŸ‡ΊπŸ‡ΈUnited States bluegeek9

    Hi @AlfTheCat,

    The goal is to replace all pages with views, even replacing all custom charts with Charts β†’ .

    Are you trying to add a view counter for commerce entities? The code to counter entities other than nodes exists. Not all entities have a link area; I tried using a custom field to display the view count. It needs work.

  • πŸ‡ΉπŸ‡­Thailand AlfTheCat

    Hi @bluegeek9,

    It will be absolutely great to have full views integration. I'd be really happy with that :)

    I was attempting to create a Charts view for a commerce marketplace site where multiple stores are all represented by a node, and they all have their own products. I wanted to create a dashboard chart widget for store owners where they can see how many views their store's node has received over time, and then also show an aggregated total of views their products have had over time. This is not just useful (and probably beautiful with the Charts module), it is also a good nudge for people to do things to promote/share/link to their page more.

    I have not been able to figure out how to get a node's visits into views along with the date of the visit, like at /node/*/visitors, and it seems like that's not possible yet.

  • Assigned to bluegeek9
  • πŸ‡ΊπŸ‡ΈUnited States bluegeek9
  • Merge request !151Resolve #3396121 "Replicate or replace" β†’ (Merged) created by bluegeek9
  • Pipeline finished with Skipped
    4 months ago
    #227840
    • bluegeek9 β†’ committed c085640c on 8.x-2.x
      Issue #3396121 by bluegeek9: Replicate or replace /node/*/visitors with...
  • Issue was unassigned.
  • Status changed to Fixed 4 months ago
  • πŸ‡ΊπŸ‡ΈUnited States bluegeek9
  • Automatically closed - issue fixed for 2 weeks with no activity.

Production build 0.71.5 2024