Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I modify Drupal's Admin Screens?

I'm looking to edit Drupal's admin pages.

Some of the things I'm trying to achieve:

  1. Remove is the the filter setting on the Content page/node/view. In other words, if I go to to the Content page and I filter by a certain type of node, then I leave that page, then come back, the filter setting is saved, I'd like it to reset each time I visit the Content page.

  2. I would like to modify some of links associated with these pages, as an example on that Same Content page, the titles of the pages are linked to their 'front-end' views, I'd rather have them link to their 'edit' screens.

While I have been successful in modifying the front-end theme of Drupal, by editing the actual php files. I can't find the the same php files for the Admin theme. In our case we are using Seven (7.21). I've read something about views, and thought maybe the entire Admin theme is built as views, aka there no php files involved like the front-end theme has, but under the Views section I did not find any either. I'm still pretty new at this and coming from the Wordpress world, this is a Drupal is a lot different.

like image 353
brooklynsweb Avatar asked Oct 17 '17 15:10

brooklynsweb


2 Answers

The logic for that section of the admin area is at (from the public root): /modules/node

Specifically "node.admin.inc"

That being said, I don't recommend editing core scripts, as they will be overwritten when you update the core.

You could explore making your own module to supplement that page, or your own view or explore some pre-made modules, such as "Admin Views"

like image 71
Brendan J Avatar answered Sep 30 '22 15:09

Brendan J


Find de view displayed and go to its configuration :

1 - Edit configuration view like suggested here : https://drupal.stackexchange.com/questions/44440/how-to-remember-exposed-filter-choices

2 - Rewrite output views to rewrite link : field https://www.drupal.org/node/1578524

Another option is to create and use your own dashboard/views to achive like you want http://definitivedrupal.org/suggestions/creating-custom-administrator-view-content

also you can see contrib module : https://www.drupal.org/project/admin_views

like image 24
Fky Avatar answered Sep 30 '22 15:09

Fky