SlideShare a Scribd company logo
1 of 3
# 第 2 回らくべ 事〜 議 録
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
■ 催概要開
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
日 :時 2016 年 6 月 22 日 18:00
所:キャッチアップ場
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
■ 事議 録
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
この勉 会のススメ方を教えてください( 藤)・ 強 権
→ なるようになる。
新入社 の方に・ 員 baserCMS をどう学んでもらってるか(越水さん)
既にリリ スした案件をテ マにして学 用に再 してもらう。ー ー 習 構築
→ 既にリリ スされているので 本が存在するので教育コストが低くすむ。ー 見
スニペットためてますか?(越水さん)・
→ キャッチアップ organization qiita 利用してます。
オリジナルテ マを作るときに参考になるサイトは?(原口さん)・ ー
→ 去案件みます。過
→ WP の 合どうします?場
→ 去案件みますw過
→ http://wiki.bsercms.net/テ マガイド などあるよー
→ 既存のソ ス るよ(人のテ マなど)ー 見 ー
ブログの・ index.php と archive.php の いは?(越水)違
index.php / archive.php / single.php / posts.php
[index.php]
/news/
/news/index -> 一覧
[archives.php]
/news/archives/category/カテゴリ 名ー / -> カテゴリ 一別 覧
/news/archives/tag/タグ名 -> タグ 一別 覧
/news/archives/date/日付 -> 日付(年 月 日) 一・ ・ 別 覧
[posts.php]
表示の 合に利用個別 場
・baserCMS 特定ペ ジカテゴリの条件分岐について(越水さん)ー
特定の固定ペ ジの 合に分岐したい。ー 場
isPage ? もっと かく細
→ えいやっ!ってやる
<?php if (strtolower($this->BcBaser->getContentsName(true)) === 'hotkeyword'): >
とか
<?php if ($this->request->url == “/about”) { ?>
とか
<?php if (strpos($this->request->url, “/categoryname/”) !== false) { ?>
とか
特定の固定ペ ジのキャッシュをオフにする な 能はありますか?(・ ー 簡単 機 CU 中村さん)
h2. 固定ペ ジにて、特定のー URL にアクセスした にキャシュを生成しないよう 更するイベント際 変
sample
<pre>
/**
* 索が入る固定ペ ジはキャッシュしない検 ー
* @param CakeEvent $event
* @return boolean
*/
public function pagesBeforeRender(CakeEvent $event){
$Controller = $event->subject();
$nonCacheUrl = array(
'otameshi',
'otameshi/',
'otameshi/index',
'bento',
'bento/',
'bento/index',
'bansyaku',
'bansyaku/',
'bansyaku/index',
'freeshipping',
'freeshipping/',
'freeshipping/index',
);
if (in_array($Controller->request->url, $nonCacheUrl)) {
$Controller->cacheAction = '0';
}
return true;
}
</pre>
任意のタグア カイブへのリンクの取得方法が知りたい・ ー
→ タグ一 ありません覧
→ タグ 一 ありません別 覧
$tagModel = ClassRegistory::init(“Blog.BlogTag”);
$tagList = $tagModel->find(“all”);
foreach($tagList as $tag) {
echo ‘<li><a href=”/news/archives/tag/’ . h($tag) . ’”>’.
$tag .’</a></li>’;
}
・posts.php 内で isHome の分岐はできますか?(原口さん)
→ バグってるかもしれません。
→ posts のテンプレ ト分けたほうがいいかもですね。ー
<?php $this->BcBaser->blogPosts(“news”, 5 array(“templates”=>
’posts_side.php’ )); ?>
or
<?php $this->BcBaser->blogPosts(“news”, 5 array(“template”=> ’posts_top.php’ ));
?>
サイト内 索を 装する方法が知りたい(原口さん)・ 検 実
索フォ ム検 ー
/lib/Baser/View/Elements/site_search_form.php をテ マにコピ して 更ー ー 変
<?php $this->BcBaser->siteSearchForm() ?> でフォ ム表示ー
果一結 覧
/lib/Baser/View/Contents/search.php をテ マにコピ して 更ー ー 変
イベントの使いドコロ、コツというか(内 さん)・ 場
Page / Blog / Mail のプログラムを 更したい 合。変 場
よく使うイベント
[Controller]
・beforeRender
[Model]
・beforeFind
・beforeValidate
その他の についてが っと行きました。質問 ー

More Related Content

Featured

Product Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage EngineeringsProduct Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage EngineeringsPixeldarts
 
How Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental HealthHow Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental HealthThinkNow
 
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdfAI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdfmarketingartwork
 
PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024Neil Kimberley
 
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)contently
 
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024Albert Qian
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsKurio // The Social Media Age(ncy)
 
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Search Engine Journal
 
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summarySpeakerHub
 
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd Clark Boyd
 
Getting into the tech field. what next
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next Tessa Mero
 
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentLily Ray
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best PracticesVit Horky
 
The six step guide to practical project management
The six step guide to practical project managementThe six step guide to practical project management
The six step guide to practical project managementMindGenius
 
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...RachelPearson36
 
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...Applitools
 
12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at Work12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at WorkGetSmarter
 

Featured (20)

Product Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage EngineeringsProduct Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage Engineerings
 
How Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental HealthHow Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental Health
 
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdfAI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
 
Skeleton Culture Code
Skeleton Culture CodeSkeleton Culture Code
Skeleton Culture Code
 
PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024
 
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)
 
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
 
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024
 
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary
 
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd
 
