-
Notifications
You must be signed in to change notification settings - Fork 42
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
alias / auto_item not working – no items found #1304
Comments
I need more information on your setup.
Can you please enhance above recreation steps with the page structure setup (page aliases at minimum). |
Sorry for the delay.
Item Aliasses on listpage (test.html) : Name: Name: on detailpage (referenz-test) Folder URLs in Use: yes I hope this helps. |
We have copied your case exactly and found no errors. If you want someone to take a look at your case, please send an email to mail@metamodel.me for support. Maybe another extension is guilty... |
Checklist before I submit this issue report
I confirm that:
My environment is:
(Please fill in the actual values from your environment)
Issue description
Trying to open a detailpage ends in ‚no items found‘ all the time.
Steps to reproduce
Name [text]
Alias [alias] (generated via Name-field)
Simple Lookup on attribute alias (URL-Paramerter: auto_item)
jumpTo : detailpage,
Filter: testfilter
Attributes: name and alias
=> ItemList is showing up in FE with detail-link (link is /test/referenz-test/detailitem_1.html e.g. /test/referenz-test/detailitem_2.html)
Describe the behaviour of the application
Now click on detail-link of an detailItem on listpage => detailpage (e.g. URL: .../test/referenz-test/detailitem_1.html) is loaded with message 'no items found'
I tried to find the reason and came up to class ItemList in MM core,
function setFilterParameters($arrPresets, $arrValues)
dumping $arrValues I get an array like this:
array:2 [▼
"auto_item" => "test"
"referenz-test" => "detailitem_1"
]
So the value of auto_item is ‚test‘ and not ‚detailItem_1‘. That‘s the reason why I get an ‚item not found‘ I guess because there is no item with alias 'test'.
Describe the expected behaviour of the application
loading detailpage and showing data from detaiItem_1
Forum: https://community.contao.org/de/showthread.php?74737-MM-2-1-und-auto_item
The text was updated successfully, but these errors were encountered: