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.
When I click on "Manage display" in the Drupal 7 contextual menu, Display Suite isn't opening its pages in the overlay, nor using the admin theme.
Comparing the code with Webform, I see that Display Suite is missing an implementation of hook_admin_paths(). Dropping the following function into ds.module fixes the problem for me.
/**
* Implements hook_admin_paths().
*/
function ds_admin_paths() {
if (variable_get('node_admin_theme')) {
return array(
'node/*/display' => TRUE,
);
}
}
I'm not sure whether there are any other paths for Display Suite that should also be listed here.
Comments
Comment #1
swentel CreditAttribution: swentel commentedCommitten and pushed. Also add the user/*/display and taxonomy/term/*/display paths as well.
Comment #2
astutonetHi.
I also have this issue in dev version.
Some links in admin area, like Fields and Views Mode don't work. In Layout page, links also don't work.
I don't test without Overlay.
Tks.
Comment #3
swentel CreditAttribution: swentel commentedCan't reproduce this.
Comment #4
astutonetOk,
If you can´t reproduce this, you can at least help me to solve this?
Tks
Comment #5
swentel CreditAttribution: swentel commentedTry to give me steps to reproduce. I can't really help you from where I'm sitting :)
+ all callbacks start with 'admin', so if anything doesn't work, this is a core bug.
Comment #6
astutonetOk
I think I found the error. Perhaps the problem isn't related to the DS, but it is necessary to evaluate the issue in more detail:
When I'm on page of DS (http://localhost/drupal/en/home#overlay=en/admin/structure/ds) and I click in Fields, for example, a new page is loaded in this address: http://localhost/drupal/en/home#overlay=en/admin/structure/ds/fields.
Nevertheless, at the opening, I receive the following error message:
In the log files of PHP, MySQL or Apache, there are no error messages, but in dblog I found the following error message:
This error also is repeated with other links of the DS.
I would also like to note that this site is multi language.
Can you help me?
Tks.
Comment #7
swentel CreditAttribution: swentel commentedIt means the ds_fields table isn't available. You should uninstall the module completely. Related see, #1267050: PDOException: Table ds_view_modes doesn't exist
Comment #8
astutonetAfter uninstall and reinstall the issue was solved.
Tks.