DokuWiki

It's better when it's simple

User Tools

Site Tools


plugin:localdate

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:localdate [2009-10-10 23:38] – adjusted status tag achplugin:localdate [2018-06-04 23:21] (current) Klap-in
Line 15: Line 15:
  
 [[:experimental]] [[:experimental]]
- 
- 
- 
 ===== Description ===== ===== Description =====
  
-With this [[plugins|plugin]] the [[:syntax]] of [[:DokuWiki]] is extended to allow display of local date on client machine. The syntax to use this plugin is:+With this plugin the [[:wiki:syntax]] of [[:DokuWiki]] is extended to allow display of local date on client machine. The syntax to use this plugin is:
 <code> <code>
   <date>year,month,day</date>   <date>year,month,day</date>
Line 107: Line 104:
     */     */
     function connectTo($mode) {     function connectTo($mode) {
-      $this->Lexer->addEntryPattern('<date>(?=.*\x3C/date\x3E)',$mode,'plugin_localdate');+      $this->Lexer->addEntryPattern('<date>(?=.*</date>)',$mode,'plugin_localdate');
     }     }
  
Line 171: Line 168:
 >>//[[pavel.vitis@seznam.cz|Pavel Vitis]]// >>//[[pavel.vitis@seznam.cz|Pavel Vitis]]//
 >>>You have left 'substition' as an allowed mode type. I don't think there should be any.  If there is any markup for a 'substition' mode (e.g. smiley or acronym) your plugin won't get to see that data.  Your plugin won't get to see the data that belongs to any other mode, not before or after that mode processes it. --- //[[chris@jalakai.co.uk|ChrisS]] 2005-07-28// >>>You have left 'substition' as an allowed mode type. I don't think there should be any.  If there is any markup for a 'substition' mode (e.g. smiley or acronym) your plugin won't get to see that data.  Your plugin won't get to see the data that belongs to any other mode, not before or after that mode processes it. --- //[[chris@jalakai.co.uk|ChrisS]] 2005-07-28//
- 
plugin/localdate.1255210699.txt.gz · Last modified: 2009-10-10 23:38 by ach

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