Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
concrete5のトピックのカテゴリーで絞り込みした話
Search
hayaka26
December 22, 2018
0
120
concrete5のトピックのカテゴリーで絞り込みした話
2018-12-22「concrete5にまつわるLT大会」にて。
hayaka26
December 22, 2018
Tweet
Share
More Decks by hayaka26
See All by hayaka26
事例で見るconcrete5
hayaka26
0
99
2016/7/23 concrete5紹介LT
hayaka26
1
220
concrete5 スタイルカスタマイズ対応の基本
hayaka26
1
310
Featured
See All Featured
Music & Morning Musume
bryan
46
6.2k
Measuring & Analyzing Core Web Vitals
bluesmoon
4
170
A better future with KSS
kneath
238
17k
The Invisible Side of Design
smashingmag
298
50k
Sharpening the Axe: The Primacy of Toolmaking
bcantrill
38
1.9k
Git: the NoSQL Database
bkeepers
PRO
427
64k
Intergalactic Javascript Robots from Outer Space
tanoku
270
27k
Fireside Chat
paigeccino
34
3.1k
Adopting Sorbet at Scale
ufuk
73
9.1k
We Have a Design System, Now What?
morganepeng
51
7.3k
How STYLIGHT went responsive
nonsquared
95
5.2k
Fantastic passwords and where to find them - at NoRuKo
philnash
50
2.9k
Transcript
τϐοΫͷΧςΰϦʔ ͰߜΓࠐΈͨ͠ ঙ࢘ૣ߳ 2018-12-21ʮconcrete5ʹ·ͭΘΔLTେձʯ 1
ࣗݾհ ঙ࢘ૣ߳ʢγϣδϋϠΧʣ DPODSFUF+BQBO&WBOHFMJTU 5XJUUFSɿNJ[ 'BDFCPPLɿIBZBLB 2
ຊΛࣥච͠·ͨ͠ ੈքҰΘ͔Γ͍͢ DPODSFUFಋೖͱ αΠτ੍࡞ͷڭՊॻ ൃചதͰ͢ʂ 3
ΧςΰϦʔͬͯ Α͍͘·͢ΑͶ 4
ΧςΰϦʔΛ͏ͱ͜Ζ ɾϒϩά ɾ ɾΠϕϯτ ͳͲͳͲ 5
ࢠ͕ؔ ඞཁͳ͜ͱͬͯ Α͋͘Γ·͢ΑͶ 6
ͨͱ͑͜Μͳײ͡ ΧςΰϦʔ" ࢠΧςΰϦʔ ࢠΧςΰϦʔ ΧςΰϦʔ# ࢠΧςΰϦʔ ࢠΧςΰϦʔ 7
concrete5Ͱ ͜ͷΑ͏ͳྨΛ ͍ͨ͠ͱ͖ʁ 8
ʮτϐοΫʯ͕ศར 9
τϐοΫΛ͏ͱ͜Μͳײ͡ ΧςΰϦʔ" τϐοΫ τϐοΫ ΧςΰϦʔ# τϐοΫ τϐοΫ 10
11 ˡτϐοΫϦετ ˣϖʔδϦετ τϐοΫͰϖʔδΛߜΓࠐΉ߹ ߹ΘٕͤͰ؆୯ʂ
͔͠͠ɾɾɾ 12
ΧςΰϦʔͰ ߜΓࠐΉ͜ͱ͕ Ͱ͖·ͤΜʀʔʀ 13
14 ΫϦοΫͰ͖ͳ͍ˠ
ҎલͷόʔδϣϯͰ τϐοΫ" τϐοΫ τϐοΫ τϐοΫ# τϐοΫ τϐοΫ ΧςΰϦʔΛτϐοΫͰ࡞Δ͜ͱͰɺ ߜΓࠐΉ͜ͱ͕Ͱ͖·ͨ͠ɻ 15
ݱόʔδϣϯͰ τϐοΫͷԼʹτϐοΫ ࡞Ε·ͤΜɾɾɾ 16
ࠔͬͨɾɾɾ ࠓ͙͢ඞཁͳͷʹʂʂʂ 17
࣮खॱΛ ؆୯ʹհ͠·͢ 18
ࠓճมߋͨ͠Օॴ ɾτϐοΫϦετͷWJFX ɾϖʔδϦετͷDPOUSPMMFS ɾϖʔδλΠτϧͷDPOUSPMMFS ͷͭͰ͢ɻ 19
τϐοΫϦετͷ ΧςΰϦʔʹϦϯΫΛ Δ 20
τϐοΫϦετඪ४ͷςϯϓϨʔτͰɺ ΧςΰϦʔͷ߹໊લ͚ͩग़ྗ ͦ͏Ͱͳ͍߹ϦϯΫ͖Ͱग़ྗ ɹˣมߋ ΧςΰϦʔͷ߹ʙͱ͍͏JGจ෦ΛΧοτͯ͠ ΧςΰϦʔͰͦ͏Ͱͳͯ͘ϦϯΫ͖Ͱग़ྗ 21
if ($topic instanceof \Concrete\Core\Tree\Node\Type\Category) { ?><li><?php echo $topic->getTreeNodeDisplayName(); ?> <?php
} else { ?><li><a href="<?php echo $view->controller->getTopicLink($topic); ?>" <?php if (isset($selectedTopicID) && $selectedTopicID == $topic- >getTreeNodeID()) { ?> class="ccm-block-topic-list-topic-selected"<?php } ?>><?php echo $topic->getTreeNodeDisplayName(); ?></a><?php } 22 BQQMJDBUJPOCMPDLTUPQJD@MJTUUFNQMBUFTΧελϜςϯϓϨʔτ໊QIQ
23 ϦϯΫ͕͍ͭͨˠ
·ͩߜΓࠐΊͣ 24
ϖʔδϦετͷ controllerΛ ΦʔόʔϥΠυ 25
τϐοΫͰߜΓࠐΉͱ͖ɺΧςΰϦʔͩͬͨ߹ʹ Ͳ͏͢Ε͍͍͔Λهʂ 26
QVCMJDGVODUJPOBDUJPO@pMUFS@CZ@UPQJD USFF/PEF*%GBMTF UPQJDGBMTF \ JG USFF/PEF*% \ UPQJD0CK5PQJDHFU#Z*% JOUWBM
USFF/PEF*% JG JT@PCKFDU UPQJD0CK UPQJD0CKJOTUBODFPG5PQJD \ UIJTMJTUpMUFS#Z5PQJD JOUWBM USFF/PEF*% TFP$PSFNBLF IFMQFSTFP TFPBEE5JUMF4FHNFOU UPQJD0CKHFU5SFF/PEF%JTQMBZ/BNF ^FMTFJG JT@PCKFDU UPQJD0CK UPQJD0CKJOTUBODFPG$BUFHPSZ \ UPQJD)BOEMFUIJTDVTUPN5PQJD"UUSJCVUF,FZ)BOEMF JG UPQJD)BOEMF \ UIJTMJTUpMUFS#Z"UUSJCVUF UPQJD)BOEMF USFF/PEF*% TFP$PSFNBLF IFMQFSTFP TFPBEE5JUMF4FHNFOU UPQJD0CKHFU5SFF/PEF%JTQMBZ/BNF ^ ^ ^ UIJTWJFX ^ 27 BQQMJDBUJPOCMPDLTQBHF@MJTUDPOUSPMMFSQIQ
ΧςΰϦʔͰߜΓࠐΉʹɺ ϖʔδଐ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