Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
I don't think this is a current feature of the module, but something I'm interested in doing is having two different "view" tabs on my nodes. One would display the node in the normal site theme, one would display it in the admin theme. Any ideas how I might be able to accomplish this? I'm a developer, so I might be up for building this feature myself and contributing it back. Any tips? ...or reasons that this would be a terrible idea? Any help would be appreciated.
Comment | File | Size | Author |
---|---|---|---|
#2 | course_admin_view.png | 211.56 KB | attheshow |
Comments
Comment #1
davyvdb CreditAttribution: davyvdb commentedWhat's the use case for this? If we add this, I think we should make it more generic, not only on nodes, but also on term pages, paths, ...
Comment #2
attheshow CreditAttribution: attheshow commentedMy use case is that the node view is displayed differently to internal users to external users. For instance, I have a content type called a "course" and then i have other content types that are associated by node reference (course notes, course revisions, etc.). I'm currently using views with an argument to display those views on the regular node view. That then gives the internal users easy access to go to those associated nodes from the primary course node page.
However, when a non-authenticated user views the page, the default view would need to be in my non-admin theme and they would see a different view of the node. I've attached a screenshot of my current view when using the intended admin theme as the default theme.
Comment #3
davyvdb CreditAttribution: davyvdb commentedI've been thinking a bit more about this and a more general approach could be to create a hovering link (or something else) that appears on all pages. Clicking the link would show the same page but using the administration theme.
Comment #4
justy CreditAttribution: justy at TrazerEdge commented