Click here to show or hide the menubar.

Working on Stats & Atts


I want to see the stats and atts on my pages again. We may hide them later, or tuck them away, but we had them once, and I want them again.

Narrative

Looking in worldoutlinesuite.main, there's code that sets nodeAttsDebug, but only if there's an att named adrdirectoryitem.

When worldoutlinesuite.viewnodetype came in, we were no longer setting this value. I added code in html.directory.viewdirectory to set it in this case, and now the atts popup works again.

The readcount isn't defined in the stats popup.

That's because we weren't setting pta^.directoryAtts.hits. It was only being set if you're accessing it from the cache, but that's turned off, hardwired.

Added code to bump the hitcount no matter what, and the hits stat is now working again. Fixing ancient breakage feels good. :-)

lastModDate is the converted date from the outlineDateModified attribute, so that works again.

Example

Stats -- Atts

Parts

worldOutlineSuite.main

html.directory.viewDirectory


Posted on Tuesday, October 23, 2012 at 11:40 AM by Dave Winer.