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
Content element selector doesn't let you select elements, only pages and articles #2046
Comments
The latest version is 4.9.4, did you verify it there? |
The problem is a bit different in 4.9.4. In some cases the content element selector opens a popup backend. I then can browse the backend like normal, but unable to select a content ekement. In other cases the popup shows all elelments in the article I placed the content element selector in. Getting out of that article is no option. |
How do we reproduce the issue in the online demo? |
Edit an article, doesn't matter which one... If you add a content element (Inhaltselemente) you are able to link to an element in whatever article... When you click on Change Selection a pop-up opens. In it the content of the article you are working in. If you want to choose an element of an other article you have to open the menu (in previous Contao versions you could just click on the back button and it would automatically open in article/element view only). When the menu opens, click on article and open a different article than you are working in. You then see all element in that article, but you can't select them. |
I cannot reproduce this issue. Here is what I have done:
The element is selected without a problem. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
Same issue within "Events". There the workaround above is okay for admins. But the issue renders the picker useless for users. This can be reproduced in the online demo:
The event has ID 6 PS: same issue in "News"/"Nachrichten" |
I have debugged the issue and here is the problem: If |
#2201 is in fact the same problem. |
Description ----------- | Q | A | -----------------| --- | Fixed issues | Fixes contao#2046 A picker that picks elements from a child table like the one used in the include content element currently creates links like `?do=article&table=tl_content` which show an empty page because the pid (`id=`) is missing. If there is a `CURRENT_ID` in the session, an arbitrary page might show up instead of an empty page, or it causes a permission error as in contao#2046. This pull request fixes this by only adding the `table=` parameter if there is a valid pid. Commits ------- 651d8df Fix picker for child tables without pid f333be6 Move the default declaration above the if condition 5348926 Handle the case that $ptable is false Co-authored-by: Martin Auswöger <martin@auswoeger.com>
Description ----------- | Q | A | -----------------| --- | Fixed issues | Fixes contao#2046 A picker that picks elements from a child table like the one used in the include content element currently creates links like `?do=article&table=tl_content` which show an empty page because the pid (`id=`) is missing. If there is a `CURRENT_ID` in the session, an arbitrary page might show up instead of an empty page, or it causes a permission error as in contao#2046. This pull request fixes this by only adding the `table=` parameter if there is a valid pid. Commits ------- 651d8df Fix picker for child tables without pid f333be6 Move the default declaration above the if condition 5348926 Handle the case that $ptable is false Co-authored-by: Martin Auswöger <martin@auswoeger.com>
Affected version(s)
Contao 4.9.2
Description
The content element selector in backend doesn't let you pick an element. Only lets you pick pages or articles.
The text was updated successfully, but these errors were encountered: