Coder Social home page Coder Social logo

Comments (6)

michitux avatar michitux commented on August 16, 2024

My guess is that it was intentional but I would consider it a bug. The showhistogram mode was implemented by a different author, that's why it doesn't really fit in the plugin. I would suggest to use the pagelist plugin for the monthly archives in the showhistogram mode. If this other list style is really desired we could also add this as an additional option/flag as a replacement for the pagelist plugin. It could also take a date format string as parameter, then it could also make sense for lists that cover more than a month.

An alternative I would also be happy with is to simply drop the histogram feature... But maybe people actually like/use it?

from plugin-blog.

qwertologe avatar qwertologe commented on August 16, 2024

I am not sure but for me the plugins works as follows:

If you set the showhistogram option in the preferences, the histogram is used and a nice grouped layout is used (you are not able to deactivate it).

If you do not activate it in the preferences, you are not able to activate it as an option - instead a simpler variant is used (simplelist, table, ... is possible).

I use it with showhistogram because it looks nice.

I will have a look at it (especially the recommended usage of the pagelist plugin) and post again in 1-2 days...

from plugin-blog.

michitux avatar michitux commented on August 16, 2024

@qwertologe But is it really the histogram you want, or is it the grouping, or is it the list in the form "date-title"? Because I think these are actually three different features. For example you could have histogram and grouping with the pagelist output.

from plugin-blog.

qwertologe avatar qwertologe commented on August 16, 2024

@michitux No, i don't need the histogram but the grouping. I am not sure, how to achieve this with the pagelist plugin.

http://sk-schwanstetten.de/dw/doku.php?id=archiv

The code for this is simply: {{archive>news:2015-2016?*}}

I have enabled the histogram with plugin»blog»showhistogram=true and disabled it again with plugin»blog»max_months=0 :-)

This setup works without the pagelist plugin (as i recognized in this minute).

from plugin-blog.

michitux avatar michitux commented on August 16, 2024

It is currently not possible, but I think the plugin should be changed to make it possible.

from plugin-blog.

qwertologe avatar qwertologe commented on August 16, 2024

@michitux

Maybe the "showhistogram" should be changed to somethink like "bloglayout" or "internallayout". This (and updating the plugin-docs at dokuwiki.org) should clarify the things. But: This will break the sites using it...
Maybe better improve the hint at plugin»blog»showhistogram:

# lang/../settings.php
$lang['showhistogram']         = '... (will activate an internal layout -> only the histogram options are considered)'

A solution for:

If you set the showhistogram option in the preferences, the histogram is used and a nice grouped layout is used (you are not able to deactivate it).
If you do not activate it in the preferences, you are not able to activate it as an option - instead a simpler variant is used (simplelist, table, ... is possible).

.. would be a change archive.php:

# old (~ line 119) 
if ($this->getConf('showhistogram')) {

# new
if (in_array('showhistogram',$flags) or ($this->getConf('showhistogram') and !in_array('noshowhistogram',$flags))) {

or "hidehistogram", "nohistogram", "nobloglayout", "nointernallayout" or whatever you want...

The new flag must then be mentioned in the docs.

from plugin-blog.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.