XOOPS Cube Legacy をサブディレクトリに入れる の続きで。
カテゴリを階層化する目的で、picoというモジュールを導入してみる。
必須モジュールAltsysのインストール
picoを使うには準備がいって、
http://xoops.peak.ne.jp/md/mydownloads/
にある、Altsysというモジュールが必要だそうな。いくつかの管理作業(アクセス権関係など)に手が入る模様。
導入手順を見る。
●インストール
- mainfile.php にて XOOPS_TRUST_PATH を設定してください
- アーカイブのxoops_trus_path/内を、XOOPS_TRUST_PATHに展開してください
- アーカイブのhtml/内を、XOOPS_ROOT_PATHに展開してください
- モジュールとしてインストールしてください
- 管理画面テーマ機能を利用する場合は、下の手順に従ってください
なるほど。
ディレクトリを作って、
mkdir /usr/local/xcl/xoops_trust_path
/{xoopsのパス}/html/mainfile.phpを編集する。
define('XOOPS_TRUST_PATH', '/usr/local/xcl/xoops_trust_path');
というわけか。
Altsysの書庫を展開したら "xoops_trust_path", "html" ディレクトリがあったのでxoops のとこにコピー。
# cp -R xoops_trust_path/* /usr/local/xcl/xoops_trust_path/
# cp -R html/* /usr/local/xcl/html/
その後、
互換モジュール ≫≫ モジュールの管理 ≫≫ モジュールのインストール
にALTSYSが現れたのでインストール。
モジュールインストール ログ
* ブロック 管理メニュー をインストールしました
* コンフィグ adminmenu_hack_ft を追加しました
* コンフィグ adminmenu_insert_mymenu を追加しました
* コンフィグ admin_in_theme を追加しました
* コンフィグ enable_force_clone を追加しました
* コンフィグ images_dir を追加しました
* ALTSYS モジュールのインストールに成功しました
* SQL file found at /usr/local/xcl_2_2_0_20090628_2/xoops_trust_path/libs/altsys/sql/mysql.sql. Creating tables…
* Table cfccf8_altsys_language_constants created.
* Template altsys_inc_mymenu.html added to the database. (ID: 88)
* Template altsys_main_myblocksadmin_list.html added to the database. (ID: 89)
* Template altsys_main_myblocksadmin_edit.html added to the database. (ID: 90)
* Template altsys_main_mylangadmin.html added to the database. (ID: 91)
* Template altsys_block_admin_menu.html added to the database. (ID: 92)
* Template altsys_inc_mymenusub.html added to the database. (ID: 93)
AltsysはこれでOKだろう。実際どう変わったのか、いきなり導入したからわからんのだが。
pico のインストール
えーと、Altsysと全然変わらないです、モジュールを落としてくる先も変わらないし。。
http://xoops.peak.ne.jp/md/mydownloads/
結果だけ。
モジュールインストール ログ
* ブロック メニュー をインストールしました
* ブロック コンテンツ内容 をインストールしました
* ブロック コンテンツ一覧 をインストールしました
* ブロック サブカテゴリー一覧 をインストールしました
* ブロック 自身の承認待ち をインストールしました
* ブロック タグ一覧 をインストールしました
* コンフィグ use_wraps_mode を追加しました
* コンフィグ use_rewrite を追加しました
* コンフィグ wraps_auto_register を追加しました
* コンフィグ auto_register_class を追加しました
* コンフィグ top_message を追加しました
* コンフィグ show_menuinmoduletop を追加しました
* コンフィグ show_listasindex を追加しました
* コンフィグ show_breadcrumbs を追加しました
* コンフィグ show_pagenavi を追加しました
* コンフィグ show_printicon を追加しました
* コンフィグ show_tellafriend を追加しました
* コンフィグ use_taf_module を追加しました
* コンフィグ search_by_uid を追加しました
* コンフィグ filters を追加しました
* コンフィグ filters_forced を追加しました
* コンフィグ filters_prohibited を追加しました
* コンフィグ submenu_showcontents を追加しました
* コンフィグ sitemap_showcontents を追加しました
* コンフィグ use_vote を追加しました
* コンフィグ guest_vote_interval を追加しました
* コンフィグ htmlheader を追加しました
* コンフィグ allow_each_htmlheader を追加しました
* コンフィグ css_uri を追加しました
* コンフィグ images_dir を追加しました
* コンフィグ body_editor を追加しました
* コンフィグ htmlpurify_except を追加しました
* コンフィグ histories_per_content を追加しました
* コンフィグ minlifetime_per_history を追加しました
* コンフィグ browser_cache を追加しました
* コンフィグ extra_fields_class を追加しました
* コンフィグ uri_mapper_class を追加しました
* コンフィグ extra_images_dir を追加しました
* コンフィグ extra_images_size を追加しました
* コンフィグ image_magick_path を追加しました
* コンフィグ comment_dirname を追加しました
* コンフィグ comment_forum_id を追加しました
* コンフィグ comment_order を追加しました
* コンフィグ comment_view を追加しました
* コンフィグ comment_posts_num を追加しました
* コンフィグ notification_enabled を追加しました
* コンフィグ notification_events を追加しました
* pico モジュールのインストールに成功しました
* SQL file found at /usr/local/xcl_2_2_0_20090628_2/xoops_trust_path/modules/pico/sql/mysql.sql. Creating tables…
* Table cfccf8_pico_category_permissions created.
* Data inserted to table cfccf8_pico_category_permissions.
* Data inserted to table cfccf8_pico_category_permissions.
* Data inserted to table cfccf8_pico_category_permissions.
* Table cfccf8_pico_categories created.
* Data inserted to table cfccf8_pico_categories.
* Table cfccf8_pico_contents created.
* Table cfccf8_pico_content_votes created.
* Table cfccf8_pico_content_histories created.
* Table cfccf8_pico_content_extras created.
* Table cfccf8_pico_tags created.
* Template pico_main_content_form.html added to the database. (ID: 94)
* Template pico_main_content_form.html compiled.
* Template pico_main_listcontents.html added to the database. (ID: 95)
* Template pico_main_listcontents.html compiled.
* Template pico_main_querycontents.html added to the database. (ID: 96)
* Template pico_main_querycontents.html compiled.
* Template pico_independent_singlecontent.html added to the database. (ID: 97)
* Template pico_independent_singlecontent.html compiled.
* Template pico_block_subcategories.html added to the database. (ID: 98)
* Template pico_block_subcategories.html compiled.
* Template pico_main_viewcontent.html added to the database. (ID: 99)
* Template pico_main_viewcontent.html compiled.
* Template pico_block_mywaitings.html added to the database. (ID: 100)
* Template pico_block_mywaitings.html compiled.
* Template pico_admin_tags.html added to the database. (ID: 101)
* Template pico_admin_tags.html compiled.
* Template pico_blockedit_subcategories.html added to the database. (ID: 102)
* Template pico_blockedit_subcategories.html compiled.
* Template pico_main_viewhistory.html added to the database. (ID: 103)
* Template pico_main_viewhistory.html compiled.
* Template pico_blockedit_list.html added to the database. (ID: 104)
* Template pico_blockedit_list.html compiled.
* Template pico_main_diffhistories.html added to the database. (ID: 105)
* Template pico_main_diffhistories.html compiled.
* Template pico_blockedit_mywaitings.html added to the database. (ID: 106)
* Template pico_blockedit_mywaitings.html compiled.
* Template pico_inc_breadcrumbs.html added to the database. (ID: 107)
* Template pico_inc_breadcrumbs.html compiled.
* Template pico_blockedit_menu.html added to the database. (ID: 108)
* Template pico_blockedit_menu.html compiled.
* Template pico_block_content.html added to the database. (ID: 109)
* Template pico_block_content.html compiled.
* Template pico_main_menu.html added to the database. (ID: 110)
* Template pico_main_menu.html compiled.
* Template pico_independent_rss20.html added to the database. (ID: 111)
* Template pico_independent_rss20.html compiled.
* Template pico_block_tags.html added to the database. (ID: 112)
* Template pico_block_tags.html compiled.
* Template pico_admin_extras.html added to the database. (ID: 113)
* Template pico_admin_extras.html compiled.
* Template pico_block_list.html added to the database. (ID: 114)
* Template pico_block_list.html compiled.
* Template pico_admin_extras_detail.html added to the database. (ID: 115)
* Template pico_admin_extras_detail.html compiled.
* Template pico_blockedit_tags.html added to the database. (ID: 116)
* Template pico_blockedit_tags.html compiled.
* Template pico_admin_import.html added to the database. (ID: 117)
* Template pico_admin_import.html compiled.
* Template pico_main.css added to the database. (ID: 118)
* Template pico_main.css compiled.
* Template pico_main_category_form.html added to the database. (ID: 119)
* Template pico_main_category_form.html compiled.
* Template pico_admin_contents.html added to the database. (ID: 120)
* Template pico_admin_contents.html compiled.
* Template pico_block_menu.html added to the database. (ID: 121)
* Template pico_block_menu.html compiled.
* Template pico_admin_category_access.html added to the database. (ID: 122)
* Template pico_admin_category_access.html compiled.
* Template pico_independent_print.html added to the database. (ID: 123)
* Template pico_independent_print.html compiled.
* Template pico_blockedit_content.html added to the database. (ID: 124)
* Template pico_blockedit_content.html compiled.
めっちゃ色々入ったなぁ、Template とか入ってるってことは、メニューの展開とかも込みで見た目に関与するところが多いからかな。
pico の設定とか
入れたはいいが、親カテゴリを複数持つ設定がよくわからん。
トップカテゴリ?は名前帰れるだけだし。。
マニュアルはこのへんか。
ModuleManuals/ pico
http://www.xugj.org/modules/xpwiki/?ModuleManuals%2Fpico
モジュールフロントエンドを複数置けとのこと。
任意の名前でコピーし、モジュールインストールをしていけばよいようだ、"html/modules" の下やね。
ディレクトリを複数作れば、こういったカテゴリ分けが可能、picoのディレクトリ名はそのままURLになるので、カテゴリにあった名前にしよう。
pico_a
├サブカテゴリA1
│├コンテンツA1-1
│└コンテンツA1-2
└サブカテゴリA2
├コンテンツA2-1
└コンテンツA2-2
pico_b
├サブカテゴリB1
│├コンテンツB1-1
│└コンテンツB1-2
└サブカテゴリB2
├コンテンツB1-1
└コンテンツB1-2
Cube Legacy 感想
管理のしやすさなどはさすがによさそう、でも表示が重たいね。
同じスペックのサーバで動いている本家2.0x より相当重い。
最近のコメント