{"id":2727,"date":"2012-10-05T13:33:52","date_gmt":"2012-10-05T04:33:52","guid":{"rendered":"http:\/\/blog.cgfm.jp\/garyu\/?p=2727"},"modified":"2012-10-05T17:43:20","modified_gmt":"2012-10-05T08:43:20","slug":"basercms%e3%81%a7%e5%9b%ba%e5%ae%9a%e3%83%9a%e3%83%bc%e3%82%b8%e3%81%ae%e7%89%b9%e5%ae%9a%e3%81%ae%e8%a6%aa%e3%82%ab%e3%83%86%e3%82%b4%e3%83%aa%e3%81%8b%e3%82%89%e3%83%84%e3%83%aa%e3%83%bc%e6%a7%8b","status":"publish","type":"post","link":"https:\/\/blog.cgfm.jp\/garyu\/archives\/2727","title":{"rendered":"baserCMS\u3067\u56fa\u5b9a\u30da\u30fc\u30b8\u306e\u7279\u5b9a\u306e\u89aa\u30ab\u30c6\u30b4\u30ea\u304b\u3089\u30c4\u30ea\u30fc\u69cb\u9020\u3067\u914d\u4e0b\u306e\u30da\u30fc\u30b8\u4e00\u89a7\u3092\u30b5\u30a4\u30c9\u30d0\u30fc\u306b\u8868\u793a\u3055\u305b\u308b\u65b9\u6cd5"},"content":{"rendered":"<p>\u3044\u308d\u3044\u308d\u6559\u3048\u3066\u3082\u3089\u3063\u305f\u308a\u3057\u305f\u65b9\u6cd5\u306e\u30e1\u30e2\u3067\u3059\u3002<\/p>\n<p>baserCMS\u306e\u6a19\u6e96\u30a6\u30a3\u30b8\u30a7\u30c3\u30c8\u306e\u30ed\u30fc\u30ab\u30eb\u30ca\u30d3\u30b2\u30fc\u30b7\u30e7\u30f3\u3063\u3066\u4fbf\u5229\u306a\u3093\u3067\u3059\u304c\u3001<strong>\u540c\u3058\u30ab\u30c6\u30b4\u30ea\u306e\u30da\u30fc\u30b8\u4e00\u89a7\u3057\u304b\u51fa\u305b\u306a\u3044<\/strong>\u6b20\u70b9\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<p>\u56fa\u5b9a\u30da\u30fc\u30b8\u3067\u30c4\u30ea\u30fc\u69cb\u9020\u3067\u30da\u30fc\u30b8\u7ba1\u7406\u3059\u308b\u6642\u306f\u3001\u89aa\u30ab\u30c6\u30b4\u30ea\u304b\u3089\u5168\u90e8\u8868\u793a\u3055\u305b\u305f\u3044\u4e8b\u3082\u591a\u3044\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n<p>\u305d\u3093\u306a\u6642\u306f\u30a6\u30a3\u30b8\u30a7\u30c3\u30c8\u3067\u306f\u306a\u304f\u3066\u3001 $bcBaser-&gt;sitemap()\u3092\u4f7f\u3063\u3066\u51fa\u3057\u3061\u3083\u3048\u3001\u3063\u3066\u5f37\u5f15\u306a\u65b9\u6cd5\u3092\u7d39\u4ecb\u3057\u307e\u3059\u3002<!--more--><\/p>\n<h2>sitemap()\u95a2\u6570\u306b\u3064\u3044\u3066<\/h2>\n<p><a href=\"http:\/\/basercms.net\/reference_2\/archives\/59\">[sitemap] \u30b5\u30a4\u30c8\u30de\u30c3\u30d7\u3092\u51fa\u529b\u3059\u308b http:\/\/basercms.net\/reference_2\/archives\/59<\/a><\/p>\n<blockquote><p>\n<strong>$bcBaser-&gt;sitemap([<span style=\"color: #ff0000;\">$pageCategoryId<\/span>], [$recursive])<\/strong><\/p>\n<table>\n<tbody>\n<tr>\n<th scope=\"col\">\u5f15\u6570\u540d<\/th>\n<th scope=\"col\">\u8aac\u660e<\/th>\n<th scope=\"col\">\u521d\u671f\u5024<\/th>\n<\/tr>\n<tr>\n<td><span style=\"color: #ff0000;\">$pageCategoryId<\/span><\/td>\n<td><strong>\u30da\u30fc\u30b8\u30ab\u30c6\u30b4\u30ea\u3092\u6307\u5b9a\u3057\u3066\u7d5e\u308a\u8fbc\u3080\u5834\u5408\u306b\u30da\u30fc\u30b8\u30ab\u30c6\u30b4\u30eaID\u3092\u6307\u5b9a\u3002<\/strong><\/td>\n<td>null<\/td>\n<\/tr>\n<tr>\n<td>$recursive<\/td>\n<td>\u30da\u30fc\u30b8\u30ab\u30c6\u30b4\u30ea\u306e\u968e\u5c64\u3092\u6307\u5b9a\u3002<\/td>\n<td>null<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/blockquote>\n<p>\u5f15\u6570\u306b<strong>\u30da\u30fc\u30b8\u30ab\u30c6\u30b4\u30eaID<\/strong>\u3092\u6295\u3052\u3061\u3083\u3048\u3070\u3001\u305d\u308c\u4ee5\u4e0b\u306e\u30da\u30fc\u30b8\u30ea\u30b9\u30c8\u304c\u304a\u624b\u8efd\u306b\u53d6\u5f97\u3067\u304d\u308b\u308f\u3051\u3067\u3059\u3002<\/p>\n<h2>\u56fa\u5b9a\u30da\u30fc\u30b8\u306e\u69cb\u6210\u4f8b<\/h2>\n<p>[\uff0a\uff0a\uff0a]\u304c\u30ab\u30c6\u30b4\u30ea\u3001 ({name}, {id} )\u304c\u30ab\u30c6\u30b4\u30ea\u30cd\u30fc\u30e0\u3068\u30ab\u30c6\u30b4\u30eaID<\/p>\n<ul>\n<li>[\u672c\u30fb\u6f2b\u753b\u30fb\u96d1\u8a8c] ( book, 1 )<\/li>\n<li>[DVD\u30fb\u30df\u30e5\u30fc\u30b8\u30c3\u30af] ( dvd-music, 2 )\n<ul>\n<li>\u00a0[DVD] ( dvd )\n<ul>\n<li>[\u56fd\u5185] ( ja )\n<ul>\n<li>\u6620\u753b\u30da\u30fc\u30b8<\/li>\n<li>\u30c9\u30e9\u30de\u30da\u30fc\u30b8<\/li>\n<li>\u30a2\u30cb\u30e1\u30da\u30fc\u30b8\u3000\u2190\u203b\u3053\u3053\u306b\u30a2\u30af\u30bb\u30b9<\/li>\n<\/ul>\n<\/li>\n<li>\u00a0[\u6d77\u5916] ( overseas\u00a0)<\/li>\n<\/ul>\n<\/li>\n<li>\u00a0[\u30df\u30e5\u30fc\u30b8\u30c3\u30af] ( music )<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<p>\u300c[DVD\u30fb\u30df\u30e5\u30fc\u30b8\u30c3\u30af]\uff1e\u00a0[DVD]\uff1e[\u56fd\u5185]\uff1e\u30a2\u30cb\u30e1\u30da\u30fc\u30b8\u300d \u306b\u30a2\u30af\u30bb\u30b9\u3057\u3066\u3001<br \/>\n<strong>\u4e00\u756a\u4e0a\u306e\u89aa\u30ab\u30c6\u30b4\u30ea[DVD\u30fb\u30df\u30e5\u30fc\u30b8\u30c3\u30af]\u914d\u4e0b\u306e\u30da\u30fc\u30b8\u4e00\u89a7<\/strong>\u3092\u51fa\u3059\u3088\u3046\u306b\u3057\u307e\u3059\u3002<\/p>\n<h2>\u30bd\u30fc\u30b9\u30b3\u30fc\u30c9<\/h2>\n<p>elements\/side.php \u306a\u3069\u306b\u4ee5\u4e0b\u306e\u30bd\u30fc\u30b9\u3092\u8a18\u8ff0<\/p>\n<p>[php]<\/p>\n<div id=\"side\">\n<?php\nif (!empty($widgetArea)){\n\t$PageCategoryID = false;\n\tif(!empty($bcPage) &#038;&#038; is_object($bcPage) &#038;&#038; isset($bcPage->data[&#8216;PageCategory&#8217;][&#8216;id&#8217;])){<br \/>\n\t\t$PageCategoryID = $bcPage->data[&#8216;PageCategory&#8217;][&#8216;id&#8217;]; \/\/\u30da\u30fc\u30b8\u306e\u30ab\u30c6\u30b4\u30eaID\u3092\u53d6\u5f97<br \/>\n\t}<\/p>\n<p>\t\/\/\u5b50\u30ab\u30c6\u30b4\u30ea\u4ee5\u4e0b\u306e\u56fa\u5b9a\u30da\u30fc\u30b8\u306b\u30a2\u30af\u30bb\u30b9\u3057\u305f\u6642\u3001\u89aa\u30ab\u30c6\u30b4\u30eaID\u3092\u30a2\u30af\u30bb\u30b9\u3057\u3066\u308bURL\u304b\u3089\u5206\u5c90<br \/>\n\t$uri = $this->here;<br \/>\n\tif (strpos($uri, &#8216;index.php&#8217;) == 1) { \/\/\u5bfe\u7b56\uff1a\u30b9\u30de\u30fc\u30c8URL\u304cOFF\u6642<br \/>\n\t\t$uri = substr($uri, strlen(&#8220;index.php&#8221;) + 1);<br \/>\n\t}<br \/>\n\t$Path = split(&#8220;\/&#8221;, $uri); \/\/ &#8220;\/&#8221;\u3067\u5206\u5272\u3057\u3066\u914d\u5217\u306b\u683c\u7d0d<br \/>\n\t$p = $Path[1]; \/\/\u89aa\u30ab\u30c6\u30b4\u30ea\u540d\u3092\u683c\u7d0d<\/p>\n<p>\t\/\/\u89aa\u30ab\u30c6\u30b4\u30ea\u540d\u304b\u3089\u5206\u5c90\u51e6\u7406\uff08\u6c7a\u3081\u6253\u3061\uff09<br \/>\n\tif ($p === &#8216;book&#8217;)<br \/>\n\t\t$PageCategoryID = 1; \/\/[\u672c\u30fb\u6f2b\u753b\u30fb\u96d1\u8a8c]<br \/>\n\telseif ($p=== &#8216;dvd-music&#8217;)<br \/>\n\t\t$PageCategoryID = 2; \/\/[DVD\u30fb\u30df\u30e5\u30fc\u30b8\u30c3\u30af]<\/p>\n<p>\tif ($PageCategoryID) {<br \/>\n\t?><\/p>\n<div class=\"widget-area widget-area-1\">\n<div class=\"widget widget-local-navi\">\n\t\t\t\t<?php $bcBaser->sitemap($PageCategoryID); \/\/\u30b5\u30a4\u30c8\u30de\u30c3\u30d7\u306e\u30ea\u30b9\u30c8\u8868\u793a ?>\n\t\t\t<\/div>\n<\/p><\/div>\n<p>\t<?php\n\t} else {\n\t\t\/\/\u901a\u5e38\u306e\u30a6\u30a4\u30b8\u30a7\u30c3\u30c8\u8868\u793a\n\t\t$bcBaser->element(&#8216;widget_area&#8217;, array(&#8216;no&#8217; => $widgetArea));<br \/>\n\t}<br \/>\n} ?>\n<\/div>\n<p>[\/php]<\/p>\n<p>\u3053\u3093\u306a\u611f\u3058\u306b\u51fa\u529b\u3055\u308c\u307e\u3059\u3002<\/p>\n<ul>\n<li>[DVD\u30fb\u30df\u30e5\u30fc\u30b8\u30c3\u30af]<\/li>\n<li>[DVD\u30fb\u30df\u30e5\u30fc\u30b8\u30c3\u30af]\n<ul>\n<li>\u00a0[DVD] ( dvd )\n<ul>\n<li>[\u56fd\u5185] ( ja )\n<ul>\n<li>\u6620\u753b\u30da\u30fc\u30b8<\/li>\n<li>\u30c9\u30e9\u30de\u30da\u30fc\u30b8<\/li>\n<li>\u30a2\u30cb\u30e1\u30da\u30fc\u30b8<\/li>\n<\/ul>\n<\/li>\n<li>\u00a0[\u6d77\u5916]<\/li>\n<\/ul>\n<\/li>\n<li>\u00a0[\u30df\u30e5\u30fc\u30b8\u30c3\u30af]<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<p>\u5148\u982d\u306b\u30ab\u30c6\u30b4\u30ea\u540d\u304c\u91cd\u8907\u3057\u3066\u51fa\u529b\u3055\u308c\u308b\u306e\u306fsitemap()\u306e\u4ed5\u69d8\u306e\u3088\u3046\u3067\u3059\u3002<br \/>\nli\u30bf\u30b0\u306eclass\u306b &#8220;sitemap-category li-level-1&#8221;, &#8220;sitemap-page li-level-1&#8221; \u3068\u30ab\u30c6\u30b4\u30ea\u304b\u30da\u30fc\u30b8\u3001\u6df1\u3055\u304c\u4ed8\u4e0e\u3055\u308c\u3066\u308b\u306e\u3067CSS\u3067\u8abf\u6574\u3059\u308c\u3070\u3044\u3044\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n<p>\u8ffd\u8a18\uff09<br \/>\n<a href=\"http:\/\/www.lancard.com\/blog\/2012\/06\/26\/basercms%E3%81%AE%E3%82%B5%E3%82%A4%E3%83%88%E3%83%9E%E3%83%83%E3%83%97%E3%82%92%E3%82%AB%E3%82%B9%E3%82%BF%E3%83%9E%E3%82%A4%E3%82%BA\/\">baserCMS\u306e\u30b5\u30a4\u30c8\u30de\u30c3\u30d7\u3092\u30ab\u30b9\u30bf\u30de\u30a4\u30ba \u00ab LANCARD.LAB\uff5c\u30e9\u30f3\u30ab\u30fc\u30c9\u30b3\u30e0\u306e\u30b9\u30bf\u30c3\u30d5\u30d6\u30ed\u30b0<\/a> \u3067\u3001\u30b5\u30a4\u30c8\u30de\u30c3\u30d7\u306e\u30da\u30fc\u30b8\u540d\u3068\u30ab\u30c6\u30b4\u30ea\u540d\u304c\u91cd\u8907\u3059\u308b\u73fe\u8c61\u306e\u5bfe\u5fdc\u7b56\u304c\u3042\u308a\u307e\u3057\u305f\uff01<br \/>\n\u3057\u304b\u3082\u3001\u30b5\u30a4\u30c8\u30de\u30c3\u30d7\u306e\u9014\u4e2d\u306b\u30d6\u30ed\u30b0\u3084\u30e1\u30fc\u30eb\u30d5\u30a9\u30fc\u30e0\u3092\u633f\u5165\u3067\u304d\u308b\u6a5f\u80fd\u3082\u3042\u308b\u306e\u3067\u30aa\u30b9\u30b9\u30e1\u3067\u3059\uff01<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u3044\u308d\u3044\u308d\u6559\u3048\u3066\u3082\u3089\u3063\u305f\u308a\u3057\u305f\u65b9\u6cd5\u306e\u30e1\u30e2\u3067\u3059\u3002 baserCMS\u306e\u6a19\u6e96\u30a6\u30a3\u30b8\u30a7\u30c3\u30c8\u306e\u30ed\u30fc\u30ab\u30eb\u30ca\u30d3\u30b2\u30fc\u30b7\u30e7\u30f3\u3063\u3066\u4fbf\u5229\u306a\u3093\u3067\u3059\u304c\u3001\u540c\u3058\u30ab\u30c6\u30b4\u30ea\u306e\u30da\u30fc\u30b8\u4e00\u89a7\u3057\u304b\u51fa\u305b\u306a\u3044\u6b20\u70b9\u304c\u3042\u308a\u307e\u3059\u3002 \u56fa\u5b9a\u30da\u30fc\u30b8\u3067\u30c4\u30ea\u30fc\u69cb\u9020\u3067\u30da\u30fc\u30b8\u7ba1\u7406\u3059\u308b\u6642\u306f [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"swell_btn_cv_data":"","footnotes":""},"categories":[311],"tags":[],"class_list":["post-2727","post","type-post","status-publish","format-standard","hentry","category-basercms"],"_links":{"self":[{"href":"https:\/\/blog.cgfm.jp\/garyu\/wp-json\/wp\/v2\/posts\/2727","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.cgfm.jp\/garyu\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.cgfm.jp\/garyu\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.cgfm.jp\/garyu\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.cgfm.jp\/garyu\/wp-json\/wp\/v2\/comments?post=2727"}],"version-history":[{"count":9,"href":"https:\/\/blog.cgfm.jp\/garyu\/wp-json\/wp\/v2\/posts\/2727\/revisions"}],"predecessor-version":[{"id":2736,"href":"https:\/\/blog.cgfm.jp\/garyu\/wp-json\/wp\/v2\/posts\/2727\/revisions\/2736"}],"wp:attachment":[{"href":"https:\/\/blog.cgfm.jp\/garyu\/wp-json\/wp\/v2\/media?parent=2727"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.cgfm.jp\/garyu\/wp-json\/wp\/v2\/categories?post=2727"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.cgfm.jp\/garyu\/wp-json\/wp\/v2\/tags?post=2727"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}