ページへ戻る
− Links
印刷
Ver 4.01.19 (related プラグインの拡張など)
の編集 ::
XOOPS マニア
xpwiki
:
xpWiki開発日記
/
2009-01-15
の編集
xpWiki開発日記/2009-01-15 の編集
詳細な入力項目を表示
ページタイトル
( 空白で自動設定 )
:
ページ頭文字読み:
ページ並び順
( 0-9 小数可 標準:1 )
:
ページ別名
(複数は[
改行
]で区切る)
:
ページ内容:
#navi(../) #boxdate * Ver 4.01.19 (related プラグインの拡張など) [#h8b30b6a] &tag(プラグイン,context,要約,検索); ** 概要 [#m04e7816] - related プラグインを拡張して、要約を表示するようにした。(thx kazdon) -- action 型では、プラグイン設定で表示・非表示、1ページあたりの表示件数を指定可能。 #code(php,nonumbar){{ function plugin_related_init () { $this->config['showContextAction'] = TRUE; $this->config['showMaxAction'] = 100; } }} -- ブロック型では、引数で指定可能。 --- #related([<表示件数>[,backlink][,nopassage][,notitle][,context][,context:<最大バイト数>/<最大分割数>][,separate][,highlight]]) > :backlink|被リンクページのみリストアップする :nopassage|ページ更新経過時間を表示しない :notitle|ページタイトルを表示しない :context|要約を表示する :separate|要約<div>を分割表示する :highlight|検索ページ名をハイライト表示する < -- 参考スレッド: [[relatedプラグイン拡張のお願い - XOOPSマニア:http://xoops.hypweb.net/modules/forum/index.php?topic_id=2555]] - 検索結果の要約のかながすべてカタカナになっていたのを、ページ内容通りに表示することもできるようにして、プラグイン設定項目とし、デフォルトを 'conv'(ページ内容通り) とした。 - 検索結果の最大表示件数をプラグイン設定項目に追加し、デフォルトを 500 件とした。 #code(php,nonumbar){{ function plugin_search_init () { // Allow search via GET method 'index.php?plugin=search&word=keyword' // NOTE: Also allows DoS to your site more easily by SPAMbot or worm or ... $this->cont['PLUGIN_SEARCH_DISABLE_GET_ACCESS'] = 0; // 1, 0 $this->cont['PLUGIN_SEARCH_MAX_LENGTH'] = 80; $this->cont['PLUGIN_SEARCH_MAX_BASE'] = 16; // #search(1,2,3,...,15,16) $this->config['context'] = 'conv'; // ( '': none or 'db': Use database (light) or 'conv': Convert (heavy) ) $this->config['resultMax'] = 500; // Load Language $this->load_language(); } }} ** CVS 更新内容 [#v02e356b] #region(今回の更新分){{ -2009-01-15 12:04 nao-pon --* version.php (1.71): ---Version 4.01.19 -2009-01-15 12:03 nao-pon --* class/func/pukiwiki_func.php (1.193), class/func/xpwiki_func.php (1.199), plugin/related.inc.php (1.4): ---The function to display "context" is added. ( thx Kazdon ) -2009-01-15 12:00 nao-pon --* class/func/xoops_wrapper.php (1.48): ---Added a function getPageNav(). -2009-01-15 12:00 nao-pon --* language/xpwiki/de/plugin/search.lng.php (1.2), language/xpwiki/de_utf8/plugin/search.lng.php (1.2), language/xpwiki/en/plugin/search.lng.php (1.2), language/xpwiki/ja/plugin/search.lng.php (1.2), language/xpwiki/ja_utf8/plugin/search.lng.php (1.2), plugin/search.inc.php (1.10): ---The setting of the display type of "context" and the setting of the number of maximum displays are added. }} ** 一行コメント [#ef13852b] #comment #navi(../)
編集の要約:
Q & A 認証:
ページ更新時は次の質問にお答えください。(プレビュー時は必要ありません)
Q:
「東京」の読みがな?(ひらがなで)
A:
お名前:
タイムスタンプを変更しない
テキスト整形のルールを表示する
[1]
添付ファイル
[2]
:
Links list
(This host) = https://xoops.hypweb.net
(This host)
/modules/xpwiki/?cmd=edit&help=true&page=xpWiki%B3%AB%C8%AF%C6%FC%B5%AD%2F2009-01-15
(This host)
/modules/xpwiki/?plugin=attach&pcmd=list&refer=xpWiki%B3%AB%C8%AF%C6%FC%B5%AD%2F2009-01-15