Is it possible to change the way the available "Publish To" domains list on the create and edit node pages?
A select box or some other way to compact the list when it reaches a certain number would be helpful. I don't know if it would help anyone else, with 100+ domain names like me.
Thanks for considering.
| Comment | File | Size | Author |
|---|---|---|---|
| #6 | 576444-select-list-format.patch | 14.3 KB | agentrickard |
| #5 | 576444-select-list-format.patch | 14.19 KB | agentrickard |
Comments
Comment #1
nonsieThere should already be another issue originally started from #367752: Domain Content: too many menu items that deals with the same problem but I cannot find it atm. 100+ domains is not that unusual.
Comment #2
agentrickardRight now, you can implement this quickly with hook_form_alter(). We need ideas for the best way to generically handle this.
I don't think we ever started a new issue, so we can use this one. Simple first idea:
-- It would be easy to make the list configurable in the UI.
Comment #3
jeremyr commentedConfigurable in the UI would be nice... if you meant that we could switch between the different ways for displaying them. An option to show the domains "collapsed by default" would be nice too.
I'm still very new at module development but would like to help where I can. Testing would be the thing I could do with out messing up anything.
Comment #4
mrgoltra commenteddrop down please. subscribing
Comment #5
agentrickardHere's a patch that lets the site admin choose the format. The variable setting defaults to checkboxes, but switches to select list if more than 25 domains are present.
You can also force the format you prefer. This change applies globally to all form element in the core DA suite.
For developers, see the new
domain_select_format()function and form elements like the options form in Domain Views > domain_views_access_plugin.inc.Comment #6
agentrickardUpdated patch. Committed.
Comment #7
agentrickardD5 is dead.