modxcms / Collections

An Extra for MODX Revolution that provides for Resource Collections managed by CollectionContainer Resources
GNU General Public License v2.0
53 stars 37 forks source link

Feature request: Custom button labels. #330

Open jmacdonald-spectacle opened 2 years ago

jmacdonald-spectacle commented 2 years ago

I'd like to be able to change the labels of some of the buttons in a collection view. Particularly the 'open' button.

One approach might be to use the same method as input items for tvs. For example: Products==open

theboxer commented 2 years ago

What buttons you mean? Can you send a screenshot?

jmacdonald-spectacle commented 2 years ago

The buttons in the General settings are set here:

image

and are viewed in the collection like this:

image

I'd like to be able to change the labels on the buttons.

patrickatwsrn commented 2 years ago

https://github.com/modxcms/Collections/blob/4aa35b229787a0ec76dfcc50da578cf01ff69b1a/core/components/collections/processors/mgr/selection/getlist.class.php#L145

I believe that the labels of these buttons are handled by generic modx lexicon entries.

If they would be handled by collections own lexicon, we could update our lexicon files to meet our personal needs.

P.S. "Open" is my least favourite button. Can't say how often i clicked it instead of "edit"...