show administration theme when editing page in drupal

落爺英雄遲暮 提交于 2019-12-11 08:36:17

问题


I am using a custom theme for the front end of my drupal website.I created it by modifying garland theme.And I am using garland as the admin theme.

When I try to edit a page from admin it shows the edit page with my custom theme (http://example.com/node/2/edit?destination=admin%2Fcontent%2Fnode). And It breaks up the layout.

I want to show the admin theme for all the admin tasks. This problem also occurs on the blocks page (http://example.com/admin/build/block).

Is there any custom module or core hack to show admin theme when editing pages.


回答1:


If you want to use admin theme by non-admin users you must give permissions to that user: Permitions->System->View the administration theme




回答2:


Be sure that you check the option in the page example.com/admin/settings/admin




回答3:


To get the admin theme showing for non-admin users, I went to admin/people/permissions/list and checked the "View the administration theme" box for all roles.

Sounds simple except that the Filter list wasn't showing that entry when I typed theme, so it took me awhile to find it. Finally I used the browser find to find all instances of the word "theme".

Or, you could type "System" in the Filter list to show only a few options in the relevant category.




回答4:


You can use admin theme module, download and install it , the go to permission in dmin/people/permissions then in Administration theme set permission to waht user you want by checking Access administration theme. Then goto http://chapboo.com/admin/appearance in bottom of the page in custom page add

admin/*
node/add/*
node/*/edit

and finally clear the cache




回答5:


You have to check the checkbox under:

exemple.com/admin/appearance



来源:https://stackoverflow.com/questions/5389070/show-administration-theme-when-editing-page-in-drupal

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!