{"id":4162,"date":"2009-07-15T19:23:51","date_gmt":"2009-07-15T10:23:51","guid":{"rendered":"http:\/\/nogami1.net\/?p=4162"},"modified":"2009-07-15T19:23:51","modified_gmt":"2009-07-15T10:23:51","slug":"c5test","status":"publish","type":"post","link":"https:\/\/moo-nog.ssl-lolipop.jp\/blog\/2009\/07\/15\/c5test\/","title":{"rendered":"C5test"},"content":{"rendered":"<p>\u4ee5\u524d\u306b\u3055\u304f\u3089\u306b\u5165\u308c\u3066\u3044\u305f\uff08\u3055\u304f\u3089\u306e\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306e\u30a4\u30f3\u30dd\u30fc\u30c8\u53ef\u80fd\u5bb9\u91cf\u4e0d\u8db3\u3067\u56f0\u3089\u3055\u308c\u305f\u3068\u304d\u306e\u3084\u3064\u3002\u3055\u304f\u3089\u306e\uff50\uff48\uff50MyAdmin\u3067\u306e\u8a2d\u5b9a\u306e\u554f\u984c\u3068\u5206\u304b\u3063\u305f\u3002WebArena\u3067\u306f\u5bb9\u91cf\u306f\u5927\u304d\u304b\u3063\u305f\u3002\uff09concrete5\u3067\u3001\u69d8\u5b50\u3092\u63a2\u308b\u3053\u3068\u306b\u3057\u305f\u3002<br \/>\n\u4e00\u5fdc\u306f\u52d5\u3044\u3066\u3044\u305f\u3001\u81ea\u5206\u3082\u767b\u9332\u3057\u305f\u306f\u305a\u304c\u3001\uff13\u5ea6\u767b\u9332\u3057\u306a\u3044\u3068\u30a2\u30af\u30bb\u30b9\u3067\u304d\u306a\u304b\u3063\u305f\u306e\u306f\u3001\u539f\u56e0\u4e0d\u660e\u3067\u3042\u308b\u3002<br \/>\n\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u3067\u306f<a href=\"http:\/\/concrete5-japan.org\/help\/basic-concepts\/\">concrete5\u306e\u57fa\u672c\u77e5\u8b58 :: concrete5\u65e5\u672c\u8a9e\u516c\u5f0f\u30b5\u30a4\u30c8<\/a>\u30b7\u30f3\u30b0\u30eb\u30da\u30fc\u30b8\u304c\u6c42\u3081\u308b\u3082\u306e\u304b\u3068\u601d\u308f\u308c\u305f\u304c\u3001\u305d\u306e\u5165\u308c\u65b9\u304c\u66f8\u3044\u3066\u3044\u306a\u3044\u3002<\/p>\n<p><a href=\"http:\/\/concrete5-japan.org\/help\/basic-concepts\/\">concrete5\u306e\u57fa\u672c\u77e5\u8b58 :: concrete5\u65e5\u672c\u8a9e\u516c\u5f0f\u30b5\u30a4\u30c8<\/a> \u3067\u306f\u3000\u958b\u767a\u8005\u5411\u3051\u30fb\u5c02\u9580\u7528\u8a9e\u306e\u89e3\u8aac<br \/>\n\u3068\u3057\u3066\u3001<br \/>\n\u30b7\u30f3\u30b0\u30eb\u30da\u30fc\u30b8<br \/>\n\u300c\u30b7\u30f3\u30b0\u30eb\u30da\u30fc\u30b8\u300d\u3068\u306f\u3001\u30da\u30fc\u30b8\u30bf\u30a4\u30d7\u3092\u6301\u305f\u306a\u3044\u30da\u30fc\u30b8\u306e\u3053\u3068\u3092\u8a00\u3044\u307e\u3059\u3002\u30b7\u30f3\u30b0\u30eb\u30da\u30fc\u30b8\u306f\u3001\u30b5\u30a4\u30c8\u306e\u4e2d\u306b\u76f4\u63a5\u30ea\u30f3\u30af\u3055\u308c\u3001\u7ba1\u7406\u753b\u9762\u304b\u3089\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u4e8b\u306b\u3088\u308a\u3001concrete5\u30b5\u30a4\u30c8\u3068\u30ea\u30f3\u30af\u3059\u308b\u4e8b\u304c\u51fa\u6765\u307e\u3059\u3002<br \/>\n\u30b7\u30f3\u30b0\u30eb\u30da\u30fc\u30b8\u306e\u4ed5\u7d44\u307f\u3092\u52c9\u5f37\u3055\u308c\u305f\u3044\u65b9\u306f<br \/>\n* \u30ed\u30b0\u30a4\u30f3<br \/>\n* \u767b\u9332<br \/>\n* \u7ba1\u7406\u753b\u9762\u306e\u4e2d\u306b\u3042\u308b\u30da\u30fc\u30b8<br \/>\n\u3092\u53c2\u8003\u306b\u3057\u3066\u4e0b\u3055\u3044\u3002<br \/>\n\u3068\u3042\u308b\u3002<\/p>\n<p>\u7ba1\u7406\u753b\u9762\u306e\u300c\u30da\u30fc\u30b8\u3068\u30c6\u30fc\u30de\u300d\u306e\u4e2d\u306b\u3001\u300c\u30b7\u30f3\u30b0\u30eb\u30da\u30fc\u30b8\u300d\u306e\u30bf\u30d6\u304c\u3042\u308a\u3001\u305d\u306e\u6700\u4e0b\u9762\u306b<br \/>\n\u30b7\u30f3\u30b0\u30eb\u30da\u30fc\u30b8\u3092\u8ffd\u52a0<br \/>\n\u8ffd\u52a0\u3057\u305f\u3044\u30da\u30fc\u30b8\u306e\u30a2\u30c9\u30ec\u30b9\u3092\u5165\u529b\uff1a\uff08\u3053\u306e\u6a5f\u80fd\u306f\u4e0a\u7d1a\u8005\u5411\u3051\u3067\u3059\uff09<br \/>\n\u3068\u3042\u308b\u3002<br \/>\n\u3053\u306e\u30a2\u30c9\u30ec\u30b9\u3068\u306f\u3001\u4f55\u306e\u30a2\u30c9\u30ec\u30b9\u306a\u306e\u304b\uff1f\u3000\u65e2\u5b58\u306e\u30b7\u30f3\u30b0\u30eb\u30da\u30fc\u30b8\u306f\u591a\u6570\u898b\u3048\u3066\u304a\u308a\u3001\u305d\u308c\u305e\u308c\u306b\u30d1\u30b9\u304c\u4f8b\u3048\u3070\u3000\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9  \t\/dashboard\/reports\/database\u3000\u3068\u304b\u3042\u308b\u306e\u3060\u304c\u3001\u5b9f\u969b\u306b\u305d\u306e\u30d5\u30a1\u30a4\u30eb\u304c\u5b58\u5728\u3059\u308b\u306e\u3067\u3082\u306a\u3044\u3088\u3046\u3060\u3002\uff08\u3061\u3087\u3063\u3068\u3001\u3053\u306e\u90e8\u5206\u4eca\u8abf\u67fb\u4e2d\u3002\u5225\u306e\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u3092\u898b\u305f\u3088\u3046\u3067\u3001\u5b9f\u969b\u306b\u5165\u3063\u3066\u3044\u308b\u5834\u6240\u304c\u3042\u308b\u307f\u305f\u3044\u3002\uff09<\/p>\n<p><a href=\"http:\/\/www.concrete5.org\/help\/building_with_concrete5\/developers\/mvc\">concrete5 :: Going Beyond Page Types, Blocks and Themes<\/a> \u3069\u3046\u3082single\u3000page\u3068\u306f\u3001\u518d\u5229\u7528\u3059\u308b\u3082\u306e\u3067\u306f\u306a\u3044\u5834\u5408\u306b\u4f7f\u3046\u3082\u306e\u306e\u3088\u3046\u3067\u3001\u5225\u9014\u8907\u96d1\u306a\u3053\u3068\u3092\u3057\u305f\u3044\u6642\u306b\u4f7f\u3048\u308b\u3068\u3082\u3042\u308b\u304c\u3001\u5b9f\u969b\u306b\u7f6e\u3044\u3066\u3042\u308b\u3082\u306e\u306f\u3001\u5358\u7d14\u306a\u3082\u306e\u3070\u304b\u308a\u306e\u3088\u3046\u306b\u898b\u3048\u308b\u3002<br \/>\nSingle Pages<br \/>\nSingle Pages are just like regular pages in a concrete5 site, with a few important differences that developers will appreciate.<br \/>\n\u4f55\u3060\u3063\u3066\u3002\u3069\u3053\u304c\u9055\u3046\uff1f<br \/>\n<a href=\"http:\/\/www.concrete5.org\/help\/building_with_concrete5\/developers\/mvc\/single_pages\">concrete5 :: Single Pages<\/a>Yes: single pages can contain block areas.<br \/>\n\u307e\u3042\u3001\u3053\u3053\u306e\u624b\u9806\u306b\u3088\u308c\u3070\u3001\u30b7\u30f3\u30b0\u30eb\u30da\u30fc\u30b8\u3092\u4f5c\u308b\u306b\u306f<br \/>\n\uff11\u3000\u7a7a\u306ePHP\u30da\u30fc\u30b8\u3092single_pages\/\u3000\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306b\u4f5c\u308b\u3002\u307e\u3042\u3001\u3053\u308c\u3092&#8221;my_profile.php&#8221;\u3000\u3068\u3057\u307e\u3057\u3087\u3046\u304b\u3002\u3053\u306e\u540d\u524d\u306f URL\u3000\u3067\u306e\u30d1\u30b9\u306b\u306a\u308a\u307e\u3059 (\u4f8b\u3048\u3070 &#8220;login.php&#8221; = http:\/\/www.yoursite.com\/login&#8221;). \u3053\u308c\u306f concrete5 \u306e\u547d\u540d\u6163\u7fd2\u306b\u62e0\u3063\u3066\u3044\u307e\u3057\u3066\u3001\u5358\u8a9e\u3092\u5206\u3051\u308b\u306e\u306b\u30a2\u30f3\u30c0\u30fc\u30b9\u30b3\u30a2\uff08\u4e0b\u7dda\uff09\u3092\u4f7f\u3044\u307e\u3059\u306d (\u4f8b\u3048\u3070 &#8220;my_profile.php&#8221;)\u3002<br \/>\n\uff12\u3000concrete5 \u306edashboard\u306b\u30ed\u30b0\u30a4\u30f3\u3057\u307e\u3059\u3002 Themes &amp; Page Types &gt; Single Pages\u3000\u306b\u884c\u304d\u307e\u3057\u3066\u3002\u4e00\u756a\u4e0b\u3067 &#8220;Add a Single Page&#8221; \u3092\u63a2\u3057\u3066\u3001\u540d\u524d\u3092 &#8220;my_profile&#8221; \u3068\u304b\u4f55\u3067\u3082\u3001\u5165\u308c\u307e\u3059\u3002\u3053\u306e\u6b04\u3067\u306f&#8221;.php&#8221; \u306f\u5165\u308c\u307e\u305b\u3093\u3067\u3059\u3002<br \/>\n\uff13\u3000\u4e88\u5b9a\u901a\u308a\u306a\u3089\u3001\u3053\u308c\u3067\u7ba1\u7406\u30da\u30fc\u30b8\u306f\u66f4\u65b0\u3055\u308c\u3066\u3001\u3042\u306a\u305f\u306e\u30b7\u30f3\u30b0\u30eb\u30da\u30fc\u30b8\u304c\u30b5\u30a4\u30c8\u306e\u30eb\u30fc\u30c8\u306b\u8ffd\u52a0\u3055\u308c\u305f\u3067\u3057\u3087\u3046\u3002\u3053\u306e\u540d\u524d\u3068\u30d1\u30fc\u30df\u30c3\u30b7\u30e7\u30f3\u306e\u5909\u66f4\u306f\u3067\u304d\u307e\u3059\u3057\u3001\u30da\u30fc\u30b8\u5c5e\u6027\u306e\u8ffd\u52a0\u3082\u3067\u304d\u307e\u3059\u304c\u3001\u4e00\u3064\u3060\u3051\u51fa\u6765\u306a\u3044\u306e\u306f\u3001\u3053\u308c\u306e\u30cf\u30f3\u30c9\u30eb\u306e\u5909\u66f4\u3067\u3057\u3066\u3001\u30cf\u30f3\u30c9\u30eb\u306f\u30d5\u30a1\u30a4\u30eb\u540d\u304b\u3089\u5c0e\u304b\u308c\u307e\u3059\u306e\u3067\u5909\u66f4\u3067\u304d\u307e\u305b\u3093\u3002<br \/>\n\uff14\u3000\u3053\u306e\u30b7\u30f3\u30b0\u30eb\u30da\u30fc\u30b8\u3092\u30d6\u30e9\u30a6\u30b6\u3067\u898b\u307e\u3057\u3087\u3046\u304b\u3002\u6b86\u3069\u5168\u90e8\u7a7a\u767d\u306e\u30da\u30fc\u30b8\u304c\u898b\u3048\u308b\u3068\u601d\u3044\u307e\u3059\u3002\u3053\u306e\u7a7a\u767d\u306ePHP\u30d5\u30a1\u30a4\u30eb\u3092\u4fee\u6b63\u3059\u308c\u3070\u3001\u305d\u306e\u5185\u5bb9\u304c\u3053\u306e\u30da\u30fc\u30b8\u3067\u898b\u3048\u308b\u306f\u305a\u3067\u3059\u3002<\/p>\n<p>Customizing a Single Page&#8217;s Appearance<br \/>\n\u666e\u901a\u306e\u696d\u52d9\u3067\u884c\u308f\u308c\u308b\u4e8b\u67c4\u306b\u3042\u308f\u305b\u308b\u3079\u304f\u3001\u30b7\u30f3\u30b0\u30eb\u30da\u30fc\u30b8\u3092\u5305\u307f\u8fbc\u3080\u3088\u3046\u306b\u30c6\u30fc\u30de\u306f\u51fa\u6765\u3066\u3044\u308b\u3093\u3067\u3059\u3002\u3064\u307e\u308a\u3001\u30b7\u30f3\u30b0\u30eb\u30da\u30fc\u30b8\u306e\u4e2d\u306b\u30d8\u30c3\u30c0\u30fc\u3068\u30d5\u30c3\u30bf\u30fc\u306e\u60c5\u5831\u3092\u5165\u308c\u306a\u304f\u3066\u6e08\u3080\u3088\u3046\u306a\u914d\u616e\u304c\u65e2\u306b\u306a\u3055\u308c\u3066\u304a\u308a\u307e\u3057\u3066\u3001\u305d\u308c\u304c\u4eca\u4f7f\u3063\u3066\u3044\u308b\u30c6\u30fc\u30de\u3067\u306e&#8221;view.php&#8221; template \u3067\u3059\u3002<br \/>\nconcrete\/themes\/default\/view.php\u3000\u304c\u305d\u308c\u306a\u3093\u3067\u3059\u304c\u3001\u3061\u3087\u3063\u3068\u898b\u3066\u307f\u307e\u3057\u3087\u3046\u304b\u3002<\/p>\n<p><code>&lt;?php print $innerContent?&gt;\u3000\u3068\u3044\u3046\u884c\u304c\u3042\u308b\u3068\u601d\u3044\u307e\u3059\u3002\u3053\u308c\u304c\u3053\u306e\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u3067\u30b7\u30f3\u30b0\u30eb\u30da\u30fc\u30b8\u306e\u4e2d\u8eab\u304c\u5165\u308c\u3089\u308c\u308b\u5834\u6240\u306b\u306a\u308a\u307e\u3059\u3002<\/code><\/p>\n<p>\u7279\u5b9a\u306e\u30c6\u30fc\u30de\u3067\u30b7\u30f3\u30b0\u30eb\u30da\u30fc\u30b8\u3092\u3082\u3063\u3068\u67d4\u8edf\u306b\u601d\u3044\u901a\u308a\u306b\u4f7f\u3044\u305f\u3044\u306a\u3089\u3001\u3053\u3053\u3092\u5909\u3048\u3089\u308c\u307e\u3059\u3002Want to change this? You can. If you need more flexible control over a single page within a particular theme, just include a file with the same name as your single page within the theme itself. <strong>That<\/strong> entirely file will be used as the single pages template, including the header, footer, etc&#8230; It can completely override the single page, too. (So, in our example above, once we have &#8220;my_profile&#8221; added as a single page, add &#8220;my_profile.php&#8221; to your active theme. This template will then be used instead of the single page.<\/p>\n<h2>Additional Notes<\/h2>\n<ol>\n<li>Single pages do not all need to live at the root. Let&#8217;s say you want to build out the following single pages, for an e-commerce system:<\/li>\n<\/ol>\n<p>http:\/\/www.yoursite.com\/index.php\/cart\/ http:\/\/www.yoursite.com\/index.php\/cart\/shipping\/ http:\/\/www.yoursite.com\/index.php\/cart\/billing\/ http:\/\/www.yoursite.com\/index.php\/cart\/checkout\/<\/p>\n<p>You&#8217;re going to need a single page for the cart view, the shipping view, the billing view, and the checkout view. Here&#8217;s how your filesystem would look:<\/p>\n<p>single_pages\/cart\/view.php<\/p>\n<p>single_pages\/cart\/shipping.php<\/p>\n<p>single_pages\/cart\/billing.php<\/p>\n<p>single_pages\/cart\/checkout.php<\/p>\n<p>Notice that the first item in our list, view.php, automatically maps to the &#8220;\/cart&#8221; view. If we only wanted the cart\/ view, and none of the views beneath it, we could&#8217;ve dispensed with the directory, and just created<\/p>\n<p>single_pages\/cart.php<\/p>\n<p>You can use single pages to extend existing concrete5 functionality, like the dashboard. For example, say you want to add another page into the concrete5 dashboard for some custom business forms. You want this form to be available at<\/p>\n<p>http:\/\/www.yoursite.com\/index.php\/dashboard\/my_business_forms\/<\/p>\n<p>Just add<\/p>\n<p>single_pages\/dashboard\/my_business_forms.php<\/p>\n<p>And add it through the single pages interface in the dashboard. The new page should show up immediately in the dashboard navigation.<\/p>\n<h2>Adding Interactivity<\/h2>\n<p>As mentioned, Single Pages are great for those parts of your site that solve custom problems, and will not need to be reused. This is typically because these pages offer some interactivity, whether its a search form, a lengthy multi-step business form, or forms that let you add\/edit certain objects.<\/p>\n<p>The keyword here is &#8220;form.&#8221; Single Pages are made for solving complex, interactive problems on your site. Once we have a single page in place, we&#8217;ll inevitably need to process some form that&#8217;s contained on it. That&#8217;s why we have controllers.<\/p>\n<p>Read on for information on controllers.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u4ee5\u524d\u306b\u3055\u304f\u3089\u306b\u5165\u308c\u3066\u3044\u305f\uff08\u3055\u304f\u3089\u306e\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306e\u30a4\u30f3\u30dd\u30fc\u30c8\u53ef\u80fd\u5bb9\u91cf\u4e0d\u8db3\u3067\u56f0\u3089\u3055\u308c &hellip; <a href=\"https:\/\/moo-nog.ssl-lolipop.jp\/blog\/2009\/07\/15\/c5test\/\">\u7d9a\u304d\u3092\u8aad\u3080 <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[7,2],"tags":[],"class_list":["post-4162","post","type-post","status-publish","format-standard","hentry","category-7","category-2"],"_links":{"self":[{"href":"https:\/\/moo-nog.ssl-lolipop.jp\/blog\/wp-json\/wp\/v2\/posts\/4162","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/moo-nog.ssl-lolipop.jp\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/moo-nog.ssl-lolipop.jp\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/moo-nog.ssl-lolipop.jp\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/moo-nog.ssl-lolipop.jp\/blog\/wp-json\/wp\/v2\/comments?post=4162"}],"version-history":[{"count":0,"href":"https:\/\/moo-nog.ssl-lolipop.jp\/blog\/wp-json\/wp\/v2\/posts\/4162\/revisions"}],"wp:attachment":[{"href":"https:\/\/moo-nog.ssl-lolipop.jp\/blog\/wp-json\/wp\/v2\/media?parent=4162"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/moo-nog.ssl-lolipop.jp\/blog\/wp-json\/wp\/v2\/categories?post=4162"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/moo-nog.ssl-lolipop.jp\/blog\/wp-json\/wp\/v2\/tags?post=4162"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}