Más contenido relacionado
La actualidad más candente (16)
Similar a MTCafe sapporo#4 (20)
MTCafe sapporo#4
- 6. bit part 紹介 / mersy
•柳谷真志
やなぎやまさし
•linker、アイペアーズ(株)
•木曜から札幌きてます!
- 8. bit part 紹介 / tinybeans
•奥脇知宏
おくわきともひろ
•かたつむりくんのWWW
•Movable Type 5.1
プロの現場の仕事術
(毎日コミュニケーションズ)
- 9. bit part 紹介 / plugins
•flexibleSearch
•MTAppjQuery
•MTML Completions
•compress modifier
etc...
- 10. bit part 紹介 / plugins
•flexibleSearch
•MTAppjQuery
•MTML Completions
•compress modifier
etc...
ドキュメント販売中!!
http://bitpart.thebase.in/
- 19. • config
• mod_category_list
• mod_googletagmanager
• mod_header
• mod_header_top
• mod_html_head
• mod_script
• mod_search
• mod_tag_list
DEMOサイトの構成
< テンプレートモジュール >
- 24. •load.js で Data APIオブジェクトを作成
https://gist.github.com/mersy/
3486116e0d5685c09328
DEMOサイトの構成
< DataAPI で追加読み込み >
- 26. •getApiEntries (1, params, "");
api.listEntriesとその他の処理をまとめた関数
•api.listEntries(siteId, params,
function(response) {});
Movable Type Data API SDK library で提供さ
れている記事の一覧を取得する関数
DEMOサイトの構成
< DataAPI で追加読み込み >
- 33. DEMOサイトの構成
< DataAPI で検索 >
<mt:Include module="mod_html_head">
<body id="topPage" class="headerBg">
<mt:Include module="mod_googletagmanager">
<div class="wrapper">
<mt:Include module="mod_header">
<mt:Include module="mod_search">
<h3 id="pageTitle" class="h3_title">検索結果</h3>
<div id="entries" class="listWrapper">
<div id="resultMsg" class="detailDescription"></div>
<div id="loadingImg" class="loding" style="display:none;"><img
src="<mt:Var name="website_url">common/images/common/loding.gif" alt=""></div>
</div>
</div>
<input type="hidden" name="searchEnable" value="true">
<mt:Include module="mod_script" data_api="1" top="1">
</body>
- 41. if (mtappVars.screen_id === "edit-entry") {
$("#customfield_txtingredient").MTAppLineBreakField();
}
MTAppjQuery
< MTAppLineBreakField >
- 42. <mt:If tag="txtingredient">
<h4>材料</h4>
<mt:txtingredient split="n" setvar="ingredient">
<mt:SetVar name="ul_cond" value="close">
<mt:Loop name="ingredient">
<mt:If name="__value__" like="^・">
<mt:If name="ul_cond" eq="close">
<ul class="detailUL">
</mt:If>
<li> <mt:Var name="__value__" regex_replace="/^・/",""></li>
<mt:SetVar name="ul_cond" value="open">
<mt:Else>
<mt:If name="ul_cond" eq="open">
</ul>
</mt:If>
<p class="mb5"><mt:Var name="__value__"></p>
</mt:If>
</mt:Loop>
<mt:If name="ul_cond" eq="open">
</ul>
</mt:If>
</mt:If>
MTAppjQuery
< MTAppLineBreakField >
- 47. if (mtappVars.screen_id.indexOf("edit-template") > -1) {
if (mtappVars.author_name !== mtappVars.modified_by) {
$.MTAppDialogMsg({
title: 'テンプレート編集の警告',
content: '<span style="color:red;font-
weight:bold;">★★★★★★★★★★★★★★★★★★★★<br><br>最終更新者
はあなたではありません!!
<br><br>★★★★★★★★★★★★★★★★★★★★</span>',
width: 'auto',
height: 'auto',
modal: true,
hideEffect: ''
});
}
}
MTAppjQuery
< MTAppDialogMsg >
- 54. if (mtappVars.screen_id === "edit-category") {
$("#customfield_categorycolor").MTAppDynamicSelect({
text: '0|選択してください,cat1|水色,cat2|黄緑,cat3|オレン
ジ,cat4|ピンク,cat5|紫,cat6|青,cat7|緑,cat8|紺',
separateMode: true
});
}
MTAppjQuery
< MTAppDynamicSelect >