This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<$MTSetVar name="nest_count" value="0"$><MTParentCategories><$MTSetVar name="nest_count" op="++"$></MTParentCategories><MTIf name="nest_count" gt="2">service/list_<$MTCategoryBasename$>.html<MTElse>_index.html</MTElse></MTIf> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
次のように書きたいとする。 | |
$.MTAppFieldSort({sort: 'title,excerpt,text,ext-field,keywords,tags'}); | |
【対処方法】 | |
text-fieldの手前を$.MTAppFieldSort()でソートして、後はtext-fieldにafter()していく。 | |
(1) シンプルに書く | |
$.MTAppFieldSort({sort: 'title,excerpt'}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if (mtappVars.screen_id === 'edit-page') { | |
$.MTAppInCats({ | |
categories: '3', // ←フォルダIDをカンマ区切りで設定 | |
code: function(){ | |
alert('Have a good day!'); // 処理内容を指定($.MTAppCustomize()などなど) | |
} | |
}); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<mt:DynamicMTML> | |
<mt:CampaignRandom tag="main_visual"> | |
<mt:CampaignAsset> | |
<p class="image"><img src="<$mt:AssetURL$>" alt="<$mt:AssetLabel$>" width="<$mt:AssetProperty property="image_width"$>" height="<$mt:AssetProperty property="image_height"$>" /></p> | |
</mt:CampaignAsset> | |
</mt:CampaignRandom> | |
</mt:DynamicMTML> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
【設定ファイル】 | |
[product_image] | |
fieldname = 商品画像 | |
type = imagefield | |
class = post page | |
【テンプレート】 | |
<?php | |
$imagefield = get_imagefield('product_image'); | |
$image_id = $imagefield['id']; |
NewerOlder