カスタムローカル設定
ezpublish:
# Locale conversion map between eZ Publish format to POSIX.
# Check locale.yml in EzPublishCoreBundle to see natively supported locales.
locale_conversion:
eng-DE: en_DE
レガシーフォールバックの基本レイアウト
=> Second parameter is to define where to inject data
=> Third parameter is to define which pagelayout should use the system for module rendering
parameters:
ezpublish_legacy.my_siteaccess.view_default_layout: AcmeDemoBundle::my_layout.html.twig
ezpublish.content_view.content_block_name: content
ezpublish_legacy.my_siteaccess.module_default_layout: AcmeDemoBundle::layout_legacy.html.twig
シングルリポジトリーでのマルチサイト
ezpublish:
system:
my_siteaccess:
content:
tree_root:
# Root locationId. Default is top locationId
location_id: 123
# Every URL aliases starting with those prefixes will be considered
# being outside of the subtree starting at root_location.
# Default value is an empty array.
# Prefixes are not case sensitive.
excluded_uri_prefixes:
- media
- users
サイトアクセスマッチング: matchers
URIElement
ezpublish:
siteaccess:
match:
URIElement: 1
URIText
ezpublish:
siteaccess:
match:
URIText:
prefix: foo
suffix: bar
HostElement
ezpublish:
siteaccess:
match:
HostText:
prefix: www.
suffix: .com
Map\Host
ezpublish:
siteaccess:
match:
Map\Host:
www.foo.com: foo_front
adm.foo.com: foo_admin
www.stuff.fr: bar_front
adm.stuff.fr: bar_admin
Map\URI
ezpublish:
siteaccess:
match:
Map\URI:
something: ezdemo_site
foobar: ezdemo_site_admin
Map\Port
ezpublish:
siteaccess:
match:
Match\Port:
80: foo
8080: bar
Regex\Host
ezpublish:
siteaccess:
match:
Regex\Host:
regex: "^(\\w+_sa)$"
# デフォルトは 1
itemNumber: 1
Regex\URI
ezpublish:
siteaccess:
match:
Regex\URI:
regex: "^/foo(\\w+)bar"
# デフォルトは 1
itemNumber: 1