timmyomahony / craft-matrix-field-preview

Configure a screenshot preview for all your matrix field blocks, giving your clients a better publishing experience.
https://plugins.craftcms.com/matrix-field-preview
Other
16 stars 4 forks source link

Matrix "New Entry" Label Setting Not Being Respected #131

Closed chadcrowell closed 1 week ago

chadcrowell commented 2 weeks ago

Craft 5...

My Matrix field setting for the "New Entry" label is set to "New Block" as shown here.

Yet my entry edit page says "New Entry" as shown here.

The plugin should respect this setting.

timmyomahony commented 1 week ago

I think this might be a bug. The plugin uses translation strings as of version 4.1.0:

https://github.com/timmyomahony/craft-matrix-field-preview/releases/tag/4.1.0

I have a feeling that the input you are using is now redundant and needs to be removed. In the meantime, could you try update the block text via a translation file?

That would involve creating a translation file translations/en/matrix-field-preview.php and adding:

<?php

return [
    "New Entry" => "New Block",
];
chadcrowell commented 1 week ago

That did the trick, thanks Tim.

timmyomahony commented 1 week ago

Thanks @chadcrowell I'll remove that settings field to avoid confusion in the future