1: 2008-03-30 (日) 10:46:11 nonn50 |
2: 2008-03-31 (月) 08:36:31 nao-pon |
| | | |
| **lsx [#ob8ba915] | | **lsx [#ob8ba915] |
| + | |
| + | [[Plugin/lsx.inc.php - Sonots' PukiWiki プラグイン:http://lsx.sourceforge.jp/?Plugin%2Flsx.inc.php]] を xpWiki用に改造したプラグイン。 |
| + | |
| + | 少し前のバージョンを元にしているので、Sonot さんの最新版にあって、xpWiki版 lsx にない機能があります。 |
| + | |
| -html側にコンバートして独自設定ができるように、設定する箇所を移動しました。 | | -html側にコンバートして独自設定ができるように、設定する箇所を移動しました。 |
| --次のプラグイン(lsx.inc.php)をhtml側に置いて編集することで、独自設定できます。 | | --次のプラグイン(lsx.inc.php)をhtml側に置いて編集することで、独自設定できます。 |
- | <?php | + | #code(php){{ |
- | class xpwiki_user_plugin_lsx extends xpwiki_plugin_lsx { | + | <?php |
- | function plugin_lsx_init() | + | class xpwiki_[インストールディレクトリ名]_plugin_lsx extends xpwiki_plugin_lsx { |
- | { | + | function plugin_lsx_init() |
| + | { |
| | | |
- | $this->plugin_lsx = new XpWikiPluginLsx($this->xpwiki); | + | $this->plugin_lsx = new XpWikiPluginLsx($this->xpwiki); |
| | | |
- | // Modify here for default values | + | // Modify here for default values |
- | $this->plugin_lsx->options = array( | + | $this->plugin_lsx->options = array( |
- | 'hierarchy' => array('bool', true), | + | 'hierarchy' => array('bool', true), |
- | 'non_list' => array('bool', true), | + | 'non_list' => array('bool', true), |
- | 'reverse' => array('bool', false), | + | 'reverse' => array('bool', false), |
- | 'basename' => array('bool', false), | + | 'basename' => array('bool', false), |
- | 'sort' => array('enum', 'name', array('name', 'date')), | + | 'sort' => array('enum', 'name', array('name', 'date')), |
- | 'tree' => array('enum', false, array(false, 'leaf', 'dir')), | + | 'tree' => array('enum', false, array(false, 'leaf', 'dir')), |
- | 'depth' => array('number', ''), | + | 'depth' => array('number', ''), |
- | 'num' => array('number', ''), | + | 'num' => array('number', ''), |
- | 'except' => array('string', ''), | + | 'except' => array('string', ''), |
- | 'filter' => array('string', ''), | + | 'filter' => array('string', ''), |
- | 'prefix' => array('string', ''), | + | 'prefix' => array('string', ''), |
- | 'contents' => array('array', ''), | + | 'contents' => array('array', ''), |
- | 'include' => array('array', ''), | + | 'include' => array('array', ''), |
- | 'info' => array('enumarray', array(), array('date', 'new')), | + | 'info' => array('enumarray', array(), array('date', 'new')), |
- | 'date' => array('bool', false), // obsolete | + | 'date' => array('bool', false), // obsolete |
- | 'new' => array('bool', false), | + | 'new' => array('bool', false), |
- | 'tag' => array('string', ''), | + | 'tag' => array('string', ''), |
- | 'notitle' => array('bool', false), | + | 'notitle' => array('bool', false), |
- | ); | + | ); |
| | | |
- | // Modify here for external plugins | + | // Modify here for external plugins |
- | $this->plugin_lsx->plugin_contents = 'contentsx'; | + | $this->plugin_lsx->plugin_contents = 'contentsx'; |
- | $this->plugin_lsx->plugin_include = 'includex'; | + | $this->plugin_lsx->plugin_include = 'includex'; |
- | $this->plugin_lsx->plugin_new = 'new'; | + | $this->plugin_lsx->plugin_new = 'new'; |
- | } | + | } |
- | } | + | } |
- | ?> | + | ?> |
| + | }} |
| | | |
| *M [#o4b99ed7] | | *M [#o4b99ed7] |