xwords モジュールの「複数インストール または ディレクトリ名変更」方法
Xoops の辞書モジュール 配布元の「かんぴょう」にも記載されている内容を、下記へメモ
複製、ディレクトリ名の変更方法
- まずは、ディレクトリ名を「xwords」から変更。
- エディタなどで sql/mysql.sql を開き、テーブル名を変更。
「CREATE TABLE `xwords_cat`」の部分と「CREATE TABLE `xwords_cat`」の部分を「xwords」から変更したディレクトリ名に変更。
例えば、ディレクトリ名が「css」なら次のように。- 「CREATE TABLE `xwords_cat`」 → 「CREATE TABLE `css_cat`」
- 「CREATE TABLE `xwords_ent`」 → 「CREATE TABLE `css_ent`」
- あとは、templates ディレクトリ内にあるファイルの名前をすべて変更。
例えば、ディレクトリ名が「css」なら次のように。
- xwords_category.html → css_category.html
- xwords_entry.html → css_entry.html
- xwords_index.html → css_index.html
- xwords_letter.html → css_letter.html
- xwords_preview.html → css_preview.html
- xwords_request.html → css_request.html
- xwords_search.html → css_search.html
- xwords_submit.html → css_submit.html
- blocks/entries_new.html → blocks/css_new.html
- blocks/entries_random.html → blocks/css_random.html
- blocks/entries_top.html → blocks/css_top.html
- blocks/entries_initial.html→ blocks/css_initial.html
- これでインストール(アップデート)し、完了。
なお、sql/mysql.sql とすべてのテンプレートファイルのパーミッションが書き込み可能(777 等)になっている場合は、ディレクトリを「xwords」から変更するだけで上記の作業を自動的に行う。
- 「xwords モジュールの「複数インストール または ディレクトリ名変更」方法」に関連するエントリー
トラックバック(0)
このブログ記事を参照しているブログ一覧: xwords モジュールの「複数インストール または ディレクトリ名変更」方法
このブログ記事に対するトラックバックURL:
コメントする