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.
By kumkum29 on
Hello,
i use a custom theme in my site. If i delete a file, the page is theming with the admin theme.
Is it possible to override this "file delete page" with my custom theme. I have tried with this template : template page--file.tpl.php. I have cleared cache. But it doesn't work.
Thanks for your help.
Comments
Solution
Hello,
I found a solution. The edit file page should not be recognized as an admin page.
You must use this function in a custom module:
You can use a page--file.tpl.php template in your theme.
This can be useful to someone ;)