Dokuwiki でサイドバーにインデックスメニューを表示するまで

広告:超オススメUnity Asset
  広告:超オススメUnity Asset

Dokuwiki を使ってプラグイン「indexmenu」をインストールし、サイドバーに全体の構成を表示するまで

  1. Dokuwiki のサイトからダウンロード。 ※ ダウンロードする際、Janguagesを日本語だけにし、左下の「start download」をクリック。
  2. 解凍したフォルダを例えば、「CakePHP4 のセットアップからlocalhostでのMySQLへのデータベース接続まで」でセットアップしたwebrootに移動し、フォルダ名を例えば「doc」とする。
  3. 初期セットアップのために http://localhost:8765/doc/install.php へアクセスする。
  4. スーパーユーザーを作成してログイン。
  5. 管理>検索とインストールで「indexmenu」と入れて 作者Samuele Togniniの IndexMenu Plugin をインストール
  6. URLに http://localhost:8765/doc/doku.php?id=sidebar と入れてアクセス。「この項目はまだ存在しません」と出るので、「文書の作成」アイコンを押して編集開始。
  7. 以下を入力して保存。
{{indexmenu>.|js#phoenity.png navbar noscroll notoc tsort nsort nocookie skipfile=/sidebar/ skipns=/^(wiki|playground)$/}}

Indexmenu Plugin: If you use the ‘js’-option of the indexmenu plugin, you have to disable the ‘defer_js’-setting. This setting is temporary, in the future the indexmenu plugin will be improved.

と出てしまうので管理>サイト設定で「defer_js」をページ内で検索してオフに。

  1. http://localhost:8765/doc/doku.php?id=hoge と入力して文書を新たに作成するとサイドバーにサイトの構成が表示されるようになります。
スポンサーリンク