ver8.2.1 多言語にて追加したロケール側のパンくずにホームが表示されない

2017年8月21日 at 18:44

現在、concrete5の使い方を練習しています。
ver 8.2.1 にて、サンプルデータを入れてインストールを行い、多言語でロケールを追加し、地域ツリーを複製、言語ツリーを再スキャンをしました。

問題点

* 追加したロケールのパンくず表示にて、ホームが表示されない。

* 管理画面のサイトマップ->フラットビューにて、追加したロケールではHomeしか表示されません。フルサイトマップでは問題ありません。


# concrete5 Version
Core Version - 8.2.1
Version Installed - 8.2.1
Database Version - 20170802000000

# concrete5 Packages
None

# concrete5 Overrides
themes/my_theme/blank.php, themes/my_theme/default.php, themes/my_theme/full.php, themes/my_theme/left_sidebar.php, themes/my_theme/page_forbidden.php, themes/my_theme/page_not_found.php, themes/my_theme/page_theme.php, themes/my_theme/right_sidebar.php, themes/my_theme/thumbnail.png, themes/my_theme/view.php, themes/my_theme/css/bootstrap-modified.css, themes/my_theme/css/main.less, themes/my_theme/css/styles.xml, themes/my_theme/css/build/body.less, themes/my_theme/css/build/breadcrumb.less, themes/my_theme/css/build/buttons.less, themes/my_theme/css/build/captcha.less, themes/my_theme/css/build/content.less, themes/my_theme/css/build/errors.less, themes/my_theme/css/build/footer.less, themes/my_theme/css/build/header.less, themes/my_theme/css/build/miscellaneous-styles.less, themes/my_theme/css/build/mixins.less, themes/my_theme/css/build/pagination.less, themes/my_theme/css/build/reset.less, themes/my_theme/css/build/search.less, themes/my_theme/css/build/add-ons/calendar.less, themes/my_theme/css/build/add-ons, themes/my_theme/css/build/blocks/date-navigation.less, themes/my_theme/css/build/blocks/faq.less, themes/my_theme/css/build/blocks/feature-template-hover-description.less, themes/my_theme/css/build/blocks/feature.less, themes/my_theme/css/build/blocks/image-slider.less, themes/my_theme/css/build/blocks/image.less, themes/my_theme/css/build/blocks/next-previous.less, themes/my_theme/css/build/blocks/page-attribute-display.less, themes/my_theme/css/build/blocks/page-list-option-buttons.less, themes/my_theme/css/build/blocks/page-list-template-thumbnail-grid.less, themes/my_theme/css/build/blocks/page-list.less, themes/my_theme/css/build/blocks/page-title-option-byline.less, themes/my_theme/css/build/blocks/page-title.less, themes/my_theme/css/build/blocks/tags.less, themes/my_theme/css/build/blocks/testimonial.less, themes/my_theme/css/build/blocks/topic-list.less, themes/my_theme/css/build/blocks, themes/my_theme/css/build/bootstrap-3.2.0/alerts.less, themes/my_theme/css/build/bootstrap-3.2.0/badges.less, themes/my_theme/css/build/bootstrap-3.2.0/bootstrap.less, themes/my_theme/css/build/bootstrap-3.2.0/breadcrumbs.less, themes/my_theme/css/build/bootstrap-3.2.0/button-groups.less, themes/my_theme/css/build/bootstrap-3.2.0/buttons.less, themes/my_theme/css/build/bootstrap-3.2.0/carousel.less, themes/my_theme/css/build/bootstrap-3.2.0/close.less, themes/my_theme/css/build/bootstrap-3.2.0/code.less, themes/my_theme/css/build/bootstrap-3.2.0/component-animations.less, themes/my_theme/css/build/bootstrap-3.2.0/dropdowns.less, themes/my_theme/css/build/bootstrap-3.2.0/forms.less, themes/my_theme/css/build/bootstrap-3.2.0/glyphicons.less, themes/my_theme/css/build/bootstrap-3.2.0/grid.less, themes/my_theme/css/build/bootstrap-3.2.0/input-groups.less, themes/my_theme/css/build/bootstrap-3.2.0/jumbotron.less, themes/my_theme/css/build/bootstrap-3.2.0/labels.less, themes/my_theme/css/build/bootstrap-3.2.0/list-group.less, themes/my_theme/css/build/bootstrap-3.2.0/media.less, themes/my_theme/css/build/bootstrap-3.2.0/mixins.less, themes/my_theme/css/build/bootstrap-3.2.0/modals.less, themes/my_theme/css/build/bootstrap-3.2.0/navbar.less, themes/my_theme/css/build/bootstrap-3.2.0/navs.less, themes/my_theme/css/build/bootstrap-3.2.0/normalize.less, themes/my_theme/css/build/bootstrap-3.2.0/pager.less, themes/my_theme/css/build/bootstrap-3.2.0/pagination.less, themes/my_theme/css/build/bootstrap-3.2.0/panels.less, themes/my_theme/css/build/bootstrap-3.2.0/popovers.less, themes/my_theme/css/build/bootstrap-3.2.0/print.less, themes/my_theme/css/build/bootstrap-3.2.0/progress-bars.less, themes/my_theme/css/build/bootstrap-3.2.0/responsive-embed.less, themes/my_theme/css/build/bootstrap-3.2.0/responsive-utilities.less, themes/my_theme/css/build/bootstrap-3.2.0/scaffolding.less, themes/my_theme/css/build/bootstrap-3.2.0/tables.less, themes/my_theme/css/build/bootstrap-3.2.0/theme.less, themes/my_theme/css/build/bootstrap-3.2.0/thumbnails.less, themes/my_theme/css/build/bootstrap-3.2.0/tooltip.less, themes/my_theme/css/build/bootstrap-3.2.0/type.less, themes/my_theme/css/build/bootstrap-3.2.0/utilities.less, themes/my_theme/css/build/bootstrap-3.2.0/variables.less, themes/my_theme/css/build/bootstrap-3.2.0/wells.less, themes/my_theme/css/build/bootstrap-3.2.0/mixins/alerts.less, themes/my_theme/css/build/bootstrap-3.2.0/mixins/background-variant.less, themes/my_theme/css/build/bootstrap-3.2.0/mixins/border-radius.less, themes/my_theme/css/build/bootstrap-3.2.0/mixins/buttons.less, themes/my_theme/css/build/bootstrap-3.2.0/mixins/center-block.less, themes/my_theme/css/build/bootstrap-3.2.0/mixins/clearfix.less, themes/my_theme/css/build/bootstrap-3.2.0/mixins/forms.less, themes/my_theme/css/build/bootstrap-3.2.0/mixins/gradients.less, themes/my_theme/css/build/bootstrap-3.2.0/mixins/grid-framework.less, themes/my_theme/css/build/bootstrap-3.2.0/mixins/grid.less, themes/my_theme/css/build/bootstrap-3.2.0/mixins/hide-text.less, themes/my_theme/css/build/bootstrap-3.2.0/mixins/image.less, themes/my_theme/css/build/bootstrap-3.2.0/mixins/labels.less, themes/my_theme/css/build/bootstrap-3.2.0/mixins/list-group.less, themes/my_theme/css/build/bootstrap-3.2.0/mixins/nav-divider.less, themes/my_theme/css/build/bootstrap-3.2.0/mixins/nav-vertical-align.less, themes/my_theme/css/build/bootstrap-3.2.0/mixins/opacity.less, themes/my_theme/css/build/bootstrap-3.2.0/mixins/pagination.less, themes/my_theme/css/build/bootstrap-3.2.0/mixins/panels.less, themes/my_theme/css/build/bootstrap-3.2.0/mixins/progress-bar.less, themes/my_theme/css/build/bootstrap-3.2.0/mixins/reset-filter.less, themes/my_theme/css/build/bootstrap-3.2.0/mixins/resize.less, themes/my_theme/css/build/bootstrap-3.2.0/mixins/responsive-visibility.less, themes/my_theme/css/build/bootstrap-3.2.0/mixins/size.less, themes/my_theme/css/build/bootstrap-3.2.0/mixins/tab-focus.less, themes/my_theme/css/build/bootstrap-3.2.0/mixins/table-row.less, themes/my_theme/css/build/bootstrap-3.2.0/mixins/text-emphasis.less, themes/my_theme/css/build/bootstrap-3.2.0/mixins/text-overflow.less, themes/my_theme/css/build/bootstrap-3.2.0/mixins/vendor-prefixes.less, themes/my_theme/css/build/bootstrap-3.2.0/mixins, themes/my_theme/css/build/bootstrap-3.2.0, themes/my_theme/css/build/custom-design-classes/area-content-accent.less, themes/my_theme/css/build/custom-design-classes/block-sidebar-padded.less, themes/my_theme/css/build/custom-design-classes/block-sidebar-wrapped.less, themes/my_theme/css/build/custom-design-classes/blog-entry-list.less, themes/my_theme/css/build/custom-design-classes/recent-blog-entry.less, themes/my_theme/css/build/custom-design-classes/testimonial-bio.less, themes/my_theme/css/build/custom-design-classes, themes/my_theme/css/build/fonts/blue-sky.less, themes/my_theme/css/build/fonts/defaults.less, themes/my_theme/css/build/fonts/night-road.less, themes/my_theme/css/build/fonts/royal.less, themes/my_theme/css/build/fonts, themes/my_theme/css/build/mobile/navigation.less, themes/my_theme/css/build/mobile, themes/my_theme/css/build, themes/my_theme/css/presets/blue-sky.less, themes/my_theme/css/presets/defaults.less, themes/my_theme/css/presets/night-road.less, themes/my_theme/css/presets/royal.less, themes/my_theme/css/presets, themes/my_theme/css, themes/my_theme/elements/footer.php, themes/my_theme/elements/footer_bottom.php, themes/my_theme/elements/header.php, themes/my_theme/elements/header_top.php, themes/my_theme/elements, themes/my_theme/images/background-slider-blue-sky.png, themes/my_theme/images/background-slider-default.png, themes/my_theme/images/background-slider-night-road.png, themes/my_theme/images/background-slider-royal.png, themes/my_theme/images/background.png, themes/my_theme/images, themes/my_theme

