Copied to clipboard

Flag this post as spam?

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


  • Bora B 32 posts 124 karma points
    Jun 11, 2022 @ 20:25
    Bora B
    0

    Showing a custom label in backoffice

    Dear All,

    I want to show the editors a custom label in backoffice.

    The label needs to show the URL of the page and a querystring with the value of another property on the page like below:

    domain.local/test/?m=xxxx

    xxx will be the value of another property.

    The editor needs to copy this URL to send it by whatsapp, sms etc.

    Could someone help me with that?

    Thanks

  • Arjan H. 226 posts 463 karma points c-trib
    Jun 11, 2022 @ 21:25
    Arjan H.
    0

    Just create a custom read-only property editor:

    https://our.umbraco.com/documentation/Tutorials/Creating-a-Property-Editor/

    Check out the source code for the ‘Limbo SEO’ package to see how you can look up and use the value of another property on the document type to build the URL.

    https://github.com/limbo-works/Limbo.Umbraco.Seo/blob/v2/main/src/Limbo.Umbraco.Seo/App_Plugins/Limbo.Umbraco.Seo/Scripts/Controllers/Preview.js

  • Lee Kelleher 4026 posts 15837 karma points MVP 13x admin c-trib
    Jun 12, 2022 @ 06:30
    Lee Kelleher
    100

    Hi Bora,

    You could try the Render Macro label from my Contentment package?

    https://github.com/leekelleher/umbraco-contentment/blob/develop/docs/editors/render-macro.md

    The Macro would be a Razor view, you'd have access to contextual page data, to display the URL/link as you need it.

    Cheers,
    - Lee

  • Bora B 32 posts 124 karma points
    Jun 12, 2022 @ 09:51
    Bora B
    1

    Thank You Lee! This saved the day.

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies