ausi / contao-slug-backport Goto Github PK
View Code? Open in Web Editor NEWBackport of the slug handling from Contao 4.5 to 4.4
Backport of the slug handling from Contao 4.5 to 4.4
In the tl_page.php
you are using
$GLOBALS['TL_DCA']['tl_page']['palettes']['root'] = str_replace(';{sitemap_legend', ',validAliasCharacters;{sitemap_legend', $GLOBALS['TL_DCA']['tl_page']['palettes']['root']);
This means the validAliasCharacters
field will be inserted into whatever section comes before the sitemap_legend
section. You are probably intending to insert the field into the Global settings section - however, if an extension happens to insert another section after that section, the validAliasCharacters
field will end up being in that section instead.
For instance, if you have the news_categories
extension installed, the validAliasCharacters
field will be part of the News categories settings section of the palette.
I installed Version 1.0.5, but when i try to create a new form i get this error:
[2019-07-19 13:32:51] request.INFO: Matched route "contao_backend". {"route":"contao_backend","route_parameters":{"_scope":"backend","_token_check":true,"_controller":"Contao\\CoreBundle\\Controller\\BackendController::mainAction","_route":"contao_backend"},"request_uri":"http://example.com/contao?act=edit&do=form&id=32&ref=Zs13t7ns&rt=mcrZKlgR5BkblQCNOa9RrDfKc01gFuptT7ClEIWBb6c&s2e=1","method":"POST"} []
[2019-07-19 13:32:51] security.INFO: Attempting SimplePreAuthentication. {"key":"backend","authenticator":"Contao\\CoreBundle\\Security\\ContaoAuthenticator"} []
[2019-07-19 13:32:52] app.CRITICAL: An exception occurred. {"exception":"[object] (Symfony\\Component\\Debug\\Exception\\ClassNotFoundException(code: 0): Attempted to load class \"Input\" from namespace \"Ausi\\ContaoSlugBackport\".\nDid you forget a \"use\" statement for e.g. \"Haste\\Input\\Input\" or \"Symfony\\Component\\Console\\Input\\Input\"? at /Users/user/project/vendor/ausi/contao-slug-backport/src/Callbacks.php:243)"} []
Version 1.0.4 is works fine for me
Because the ContaoManagerPlugin does not list them as dependents so they are potentially loaded before and thus overwritten :(
Thanks for the backport, really helpful!
I just have a quick question: Is there a reason why support for entries in tl_article is not included?
Thanks
Arno
Backport fixes from contao/core-bundle@9d7bdf4 see contao/core-bundle#1334
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.