Copied to clipboard

Flag this post as spam?

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


  • Thomas Kjær Nielsen 58 posts 88 karma points
    Jan 26, 2012 @ 15:44
    Thomas Kjær Nielsen
    0

    Not showing up in RC3

    I just tested the package in RC3.

    While the install did complete and the package is in the App_Plugins folder, the datatype is not showing up in the UI.

    Any steps I have missed?

  • Alex Norcliffe 222 posts 287 karma points
    Jan 26, 2012 @ 16:00
    Alex Norcliffe
    1

    Looks like the package installs the property editor, but you then have to go and make a data-type that uses that property editor (it shows for me in the dropdown list when adding or editing a datatype)

    Great work Jorge!

  • J 150 posts 489 karma points
    Jan 26, 2012 @ 16:00
    J
    1

    Hi Thomas,

    Once the package is installed, then go to the developer section and right click Developer > Data types > Create. Give a name to the new data type and select "Markdown" from the dropdown list.

    To convert the markdown format to html, import the namespace Our.Umbraco.Web.PropertyEditors.Markdown and use the helper MarkdownHtmlHelper.MarkdownToHtml. For example, this is the code I'm using in /Views/Umbraco/Homepage.cshtml

    @inherits RenderViewPage
    @using System.Web.Mvc.Html
    @using Umbraco.Cms.Web;
    @using Our.Umbraco.Web.PropertyEditors.Markdown;
    @{
        Layout = "_DevDatasetLayout.cshtml";
        ViewBag.Title = DynamicModel.Name;
    }
    @section PageTitle
    {
        @DynamicModel.Name
    }
    
    @MarkdownHtmlHelper.MarkdownToHtml(DynamicModel.BodyText.ToString())
    

    Hope it helps

    Thanks

    Jorge

  • J 150 posts 489 karma points
    Jan 26, 2012 @ 16:04
    J
    0

    @alex Thanks for the feedback! :) How can I change the package so the Markdown data type gets installed as well?

  • Thomas Kjær Nielsen 58 posts 88 karma points
    Jan 26, 2012 @ 16:04
    Thomas Kjær Nielsen
    0

    Ahhh, of couse :-) Just like v4. #H5IS

    Works now!

Please Sign in or register to post replies

Write your reply to:

Draft