[LifeType] 下拉式的文章彙整的問題

For Plog 1.0
只要將下面的 語法 置換掉 panel.template 中的文章分類和文章彙整即可。
From:Reic Place

{literal}
<script language="javascript" type="text/javascript">
function MM_jumpMenu(targ,selObj,restore){
eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
if (restore) selObj.selectedIndex=0;
}
</script>
{/literal}
<div class="sidetitle">
{$locale->tr("categories")}
</div>
<div class="side">
<form name="Category" style="margin:2px;">
<select name="menu_menu" onChange="MM_jumpMenu('parent',this,0)">
<option value="" selected>請選擇分類</option>
{foreach from=$articlecategories item=articleCategory}
<option value="{$url->categoryLink($articleCategory)}">
{$articleCategory->getName()}  [{$articleCategory->getNumArticles()}]
</option>
{/foreach}
</select>
</form>
</div>
<div class="sidetitle">
{$locale->tr("archives")}
</div>
<div class="side">
<form name="Month" style="margin:2px;">
<select name="menu_menu" onChange="MM_jumpMenu('parent',this,0)">
<option value="" selected>前期文章</option>
{foreach from=$archives item=month}
<option value="{$month->getUrl()}">
{$month->getName()}  [{$month->getNumArticles()}]
</option>
{/foreach}
</select>
</form>
</div>
Please follow and like us:

發表迴響

你的電子郵件位址並不會被公開。 必要欄位標記為 *