We've just started using the remote server functionality of Aegir a lot, and now we have lots of remote servers with fairly non-helpful names, so choosing which server to create a platform on is a major pain. A lot of this pain would go away if we could have an additional 'friendly' name to go along with the server, this would be displayed additionally to the existing information when picking a server.
This could be done entirely in contrib land for now, and then rolled into Aegir for 2.x if wanted, but it would need adding a small drupal_alter to hosting_get_servers so that I can add my friendly name in.
Can we sneak this API change in for 6.x-1.x?
Comments
Comment #1
Steven Jones CreditAttribution: Steven Jones commentedThe change would be this:
becomes:
Which is a very simple change no?
Comment #2
anarcat CreditAttribution: anarcat commentedYes, although I'm not sure I like the API... What about hook_hosting_server_titles()?
Comment #3
Steven Jones CreditAttribution: Steven Jones commentedCool beans.
Sure, so it'll be
hook_hosting_servers_titles_alter
.Comment #4
Steven Jones CreditAttribution: Steven Jones commentedFixed, documented and pushed to all branches.
Aces!
Comment #6
hejazee CreditAttribution: hejazee commentedIt would be great if the server's friendly name also was shown on the server list (?q=hosting/servers)
This means that not only the hosting_get_servers() function, but also all functions that return the name of a server, should use the friendly name (or trigger that hook)
related: #1496360: This module doesn't work at all!
Comment #7
Steven Jones CreditAttribution: Steven Jones commentedIt would be really nice if we could add some kind of display name for Servers in 2.x
Comment #8
helmo CreditAttribution: helmo commented@hejazee: I added a patch for this in #1829992: Use replaced title in /hosting/servers list
The proper solution could become easier when #1876354: Convert list of servers to use views is done...
Comment #9
ergonlogicNew features need to be implemented in Aegir 3.x, then we can consider back-porting to Aegir 2.x.
Comment #10
ergonlogicWe're just talking about an additional field ('name'), on server nodes, right? And using that instead of the title throughout the UI? Token support, as in the hosting_server_titles contrib module, isn't required either then. We should probably rename 'title' to hostname as well.
Comment #11
helmo CreditAttribution: helmo commentedYes, a name field that's not necessarily the hostname would probably do.
I personally created a cck field called friendly_name. With the token pattern "[title-raw] - [field_friendly_name-raw]" this allowed me to add a general purpose description to the server listing.
> We should probably rename 'title' to hostname as well.
Definitely .. all for predictability.
Comment #12
ergonlogicThis required a tweak to eldir's preprocess function, since it was independently looking up the node name.
Fixed in 25d218d (hosting) and 8e1d5fe (eldir).