Copied to clipboard

Flag this post as spam?

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


  • Marc 2 posts 71 karma points
    Apr 21, 2016 @ 14:32
    Marc
    0

    Description <a> tag with dynamic root for href

    Hey all,

    When writing a property editor description if I type:

    <a href="http://site.com/page"> Page </a>
    

    It will display as a link that the user can click, I want to be able to do this within the umbraco back office to link to specific nodes in the hierarchy that will no be removed. I can create an absolute link for the site url when it is live but I wish to test these in the development environment that has a different url.

    I have tried:

    <a href="~/page"> Page </a>
    <a href="../page"> Page </a>
    <a href="/page"> Page </a>
    <a href="page"> Page </a>
    

    All result in the a tag losing its href property and displaying

    <a> Page </a>
    

    Anyone have any ideas on how I could solve this issue, possible angular solution?

    Thanks,

    M

  • Dave Woestenborghs 3504 posts 12133 karma points MVP 8x admin c-trib
    Apr 21, 2016 @ 15:24
    Dave Woestenborghs
    0

    Hi Marc,

    Can you clarify some things for me.

    • What do you mean with a "property editor description".
    • How are you adding the link.
    • Do you have any code examples on what you are trying to do ?

    Dave

  • MarcC 49 posts 356 karma points
    Apr 21, 2016 @ 15:47
    MarcC
    0

    Hi Dave,

    Made the mistake of setting up a work and personal account, ill best to use this to continue the message.

    I am adding the tag into the property editor description field. (fig.1, fig.2)

    This will enable a partial view which is a composition on many document types to load a text area, I wish to beable to content manage the text within the partial on another nodes property. (SiteSettings in this instance).

    property editor setup

    property editor on document

    Purely as an excercise in better user experience in my opinion, all the pages can enable a sign up link at the bottom of the page if the property is enabled and the link will take the user to where they can amend the copy that is displayed.

    Hope this isnt too confusing.

    M

  • Dave Woestenborghs 3504 posts 12133 karma points MVP 8x admin c-trib
    Apr 22, 2016 @ 06:05
    Dave Woestenborghs
    0

    Hi Marc,

    Maybe you can use this package to achieve your goal : https://our.umbraco.org/projects/backoffice-extensions/ueditornotes/

    We use it in most of our projects

    Dave

  • MarcC 49 posts 356 karma points
    Apr 22, 2016 @ 07:24
    MarcC
    0

    Hi Dave,

    This looks nice but would require me to create a new property purely to link to an internal node. Cerntinely a solution but I may look into this a little further and see if I can embed an RTE to the discription box of the umbraco properties.

    Thanks for you time and help,

    M

Please Sign in or register to post replies

Write your reply to:

Draft