左メニューにサブメニューを表示する
メニューを2階層にする
まず、index.php の
次に、templates/menu_1.tpl の
メニューを3階層にする
まず、index.php の
次に、templates/menu_1.tpl の
スタイルの追加
以上の作業をおこなったのち、スタイルシートの
まず、index.php の
$sMenu1 = throwMenu( 'menu_1.tpl', 1, $iContent, 0 );を
$sMenu1 = throwMenu( 'menu_1.tpl', 1, $iContent, 1 );とします。
次に、templates/menu_1.tpl の
<!-- BEGIN LIST_0 -->のあとに
<dt class="l$aList[sStyle]" $aList[sSelected]><a href="?p=p_$aList[iPage]&sName=$aList[sNameUrl]">$aList[sName]</a></dt>
<!-- END LIST_0 -->
<!-- BEGIN LIST_1 -->を挿入してください。
<dd class="l$aList[sStyle]" $aList[sSelected]><a href="?p=p_$aList[iPage]&sName=$aList[sNameUrl]">$aList[sName]</a></dd>
<!-- END LIST_1 -->
メニューを3階層にする
まず、index.php の
$sMenu1 = throwMenu( 'menu_1.tpl', 1, $iContent, 0 );を
$sMenu1 = throwMenu( 'menu_1.tpl', 1, $iContent, 2 );とします。
次に、templates/menu_1.tpl の
<!-- BEGIN LIST_0 -->のあとに
<dt class="l$aList[sStyle]" $aList[sSelected]><a href="?p=p_$aList[iPage]&sName=$aList[sNameUrl]">$aList[sName]</a></dt>
<!-- END LIST_0 -->
<!-- BEGIN LIST_1 -->を挿入してください。
<dd class="l$aList[sStyle]" $aList[sSelected]><a href="?p=p_$aList[iPage]&sName=$aList[sNameUrl]">$aList[sName]</a></dd>
<!-- END LIST_1 -->
<!-- BEGIN LIST_2 -->
<li class="l$aList[sStyle]" $aList[sSelected]><a href="?p=p_$aList[iPage]&sName=$aList[sNameUrl]">$aList[sName]</a></li>
<!-- END LIST_2 -->
スタイルの追加
以上の作業をおこなったのち、スタイルシートの
/* MENU 1 styles - left menu */セクションに
#menu1 dd{......}を加えてください。
#menu1 dd a{......}
#menu1 li{......}
#menu1 li a{......}