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
plugin:yearbox:discussion [2021-01-23 16:04] – [Namespace-Creation] ooleanderooplugin:yearbox:discussion [2024-03-09 09:46] (current) – [Discussion] 212.159.116.80
Line 7: Line 7:
  
 ON THE PAGE WITH THE CALENDAR ON THE PAGE WITH THE CALENDAR
 +===== Request for FUTURE ===== 
 +If one wants to use this for predominantly advertising **future events** it would be great if recent would **gracefully** accept a **negative** number or better allow a range,  so you could show last month dates and next 3 months. I found putting in a negative number is treated as an error that is detected and so ignored.
 ===== Wrapping ===== ===== Wrapping =====
 Sorry if this is not the right place to ask! And I also don't know much about any of this!\\ Sorry if this is not the right place to ask! And I also don't know much about any of this!\\
Line 101: Line 102:
 ===== Namespace-Creation ===== ===== Namespace-Creation =====
  
-For me it would be helpfull if there would be the possibility to adjust the namespace where the links are created. +Works fine now that I understood how to use it correctly with: 
-When implement the plugin within a page first the plugin links to the root directory and there it creates its sub-namespacesThis is quite exactly what need. On top It would be perfect to be able to add individual subnamespaces likeroot:userdef_1:userdef_2:userdef_n:*your already implemented namespacedefinitions* + 
-To get that I already adjusted your templates in "PagenameStrategies" like: +<code>{{yearbox>year=2010,2012;name=journal;size=12;ns=diary}}</code> 
-<code php>return "$baseNS:calendar:$year:$month:$day";</code>+ 
 +One thing is that 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>
  
-But now I noticed that it somehow needs some time until the settings of your plugin recognizes the position of the defined yearbox and when it does it changes the links to subpages of the used pageAnd I would like to avoid subpages in the same namespace.  +and now I can create with the bureaucracy plugin a form wich directly picks a site your yearbox-plugin already is looking at.  
- --- [[user>ooleanderoo|ooleanderoo]] //2021-01-23 14:40// +Maybe an idea to extend the possibilities of your namespace-strategies so this is possible directly out of the boxSurely there are thousand ways to do so but for me this was the simplest way ;)
  
 +A second idea I had is that it maybe usefull if you could define different PageNameStrategies for different YearBoxes. 
  
-Edit -- Now I'm pretty sure that it somehow hops between the described behaviours with the namespace-links. I will have a closer look on it when this is happening. + --- [[user>ooleanderoo|ooleanderoo]] //2021-01-24 13:29//
- --- [[user>ooleanderoo|ooleanderoo]] //2021-01-23 16:02//+
plugin/yearbox/discussion.1611414244.txt.gz · Last modified: 2021-01-23 16:04 by ooleanderoo

Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Share Alike 4.0 International
CC Attribution-Share Alike 4.0 International Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki