Forum
List and detail page, include whole list on detail page
Hi,
how can I include the whole list (not just the item filtered by it´s slug) on the detail page in this example: https://solutions.grabaperch.com/architecture/how-do-i-create-list-detail-pages
The list is working fine, and the detail page is also working. But on the detail page I would like to also show the whole list under the item with details, so that the user easy can continue to browse all items.
Any idea?
Yes, you can just copy the code you're using for the listing into the detail page too.
Thank you, but when doing so the detail page only shows the list item with the same slug as the item currently showing on the detail page.
Can you show me the code you're using? Otherwise I can only make guesses!
Here is the code!
portfolio_detail.html
portfolio_listing.html
Portfolio page
Ok, so this is the business end:
so add the listing code to the detail mode:
Thank you! I´m now slowly beginning to understand where the logic is, and what the templates does:)
No problem!