It would be great if a column could be added to the modules list to display the file path of each module. To avoid cluttering the interface, this could even be done with a rollover effect.
The use case for this primarily addresses Drupal multisite users who for one reason or another, have differing versions of a module in sites/all and sites/siteinquestion. For example, sites/all may contain the 7.x-1.x version of the media module, as the majority of sites in the multisite were built before 7.x-2.x was stable, while specific newer sites within the multisite may contain the 7.x-2.x version. In this case, it would be very helpful to have this information available from the module list interface, so that site administrators can determine at a quick glance where the module lives.
I'll take a stab at writing a patch for this and submit it here when complete.
Comment | File | Size | Author |
---|---|---|---|
#13 | interdiff.txt | 3.06 KB | Yago Elias |
#13 | add_option_to_display-2403371-13.patch | 7.74 KB | Yago Elias |
#11 | module_filter-add_path_option-2403371-11.patch | 4.46 KB | greenSkin |
#7 | aaaa.PNG | 24.25 KB | Yago Elias |
#7 | esta.PNG | 15.95 KB | Yago Elias |
Comments
Comment #1
alexminer CreditAttribution: alexminer commentedHere is a patch containing the new functionality I described. Currently, there is no rollover to display the path, and it instead adds a new column in which the path is displayed.
This additional column will only appear if the configuration option 'Show module path in modules list' is enabled. By default, this is disabled in order to prevent clutter since this feature primarily targets more advanced users.
Comment #2
alexminer CreditAttribution: alexminer commentedComment #3
helmo CreditAttribution: helmo at Initfour websolutions commentedHere's an updated patch for the 7.x-2.x branch.
Works as expected.
Comment #4
clemens.tolboomThis is unnecessary complicated code.
As the use case is who provides the module the path are probably not important. Why not just match on type like
I'm not sure why the column width is so wide :-/
Comment #5
helmo CreditAttribution: helmo at Initfour websolutions commentedBecause it had no styling.
This patch sets it to 10% with. And shows the whole path when hovering over the path column.
Comment #6
Yago Elias CreditAttribution: Yago Elias as a volunteer and at CI&T commentedJust fixing a small typo issue on last patch
Comment #7
Yago Elias CreditAttribution: Yago Elias as a volunteer and at CI&T commentedThe patch is working fine to me! I can see the paths of my module.
Changing to RTBC
Evidence:
Comment #8
Yago Elias CreditAttribution: Yago Elias as a volunteer and at CI&T commentedComment #9
clemens.tolboomGuess this needs a D8 version first?
Comment #10
Yago Elias CreditAttribution: Yago Elias as a volunteer and at CI&T commentedHi clemens! Im trying to port this feature to d8. Wanna help? https://www.drupal.org/node/2886842
Comment #11
greenSkin CreditAttribution: greenSkin commentedI'd like to keep the number of columns to a minimum. This patch moves the path into the description column and shows the entire relative path to the module. CSS will clip the path with an ellipsis when it's too long to fit in the column's width. Also moved the setting into the tabs fieldset as this only applies when using tabs.
Comment #12
clemens.tolboomComment #13
Yago Elias CreditAttribution: Yago Elias as a volunteer and at CI&T commentedI liked @greenSkin approach!
Here is the patch with some coding standards issue resolved.
Comment #14
leotorati CreditAttribution: leotorati at CI&T commentedI successfully tested the last patch and it's working fine.
Comment #15
leotorati CreditAttribution: leotorati at CI&T commentedComment #16
leotorati CreditAttribution: leotorati at CI&T commentedComment #17
clemens.tolboomIn #2886842: Add option to display module path on admin/modules table I suggested to move it's patch into this issue and set version here into 8.x-3.x as both are same feature request. We have a backport patch in here for the maintainers to review later on. What do you think?
Comment #18
VladSavitsky CreditAttribution: VladSavitsky as a volunteer and commentedTested. Works as expected.
Comment #19
andrey.troeglazov CreditAttribution: andrey.troeglazov at DrupalJedi commentedComment #21
andrey.troeglazov CreditAttribution: andrey.troeglazov at DrupalJedi commented