Copied to clipboard

Flag this post as spam?

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


  • Harro Riedstra 3 posts 73 karma points
    Oct 06, 2016 @ 08:26
    Harro Riedstra
    0

    Scribble Maps - embed in umbraco site?

    Hi All,

    Rather new to umbraco. Trying to get a scribble map embedded in our website, but umbraco says it is not supported. Would anyone know if there is a workaround to embed such a map? Or would you know an alternative mapmaker?

    My map needs to show pins in a number of location with a short text explanation when clicking on the pin - so nothing too complicated I would say.

    Thanks!

  • Alex Skrypnyk 6182 posts 24283 karma points MVP 8x admin c-trib
    Oct 06, 2016 @ 10:59
    Alex Skrypnyk
    0

    Hi Harro,

    What do you mean Scribble Maps?

    Can you share code example?

    Thanks,

    Alex

  • Harro Riedstra 3 posts 73 karma points
    Oct 06, 2016 @ 18:12
    Harro Riedstra
    0

    Thanks for your reply Alex.

    Scribble maps: www.scribblemaps.com.

    When you make a map you get the following embedding / sharing optionsenter image description here

    or an embedding code

    hope this helps?

    Thanks in advance Harro

  • Dennis Aaen 4500 posts 18255 karma points admin hq c-trib
    Oct 06, 2016 @ 19:29
    Dennis Aaen
    1

    Hi Harro,

    Okay since you have an iFrame, then I would add a textarea to your document type, so the editors can add the iFrame code on the page. https://our.umbraco.org/documentation/getting-started/backoffice/property-editors/built-in-property-editors/#textarea

    When you have done this then add the iFrame code on the page, and then write out the value on the template or a partial view using Razor code.

    You could use code something like this:

    @{       
       if (CurrentPage.HasValue("documentTypeAlias")){
           @Html.Raw(CurrentPage.documentTypeAlias)
       }           
    }
    

    Remeber to change the "documentTypeAlias" so it match your alias for the field.

    If you want to use strongly typed Razor then you can use this code. The code above is dynamic Razor code.

      @{
       if (Model.Content.HasValue("documentTypeAlias")){
           @Html.Raw(Model.Content.GetPropertyValue<string>("documentTypeAlias"))
       } 
    }
    

    Hope this helps,

    /Dennis

  • Alex Skrypnyk 6182 posts 24283 karma points MVP 8x admin c-trib
    Oct 09, 2016 @ 09:08
    Alex Skrypnyk
    1

    Hi Harro and Dennis,

    Also you can add it like macro to your rte I think.

    https://our.umbraco.org/documentation/reference/templating/macros/

    Hope it will help.

    Thanks,

    Alex

  • Harro Riedstra 3 posts 73 karma points
    Oct 10, 2016 @ 16:54
    Harro Riedstra
    0

    Thanks for your replies All. Reading the links you provided, I realised I lack a huge amount of knowledge to properly work with umbraco. Will have to read up first to be able to follow your advices at all.

    Best Harro

  • Dennis Aaen 4500 posts 18255 karma points admin hq c-trib
    Oct 11, 2016 @ 07:10
    Dennis Aaen
    1

    Hi Harro,

    If you want to learn more about Umbraco CMS, then I would recommend you to have a look at Umbraco TV. Here you will find videos that shows the basic concepts of Umbraco CMS, and how to work with this.

    Some of the videos are free to watch, and some requires that you are subscribing to the service. You can see the different plans https://umbraco.tv/plans-signup/ and videos here. https://umbraco.tv/videos/umbraco-v7/

    Hope this helps,

    /Dennis

  • 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