Perlkonig / grav-skeleton-knowledge-base

Skeleton package of the Knowledge Base theme for Grav CMS
https://www.perlkonig.com/knowledge-base
MIT License
22 stars 14 forks source link

Sidebar Popular articles not working [Solved] #7

Closed awrog closed 7 years ago

awrog commented 7 years ago

Love this skeleton!!

It looks like the sidebar Popular Articles is not working Installed th KB Skeleton (a fresh updated skeleton would be great by the way :-) ) Updated all plugins Added some data The sidebar ends up 'empty' (= it has entries but no links) screenshot - 6_22_2017 10_39_57 am

Compatibility-issues with the Count Views plugin? Quote from the Count View documentation:

The full view count data is dumped as an associative array (i.e., route => count) into the Twig variable viewcounts. To support backwards compatibility, the counts are also still dumped into the config.plugins.count-views.counts namespace, but this is now officially deprecated and will be removed in a future major release.

awrog commented 7 years ago

Found the cause: the /user/data/count-views.yaml contained entries to articles that no longer exist. It looks like renaming the foldername or deleting a page is not picked up by the Count Views-plugin!

Perlkonig commented 7 years ago

Thanks, @awrog. I'll still double-check the code. Only existing articles should appear in the sidebar.

Perlkonig commented 7 years ago

Just released an update to the theme (v1.3.3) that fixes this issue.

Perlkonig commented 7 years ago

Updating the skeleton is a bit of a pain. I'll do what I can this weekend.

awrog commented 7 years ago

Thanks!

@Perlkonig interesting CV you've got, I also do some music engraving (Lilypond))

Perlkonig commented 7 years ago

Lilypond is the bomb. I wish I did more with music nowadays.