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 revisionBoth sides next revision
plugin:yearbox:discussion [2021-01-23 16:00] ooleanderooplugin:yearbox:discussion [2021-01-24 13:33] – [Namespace-Creation] ooleanderoo
Line 101: Line 101:
 ===== 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 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-namespaces. This is quite exactly what I need. On top It would be perfect to be able to add individual subnamespaces like: root:userdef_1:userdef_2:userdef_n:*your already implemented namespacedefinitions* +
-To get that I already adjusted your templates in "PagenameStrategies" like: +
-<code php>return "$baseNS:calendar:$year:$month:$day";</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 page. And I would like to avoid subpages in the same namespace. +<code>{{yearbox>year=2010,2012;name=journal;size=12;ns=diary}}</code>
  
- --- [[user>ooleanderoo|ooleanderoo]] //2021-01-23 14:40// +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 ;) 
 + 
 +A second idea I had is that it maybe usefull if you could define different PageNameStrategies for different YearBoxes.  
 + 
 + --- [[user>ooleanderoo|ooleanderoo]] //2021-01-24 13:29//
plugin/yearbox/discussion.txt · Last modified: 2024-03-09 09:46 by 212.159.116.80

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