New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add backend link to Contao manager #26
Comments
I'm not sure about this, as the manager is not part of the backend. @aschempp /cc |
I very much like the idea, I think it was actually proposed before. The Manager is not part of the backend, but it is an integral part of the system. Here's how it should work in my opinion:
@dmolineus would you create a PR for this? |
Yes, I'll create a PR for it. Your proposal how it should work is the same idea I do have in mind.
Wdyt? |
Definitely. If you add the core bundle to an existing Symfony installation, the link does not make sense. |
Closed in favour of #46. |
Description ----------- This is the follow up PR for #26 and automatically adds a link to the Contao manager in the backend navigation for admin users. Marked as WIP as unit tests yet missing. Some questions which might be discussed in the meantime: - Should the label "Contao Manager" be translated or is it treated as a trade name? - Atm the link is not added if the system group is not available. Should it be created otherwise? - Link is added with a target attribute. Don't mind to remove it again. - Any idea how to test the configuration (it checks if the configured file exists)? Commits ------- 1dc49f1 Allow target attribute. e8e8bd0 Add link to contao manager in the backend navigation. b61008b Fix checking of attribute. 5d27444 Provide unit tests. aafb0f1 Remove built in support for contao-manager.php b/c @aschempp insisted to remove it. deca785 Use contao.web_dir instead of hardcoded web dir. 3f80900 Use contao.web_dir instead of hardcoded web dir. 8142a2a Fix the coding style 8f8a27e Refactor the back end nenu listener test 35b2908 Refactor the Contao Manager extension test
Description ----------- This is the follow up PR for contao/contao#26 and automatically adds a link to the Contao manager in the backend navigation for admin users. Marked as WIP as unit tests yet missing. Some questions which might be discussed in the meantime: - Should the label "Contao Manager" be translated or is it treated as a trade name? - Atm the link is not added if the system group is not available. Should it be created otherwise? - Link is added with a target attribute. Don't mind to remove it again. - Any idea how to test the configuration (it checks if the configured file exists)? Commits ------- 1dc49f16 Allow target attribute. e8e8bd0a Add link to contao manager in the backend navigation. b61008bb Fix checking of attribute. 5d274441 Provide unit tests. aafb0f12 Remove built in support for contao-manager.php b/c @aschempp insisted to remove it. deca7859 Use contao.web_dir instead of hardcoded web dir. 3f80900b Use contao.web_dir instead of hardcoded web dir. 8142a2ac Fix the coding style 8f8a27e3 Refactor the back end nenu listener test 35b29085 Refactor the Contao Manager extension test
Description ----------- This is the follow up PR for contao/contao#26 and automatically adds a link to the Contao manager in the backend navigation for admin users. Marked as WIP as unit tests yet missing. Some questions which might be discussed in the meantime: - Should the label "Contao Manager" be translated or is it treated as a trade name? - Atm the link is not added if the system group is not available. Should it be created otherwise? - Link is added with a target attribute. Don't mind to remove it again. - Any idea how to test the configuration (it checks if the configured file exists)? Commits ------- 1dc49f16 Allow target attribute. e8e8bd0a Add link to contao manager in the backend navigation. b61008bb Fix checking of attribute. 5d274441 Provide unit tests. aafb0f12 Remove built in support for contao-manager.php b/c @aschempp insisted to remove it. deca7859 Use contao.web_dir instead of hardcoded web dir. 3f80900b Use contao.web_dir instead of hardcoded web dir. 8142a2ac Fix the coding style 8f8a27e3 Refactor the back end nenu listener test 35b29085 Refactor the Contao Manager extension test
Im Forum wurde heute über einen Link zum Manager im Backend diskutiert. Einige haben den Link in der 4.7 gesichtet. Wahrscheinlich aber in der dev-Variante. In meinen stable-Versionen 4.7.1 ist keiner. Sollte der dasein oder kommt er doch erst in der 4.8. Hier noch der Link zum Forum https://community.contao.org/de/showthread.php?67084-Hinweise-zum-Contao-Manager&p=498583&viewfull=1#post498583 |
Dann werde ich heute mal eine Neuinstallation testen. Die Installationen sind alle Updates einer 4.4 bzw. 4.6 |
Das Problem hat sich erledigt. Es tritt nur deshalb auf, weil ich meinen Contao Manager immer mit cm.phar.php benenne https://community.contao.org/de/showthread.php?67084-Hinweise-zum-Contao-Manager&p=498677&viewfull=1#post498677 |
Description ----------- With @Toflar we have discovered by accident that if a URL is double-encoded (for some reason, doesn't matter) the Contao's `RouteProvider` will eventually throw an error trying to query a database. ``` URL original: drachenlochmuseum-v%25c3%25a4ttis.html URL decoded: drachenlochmuseum-v%c3%a4ttis.html URL decoded 2nd time: drachenlochmuseum-vättis.html ``` The decoded URL is used in the database query and that fails because the database driver would like to replace wildcards `%c` with parameters that were not provided. Stack trace: ``` Exception: Too few arguments to build the query string #27 vendor/contao/core-bundle/src/Resources/contao/library/Contao/Database/Statement.php(304): replaceWildcards #26 vendor/contao/core-bundle/src/Resources/contao/library/Contao/Database/Statement.php(249): execute #25 vendor/contao/core-bundle/src/Resources/contao/library/Contao/Model.php(1102): find #24 vendor/contao/core-bundle/src/Resources/contao/library/Contao/Model.php(973): findBy #23 vendor/contao/core-bundle/src/Framework/Adapter.php(38): __call #22 vendor/contao/core-bundle/src/Routing/RouteProvider.php(493): findPages #21 vendor/contao/core-bundle/src/Routing/RouteProvider.php(88): getRouteCollectionForRequest #20 vendor/contao/core-bundle/src/Routing/LegacyRouteProvider.php(43): getRouteCollectionForRequest #19 vendor/symfony-cmf/routing/src/NestedMatcher/NestedMatcher.php(141): matchRequest #18 vendor/contao/core-bundle/src/Routing/Matcher/LegacyMatcher.php(69): matchRequest #17 vendor/symfony-cmf/routing/src/DynamicRouter.php(271): matchRequest #16 vendor/symfony-cmf/routing/src/ChainRouter.php(188): doMatch #15 vendor/symfony-cmf/routing/src/ChainRouter.php(158): matchRequest #14 vendor/symfony/http-kernel/EventListener/RouterListener.php(115): onKernelRequest #13 vendor/symfony/event-dispatcher/EventDispatcher.php(212): doDispatch #12 vendor/symfony/event-dispatcher/EventDispatcher.php(44): dispatch #11 vendor/symfony/http-kernel/HttpKernel.php(126): handleRaw #10 vendor/symfony/http-kernel/HttpKernel.php(67): handle #9 vendor/symfony/http-kernel/Kernel.php(198): handle #8 vendor/symfony/http-kernel/HttpCache/SubRequestHandler.php(85): handle #7 vendor/symfony/http-kernel/HttpCache/HttpCache.php(448): forward #6 vendor/symfony/framework-bundle/HttpCache/HttpCache.php(57): forward #5 vendor/symfony/http-kernel/HttpCache/HttpCache.php(420): fetch #4 vendor/contao/manager-bundle/src/HttpKernel/ContaoCache.php(46): fetch #3 vendor/symfony/http-kernel/HttpCache/HttpCache.php(317): lookup #2 vendor/symfony/http-kernel/HttpCache/HttpCache.php(192): handle #1 vendor/friendsofsymfony/http-cache/src/SymfonyCache/EventDispatchingHttpCache.php(98): handle #0 web/app.php(58): null ``` Commits ------- 8ae2582 Fix a potential error if the URL has percentage in it 8caaf25 Fix unit tests 509f762 Correctly encode the page aliases
It's just a small thing, but for some users it would be a nice addition if the Contao Manager is linked in the Contao backend. The idea is to add a separate link in the system section of the backend navigation which would open the contao manager in a new window. If you like the idea, I'll provide an PR.
Idea how to implement it:
contao-manager.phar.php
odercontao-manager.php
and would set the parameter automatically.I guess it should be part of the manager-bundle instead of the core-bundle, am I right?
The text was updated successfully, but these errors were encountered: