Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Lazau Florin 74 posts 210 karma points
    Apr 05, 2017 @ 13:58
    Lazau Florin
    0

    Umbraco - rename preview button

    Hi Guys,

    I would like to rename the preview button from back office in "Save and Preview" because actually, this is happening on the preview.

    Is this possible?

    Thanks, Florin

  • Jamie Pollock 174 posts 853 karma points c-trib
    Apr 06, 2017 @ 02:35
    Jamie Pollock
    101

    Hi Florin,
    If you want to provide overrides to the core Umbraco language files, you need to add elements to the already existing file for the relevant language located at ~/config/lang/{language}.user.xml.

    Create an area with the alias "buttons" then add a key with the alias "showPage" like so:

      <area alias="buttons">
            <key alias="showPage">Save and Preview</key>
      </area>
    

    This would go in the empty languages element.

    As these values are not the core CMS files they won't be modified when you upgrade Umbraco but if the Umbraco project does decide to change the key which it associates with this button your translation may not take affect. This is unlikely but please bear this in mind! :)

    You can find out more about language files on the Our Umbraco doc page.

    I hope this helped. :)

    Thanks,
    Jamie

  • Lazau Florin 74 posts 210 karma points
    Apr 06, 2017 @ 07:27
    Lazau Florin
    1

    Hi Jamie,

    Many thanks!

    This works for me.

    Florin

Please Sign in or register to post replies

Write your reply to:

Draft