Getting into the tech field. what next
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next
 
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search Intent
 
How to have difficult conversations
How to have difficult conversations How to have difficult conversations
How to have difficult conversations
 
Introduction to Data Science
Introduction to Data ScienceIntroduction to Data Science
Introduction to Data Science
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best Practices
 
The six step guide to practical project management
The six step guide to practical project managementThe six step guide to practical project management
The six step guide to practical project management
 
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
 
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
 
12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at Work12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at Work
 

第2回らくべ〜

  • 1. # 第 2 回らくべ 事〜 議 録 ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ ■ 催概要開 ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 日 :時 2016 年 6 月 22 日 18:00 所:キャッチアップ場 ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ ■ 事議 録 ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ この勉 会のススメ方を教えてください( 藤)・ 強 権 → なるようになる。 新入社 の方に・ 員 baserCMS をどう学んでもらってるか(越水さん) 既にリリ スした案件をテ マにして学 用に再 してもらう。ー ー 習 構築 → 既にリリ スされているので 本が存在するので教育コストが低くすむ。ー 見 スニペットためてますか?(越水さん)・ → キャッチアップ organization qiita 利用してます。 オリジナルテ マを作るときに参考になるサイトは?(原口さん)・ ー → 去案件みます。過 → WP の 合どうします?場 → 去案件みますw過 → http://wiki.bsercms.net/テ マガイド などあるよー → 既存のソ ス るよ(人のテ マなど)ー 見 ー ブログの・ index.php と archive.php の いは?(越水)違 index.php / archive.php / single.php / posts.php [index.php] /news/ /news/index -> 一覧 [archives.php] /news/archives/category/カテゴリ 名ー / -> カテゴリ 一別 覧 /news/archives/tag/タグ名 -> タグ 一別 覧 /news/archives/date/日付 -> 日付(年 月 日) 一・ ・ 別 覧 [posts.php] 表示の 合に利用個別 場 ・baserCMS 特定ペ ジカテゴリの条件分岐について(越水さん)ー 特定の固定ペ ジの 合に分岐したい。ー 場 isPage ? もっと かく細 → えいやっ!ってやる <?php if (strtolower($this->BcBaser->getContentsName(true)) === 'hotkeyword'): > とか <?php if ($this->request->url == “/about”) { ?> とか <?php if (strpos($this->request->url, “/categoryname/”) !== false) { ?> とか 特定の固定ペ ジのキャッシュをオフにする な 能はありますか?(・ ー 簡単 機 CU 中村さん)
  • 2. h2. 固定ペ ジにて、特定のー URL にアクセスした にキャシュを生成しないよう 更するイベント際 変 sample <pre> /** * 索が入る固定ペ ジはキャッシュしない検 ー * @param CakeEvent $event * @return boolean */ public function pagesBeforeRender(CakeEvent $event){ $Controller = $event->subject(); $nonCacheUrl = array( 'otameshi', 'otameshi/', 'otameshi/index', 'bento', 'bento/', 'bento/index', 'bansyaku', 'bansyaku/', 'bansyaku/index', 'freeshipping', 'freeshipping/', 'freeshipping/index', ); if (in_array($Controller->request->url, $nonCacheUrl)) { $Controller->cacheAction = '0'; } return true; } </pre> 任意のタグア カイブへのリンクの取得方法が知りたい・ ー → タグ一 ありません覧 → タグ 一 ありません別 覧 $tagModel = ClassRegistory::init(“Blog.BlogTag”); $tagList = $tagModel->find(“all”); foreach($tagList as $tag) { echo ‘<li><a href=”/news/archives/tag/’ . h($tag) . ’”>’. $tag .’</a></li>’; } ・posts.php 内で isHome の分岐はできますか?(原口さん) → バグってるかもしれません。 → posts のテンプレ ト分けたほうがいいかもですね。ー <?php $this->BcBaser->blogPosts(“news”, 5 array(“templates”=> ’posts_side.php’ )); ?> or <?php $this->BcBaser->blogPosts(“news”, 5 array(“template”=> ’posts_top.php’ )); ?> サイト内 索を 装する方法が知りたい(原口さん)・ 検 実 索フォ ム検 ー /lib/Baser/View/Elements/site_search_form.php をテ マにコピ して 更ー ー 変 <?php $this->BcBaser->siteSearchForm() ?> でフォ ム表示ー 果一結 覧 /lib/Baser/View/Contents/search.php をテ マにコピ して 更ー ー 変
  • 3. イベントの使いドコロ、コツというか(内 さん)・ 場 Page / Blog / Mail のプログラムを 更したい 合。変 場 よく使うイベント [Controller] ・beforeRender [Model] ・beforeFind ・beforeValidate その他の についてが っと行きました。質問 ー