DokuWiki

It's better when it's simple

User Tools

Site Tools


plugin:yearbox:discussion

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Last revision
plugin:yearbox:discussion [2017-03-22 01:33]
213.60.72.53 Minor edit: format, author of the comment
plugin:yearbox:discussion [2021-01-24 13:29]
ooleanderoo [Namespace-Creation]
Line 13: Line 13:
  
 ===== Preview ===== ===== Preview =====
-Useful calendar, but I just got some html-tags showing up in the toolbox and no real preview. --- **Branmabon 2011-04-11**+Useful calendar, but I just got some html-tags showing up in the toolbox and no real preview. --- **2011-04-11**
 > I would like to help but I do not understand exactly what the problem is; can you provide more information?---//Symon 2011-04-10 15:32// > I would like to help but I do not understand exactly what the problem is; can you provide more information?---//Symon 2011-04-10 15:32//
 >> I had the same problem. I edited the style.css and renamed all //div.dokuwiki// into //.dokuwiki// and it looks better now (Firefox 4 - Dokuwiki Anteater). --- //Andreone 2011-05-05// >> I had the same problem. I edited the style.css and renamed all //div.dokuwiki// into //.dokuwiki// and it looks better now (Firefox 4 - Dokuwiki Anteater). --- //Andreone 2011-05-05//
Line 68: Line 68:
 // week begins on Sunday in PHP... // week begins on Sunday in PHP...
 $lang['yearbox_days'] = array('So', 'Mo', 'Di', 'Mi', 'Do', 'Fr', 'Sa'); $lang['yearbox_days'] = array('So', 'Mo', 'Di', 'Mi', 'Do', 'Fr', 'Sa');
-?>+
 </file> </file>
  
Line 87: Line 87:
 in syntax.php I changed :  in syntax.php I changed : 
  
-<code> +<code php
- $first_weekday = ($first_weekday > $start) ? $start: $first_weekday;+$first_weekday = ($first_weekday > $start) ? $start: $first_weekday;
 </code> </code>
  
 to to
  
-<code> +<code php
- $first_weekday = ($first_weekday > $start+1) ? $start+1 : $first_weekday;+$first_weekday = ($first_weekday > $start+1) ? $start+1 : $first_weekday;
 </code> </code>
  
 +> Thanks for that! However it omits a day the end of some months. How could this be fixed? See for example year 2006, the 31st of October isn't displayed even though it existed.  --- [[user>Kuranes|Kuranes]] //2018-05-08 10:13//
 +
 +===== Namespace-Creation =====
 +
 +Works fine now that I understood how to use it correctly with:
 +
 +<code>{{yearbox>year=2010,2012;name=journal;size=12;ns=diary}}</code>
 +
 +One thing is that I want to combine your plugin with the bureaucracy plugin. In the Bureaucracy-Plugin it seems not easily manageable to create the pages the same structure you are providing. I now changed one of your PageNameStrategies with : 
 +
 +<code>        return "$baseNS:$pagename";</code>
 +
 +and now I can create with the bureaucracy plugin a form wich directly picks a site your yearbox-plugin already is looking at. 
 +Maybe an idea to extend the possibilities of your namespace-strategies so this is possible directly out of the box. Surely there are thousand ways to do so but for me this was the simplest way ;)
 + --- [[user>ooleanderoo|ooleanderoo]] //2021-01-24 13:29//
plugin/yearbox/discussion.txt · Last modified: 2021-01-24 13:33 by ooleanderoo