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.
This one might be complicated by the current table's ability to gain extra columns for the different services supported by views. By we could just change the format of this table?
Comments
Comment #1
Deciphered CreditAttribution: Deciphered commentedSo I started this one, but it became clear that due to the modular nature of the servers list (the ability for different types of services to be added via hook_hosting_service_type()) and the current display choice it probably wouldn't be best served as a View.
I will expose the fields from the hosting_services table to Views, but at this stage I have no intent on going any further than that.
Comment #2
anarcat CreditAttribution: anarcat commentedthis is almost there, see #588728: Meta: Views integration redux.
Comment #3
ergonlogicComment #4
anarcat CreditAttribution: anarcat commentedComment #5
ergonlogicComment #6
cweagansAny movement on this? It's really weird to have everything be views except for one list.
Comment #7
ergonlogic@cweagans, not that I'm aware of. This is a bit complicated as described in #1, so we may need to find an alternate way to display this. Suggestions (or patches ;) are welcome though.
Comment #8
Steven Jones CreditAttribution: Steven Jones commentedI think a way forward on this would be to provide a field that renders all the services available as single list, and then replace the columns with that, and then also provide a way to filter the view easily, so if you wanted to view just the servers with service X, that would be easy.
Comment #9
cweagansPerhaps something like this would work?
Just treat the services like Taxonomy terms instead of separate columns, then maybe give a way to filter by what service a server has on it. I think that would be sufficient. What do you think?
Comment #10
cweagansHa, you posted before I did. Let's do that. I'll build it today and roll a patch.
Comment #11
cweagansTurns out that I probably won't be working on this, so if somebody else wants to run with it, feel free :)
Comment #12
ergonlogicTaking a queue from the suggestions above, we now provide a concatenated list of services. In a template_preprocess hook, we then expand these back out to separate headers and fields. The new view is identical to the original.
Fixed in af856ca (hosting) and 2a0f5b6 (hostmaster).