# concrete5 Cache Settings
Block Cache - Off
Overrides Cache - Off
Full Page Caching - Off
Full Page Cache Lifetime - Every 6 hours (default setting).

# Server Software
Apache/2.4.6 (CentOS) PHP/7.1.8

# Server API
apache2handler

# PHP Version
7.1.8

# PHP Extensions
apache2handler, bcmath, bz2, calendar, Core, ctype, curl, date, dom, exif, fileinfo, filter, ftp, gd, gettext, gmp, hash, iconv, intl, json, libxml, mbstring, mcrypt, mysqli, mysqlnd, openssl, pcre, PDO, pdo_mysql, pdo_sqlite, Phar, posix, Reflection, session, shmop, SimpleXML, soap, sockets, SPL, sqlite3, standard, sysvmsg, sysvsem, sysvshm, tidy, tokenizer, wddx, xdebug, xml, xmlreader, xmlwriter, xsl, Zend OPcache, zip, zlib

# PHP Settings
max_execution_time - 30
log_errors_max_len - 1024
max_file_uploads - 20
max_input_nesting_level - 64
max_input_time - 60
max_input_vars - 1000
memory_limit - 512M
post_max_size - 8M
sql.safe_mode - Off
upload_max_filesize - 2M
mysqli.max_links - Unlimited
mysqli.max_persistent - Unlimited
pcre.backtrack_limit - 1000000
pcre.recursion_limit - 100000
session.cache_limiter - no value
session.gc_maxlifetime - 7200
soap.wsdl_cache_limit - 5
xdebug.max_nesting_level - 256
xdebug.max_stack_frames - -1
xdebug.var_display_max_children - 128
xdebug.var_display_max_data - 512
xdebug.var_display_max_depth - 3
opcache.max_accelerated_files - 4000
opcache.max_file_size - 0
opcache.max_wasted_percentage - 5

