Russian TYPO3 community

Russian TYPO3 community (http://forum.typo3.ru/index.php)
-   Общие вопросы (http://forum.typo3.ru/forumdisplay.php?f=12)
-   -   TYPO3 v9 LTS (http://forum.typo3.ru/showthread.php?t=12443)

Николай Сипко 08.10.2018 17:20

TYPO3 v9 LTS
 
TYPO3 v9 LTS
Release date: 2 October 2018
Release type: LTS release (Long Term Release)
Development time: 18 months

Realurl больше не нужен, в редактировании страницы теперь URL Segment

На картинках он есть

Поставил TYPO3 v9.5 LTS на локальной машине

В редактировании страницы его нет

Подскажите, пожалуйста, почему его нет?

Николай Сипко 09.10.2018 13:41

https://forge.typo3.org/attachments/...ew.english.pdf

=======

Page-based URL Handling
Speaking URLs "out of the box"

URL Segment

- New field "URL Segment" has been added to page properties
- All links generated in the backend and frontend use this field, if set
- Languages are taken into account automatically
- No need for third-party extensions to generate "speaking URLs"

New TCA Field Type slug

- New TCA field type slug has been added
- Define parts of a URL path to generate and resolve URLs
’type’ => ’slug’,
’config’ => [
’generatorOptions’ => [
’fields’ => [’title’, ’nav_title’],
’fieldSeparator’ => ’/’,
’prefixParentPageSlug’ => true
]
’fallbackCharacter’ => ’-’,
’eval’ => ’uniqueInSite’
]

Routing Enhancers and Aspects

- Routes can be extended by "placeholders" to create URL paths such as:
/path-to/my-page/products/{product-name}
- This is done by "Enhancers" and "Aspects"
-TYPO3 v9 LTS supports the following enhancers out of the box:
- Simple Enhancer (enhancer type "Simple")
- Plugin Enhancer (enhancer type "Plugin")
- Extbase Plugin Enhancer (enhancer type "Extbase")
- Configuration in file config.yml (no UI yet)
- Custom enhancers can be registered in ext_localconf.php:
$GLOBALS[’TYPO3_CONF_VARS’][’SYS’][’routing’][’CustomPlugin’] =
\MyVendor\MyPackage\Routing\CustomEnhancer::class;

Page Type Enhancer

- The PageTypeEnhancer lets you configure pages by type, e.g. ones
with the suffix .html
- The suffix gets added at the very end of a URL by using the
StaticValueMapper
- Configuration example:
routeEnhancers:
PageType:
type: PageType default: ’’
map:
’.html’: 1
’menu.json’: 13

=======

Обработка URL-адресов на основе страниц
Говорящие URL-адреса «из коробки»

Сегмент URL

- В свойства страницы добавлено новое поле «URL-сегмент»
- Все ссылки, созданные в бэкэнд и интерфейсе, используют это поле, если установлено
- Языки учитываются автоматически
- Нет необходимости в сторонних расширениях генерировать «говорящие URL-адреса»

Новый пул типа TCA

- Добавлен новый пул типа TCA.
- Определить части URL-адреса для создания и устранения URL-адресов.
'Type' => 'slug',
'Config' => [
'GeneratorOptions' => [
'Fields' => ['title', 'nav_title'],
'FieldSeparator' => '/',
'PrefixParentPageSlug' => true
]
'FallbackCharacter' => '-',
'Eval' => 'uniqueInSite'
]

Усовершенствования и аспекты маршрутизации

- Маршруты могут быть расширены «заполнителями» для создания URL-путей, таких как:
/ Путь к / {имя-продукта} / My-страницы / продукции
- Это делают «Усиление» и «Аспекты»,
-TYPO3 v9 LTS поддерживает следующие энхансеры из коробки:
- Простой Enhancer (усилитель типа «Простой»)
- Расширитель плагинов (расширитель типа «Плагин»)
- Extbase Plugin Enhancer (тип энхансера «Extbase»)
- Конфигурация в файле config.yml (пока нет пользовательского интерфейса)
- Пользовательские энхансеры могут быть зарегистрированы в ext_localconf.php:
$ GLOBALS ['TYPO3_CONF_VARS'] ['SYS'] ['routing'] ['CustomPlugin'] =
\ MyVendor \ MyPackage \ Routing \ CustomEnhancer :: класс;

Усилитель типа страницы

- PageTypeEnhancer позволяет вам настраивать страницы по типу, например. те,
с суффиксом .html
- Суффикс добавляется в самом конце URL-адреса, используя
StaticValueMapper
- Пример конфигурации:
routeEnhancers:
PageType:
type: PageType default: ''
карта:
'.Html': 1
'Menu.json': 13

Николай Сипко 09.10.2018 14:55

Оказалось не просто, а очень просто

Sites -> Site Configuration -> Edit Site Configuration "unique" on root level

Ошибиться трудно, все не заданные параметры обозначены красными маркерами

И в редактировании страницы появился URL Segment


Часовой пояс GMT +4, время: 12:38.

Работает на vBulletin® версия 3.8.1.
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Перевод: zCarot