|
jdoc statements いろいろ
テンプレートをコツコツ作る時に役立つリファレンスをから抜粋。。。
コンポーネント --------------bodyタグの中には1度のみ利用可能。ページのメインコンテンツをレンダリング。 <jdoc:include type="component" />
ヘッド --------------headタブの中に1度のみ利用可能。スタイル、スクリプトやメタ要素をレンダリング。 <jdoc:include type="head" />
インストール --------------Joomla!インストール時のテンプレートにのみ利用。フロント、バックエンドテンプレートには出番なし。インストール手順のメインコンテンツをレンダリング。 <jdoc:include type="installation" />
メッセージ --------------bodyタグに1度のみ利用可能。システム、エラーメッセージをレンダリング。 システムメッセージのスタイルはtemplates\system\css\system.cssで変更可能。 <jdoc:include type="message" />
モジュール --------------nameに書かれたシングルモジュールをレンダリング。 <jdoc:include type="module" name="breadcrumbs" /> <jdoc:include type="module" name="menu" /> <jdoc:include type="module" name="submenu" style="rounded" />
モジュールズ --------------templatedetails.xmlに設定されたポジションのみ利用可能。 ※user3は通常top menuとして利用される。 <jdoc:include type="modules" name="debug" /> <jdoc:include type="modules" name="icon" /> <jdoc:include type="modules" name="left" style="rounded" /> <jdoc:include type="modules" name="left" style="xhtml" /> <jdoc:include type="modules" name="right" style="xhtml" /> <jdoc:include type="modules" name="status" /> <jdoc:include type="modules" name="syndicate" /> <jdoc:include type="modules" name="title" /> <jdoc:include type="modules" name="toolbar" /> <jdoc:include type="modules" name="top" /> <jdoc:include type="modules" name="top" style="xhtml" /> <jdoc:include type="modules" name="user1" style="xhtml" /> <jdoc:include type="modules" name="user2" style="xhtml" /> <jdoc:include type="modules" name="user3" /> <jdoc:include type="modules" name="user4" />
xhtmlだとdivタグで、roundedだと角が丸いdivでレンダリングされる。tableだとtableタグ、horizontalは1.5では使わない。
ヽ(´ー`)ノ
 |
|
最終更新 2009年 7月 09日(木曜日) 13:56 |