Skip to content
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

Request : Node Detail View module port #114

Closed
gauravjeet opened this issue Oct 23, 2015 · 6 comments
Closed

Request : Node Detail View module port #114

gauravjeet opened this issue Oct 23, 2015 · 6 comments

Comments

@gauravjeet
Copy link

Hi there, I have a D7 module called Node Detail View that I am very much interested to port to Backdrop CMS. I think this could be a good UI for admins/content producer who manage this CMS. I've just started to port my module.
Would love to port my other modules as well later.

Module link - https://www.drupal.org/project/node_detail_view
My Github - https://github.com/gauravjeet/
Module Backdrop branch - https://github.com/gauravjeet/node_detail_view/tree/backdrop

Let me know if there is anything I missed out.

@klonos
Copy link
Member

klonos commented Oct 23, 2015

Hey there @gauravjeet and thank you for starting to port your modules to Backdrop. In case you were not following the development of Backdrop since early on, I would like to point to you that most admin page listings have either already been converted to views (once we got Views is in Backdrop core) or are in the process of being converted to views. You can see the progress of this task here: backdrop/backdrop-issues#151

The content listing page itself (/admin/content/node) is already a view (backdrop/backdrop-issues#150) and I was wondering if there might be a way to achieve what Node Detail View does with only what is already available in Backdrop core. In other words perhaps by editing the default "Admin Content" view or simply by providing another view. One of the main reasons why we initially decided to convert listings to views was to empower people to be able to change the admin UI to present things the way they see fit for them ...without using other contrib modules if possible.

@gauravjeet
Copy link
Author

Hi @klonos, thanks for the reply. Yes, Views is in Backdrop core now and I have started looking for a workaround to edit the admin/content page. One solution can be to use hook_views_pre_render(), even though this hook is too late in the process, the module only gives an option to change the layout of this page to show a new section that renders and shows the node (hope you must have seen a demo on a D7 test site), or another solution could be to create another View altogether and replace the default admin/content/node View (of course, defaults will always be there).

@klonos
Copy link
Member

klonos commented Oct 23, 2015

Instead of overriding the default view, perhaps you could try creating your custom view as a separate display of the default view. (in a separate URL, say /admin/content/node/details) and then use the "Menu" setting to have that render as a tab:

backdrop-ops-contrib-issue114-view_display_as_tab-step1
backdrop-ops-contrib-issue114-view_display_as_tab-step2
backdrop-ops-contrib-issue114-view_display_as_tab-step3
backdrop-ops-contrib-issue114-view_display_as_tab-step4
backdrop-ops-contrib-issue114-view_display_as_tab-step5
backdrop-ops-contrib-issue114-view_display_as_tab-step6
backdrop-ops-contrib-issue114-view_display_as_tab-step7

@klonos
Copy link
Member

klonos commented Oct 23, 2015

...don't you just ❤️ Views? ...in core baby!!

yeah-baby-yeah

@gauravjeet
Copy link
Author

AWESOME man :))
that's the way to do it.. thnks

@klonos
Copy link
Member

klonos commented Aug 30, 2019

Hello @gauravjeet 👋 ...it's been quite a while without your response here, so I will go ahead and close this one. Please feel free to reopen if you decide to work on this again.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants