From: TADA T. <t...@td...> - 2012-07-20 13:18:22
|
ただただしです。 2012年7月20日 18:52 sunoko <su...@mb...>: > 3.1 位にバージョンアップしてから、tdiarysearch が動作しなく > なっていました。 > さすがに不便になってきたので今日弄ってみたのですが、結論的に > は > > support tDiary-2.3.1 > https://github.com/tdiary/tdiary-contrib/commit/fdbc7d31e5d5de99945366c4c169badc1eefac3d > > を元に以下のパッチをあてることで私の環境で動作するようになり > ましたので、一応報告します。 > 最新のバージョンでどうようの修正を行ったのですが動かず、その > 理由はわかりません。 パッチありがとうございます。 ただ、contribに付属のtdiary-grepやtdiarysearchは、現在tDiaryが サポートしている検索プラグインの作法から外れた作りなので、 事実上メンテされていません(ゆくゆくは削除される運命でしょう)。 現在、tdiary-grepをベースに検索プラグインの作法に則った版が 同梱されているので、まずはそちらを使ってみていただけますか。 contrib/plugin/search-default.rb です。通常のプラグインと同様、設定ページから有効にするだけ で使えるようになります。検索フォームはヘッダかフッタに以下の ように入れるだけでいけます。 <%= search %> tdiary-grepをベースにしたのは特に深い意味はないので、tdiarysearch をベースにした方が良いなどの議論はアリです。 -- ただただし - ツッコミは、短く鋭く愛を込めて♪ http://tdtds.jp/ @tdtds |