タグ:

Re: ver8.2.1 多言語にて追加したロケール側のパンくずにホームが表示されない

2017年9月4日 at 9:38
追記です。
以下の「concrete5 多言語サイトで使えるパンくず用オートナビカスタムテンプレートサンプル」を参考にしましたが、Ver8.2.1ではbreacrumb.phpが呼び出されていないように思います。
出力されているhtmlソース内容がbreacrumb.phpとは違っています。

http://qiita.com/katzueno/items/e9d70f0151acde9fa426

現在は、以下のプラグインをカスタマイズして使っています。

* プラグイン「Breadcrumb Trail Page Links」
* homeがベース(インストールした)言語になるので言語判別のカスタマイズをしています。
• (スマホでもパンくずが表示されていました。私の勘違いです。)

packages/sb_breadcrumb_trail/blocks/sb_breadcrumb_trail/view.php
を以下にコピー
application/blocks/sb_breadcrumb_trail/view.php

```
<?php
use Concrete\Core\Multilingual\Page\Section\Section;

defined('C5_EXECUTE') or die("Access Denied.");?>

<?php $c = Page::getCurrentPage();
$multilingualSection = Section::getBySectionOfSite($c);
if ($multilingualSection) {
if ($multilingualSection->getLocale() === 'en_US'){
$homePageLink = '英語のURL';
} else {
$homePageLink = '日本語のURL';
}
} ?>

<div class="breadcrumb-trail"><a href="<?php echo $homePageLink;?>"><i class="fa fa-home"></i></a>

<?php
// 以下略
?>
```