How to hide content on widget detail pages
I've made a dynamic module and have a list and detail pages. I would like to add some text above and below the list on the list page but not show that text on the detail page.
If I auto-generate the detail page then it has a shorter url and doesn't require another page in the tree but content blocks above and below show on the list AND detail page which I don't want.
If I create a new detail page then I can display the text above the list and not on the detail page but then I end up with this detail page that displays a list if there is no url parameter.
Looks like there might be 2 solutions to this:
- Can I hide the content blocks on an auto-generated detail page?
- Or can I redirect the detail page to the main list page if there is no url parameter?
Thanks,
Ross