Joomler!.net - Decided on Joomla!

デル株式会社

Jboard is Multiple Board!

Home » Blog » Load Module
2 votes
Written by:Joomler! 5239 hits Saturday, 03 November 2007 21:23

Moduleの使い方ですが、大抵テンプレートにUser1とか書いてその場所で出力させているかと思うのですが、Joomla!1.0.xにはモジュールローダー、Joomla!1.5にはLoad Moduleというプラグインがあるのをご存じですか?知らない事も多々ある私ですがこれは、知っています。1.0.xなら {mosloadposition user1} 1.5なら{loadposition user1} でuser1に登録されているモジュールを記事内に書き出すことが可能です。

 ポジションに空きの無い方は、1.0.xなら「サイト」「テンプレート管理」「モジュールポジション」で適当にポジションを増やした後、表示させたいモジュールの設定でそのポジションを先ほどのポジションにし、公開にします。そして表示させたい記事内の任意の場所に {mosloadposition 設定したポジション名} でOKです。1.5の場合は、テンプレートのxmlファイル内に書いてあるポジションしか選択できないようです。(他に設定があるかもしれませんが)ですので表示しているテンプレートのフォルダ内のxmlファイルを開きポジション名が書かれているところに追加すればポジションは増やせます。

例としてGoogle Video Bar モジュールを置いてみました。

{mosloadposition gvb1}

こうやって記事内のどこにでも配置できるので便利ですよね。モジュールの違った使い方をご紹介しました。

 

JContentPlus for Joomla!1.5 powered by Joomler!.net

joomler.net is not affiliated with or endorsed by the Joomla! Project or Open Source Matters.
The Joomla!(R) name is used under a limited license from Open Source Matters in the United States and other countries.
joomler.net is not affiliated with or endorsed by Open Source Matters or the Joomla! Project.