Hello again. What is the best way to implement view count for Page?
For now i created filter. Get aggregation state. Get node to render. Check cookie, if no page id in cookie try to increment "visited" value. This flow is working, but incremented value do not saved. This code do nothing: [code] Node pageNode = aggregationState.getCurrentContentNode(); // increment here pageNode.getSession().save(); [/code] Why? And second thing, if user with role anonymous will get such page he will need write access to increment field. I think it is not a good idea. Is it possible to write in filter as another(writer) user role? -- Context is everything: http://forum.magnolia-cms.com/forum/thread.html?threadId=7f2fed1f-be18-41fa-ad9e-3632a2bb49b1 ---------------------------------------------------------------- For list details, see http://www.magnolia-cms.com/community/mailing-lists.html Alternatively, use our forums: http://forum.magnolia-cms.com/ To unsubscribe, E-mail to: <[email protected]> ----------------------------------------------------------------
