Copied to clipboard

Flag this post as spam?

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


  • Mikkel B. Mikkelsen 52 posts 81 karma points
    Dec 18, 2012 @ 15:21
    Mikkel B. Mikkelsen
    0

    Issue rendering macro content in RTE

    Running umbraco v 4.11.1 (Assembly version: 1.0.4715.27659)

    As the title says, I'm having an issue where any content i stuff into a macro won't render in the rich text editor. And before you ask, yes, "render content in editor" is checked for all the macros involved. To better show what my issue is, here are a couple of images.

    What was supposed to be shown here were two images and a youtube embed. Here's a codesample from the SideBarImage macro.

    @{
    var mediaId = Parameter.image;
    var caption = Parameter.imageCaption;
    var imgUrl = Model.MediaById(mediaId).umbracoFile;
    }
    <figure class="breakoutImage">
    <img src="@imgUrl" alt="">
    @if(!string.IsNullOrEmpty(caption))
    {
    <figcaption>@caption</figcaption>
    }
    </figure>

    What really baffles me is that it did actually work sporadically for a while, and nothing significant has changed in the solutions. Something tells me this might be a permissions issue, but I haven't been able to figure out what exactly is going wrong. NETWORK_SERVICE, IUSR and IIS_IUSRS all have full control over the folder containing the website. The site has full trust in the IIS as well. I'm stumped, can anyone help?

  • Mikkel B. Mikkelsen 52 posts 81 karma points
    Dec 18, 2012 @ 15:25
    Mikkel B. Mikkelsen
    0

    Since the edit function isn't working apparently, here's the image http://i.imgur.com/xUIQD.png

  • Mikkel B. Mikkelsen 52 posts 81 karma points
    Dec 18, 2012 @ 15:43
    Mikkel B. Mikkelsen
    0

    Here's a quick update. I discovered that it actually works fine as long as i access the development site directly via ip/port number.

    The site has two bindings in IIS:

    projectname.dev.local port 80 *

    port 9110 *

    That's a blank binding if anyone is in doubt. So when I access the site by 192.168.1.1:9110 the macro content renders just fine in the RTE.

    In my host file i have configured projectname.dev.local to point to 192.168.1.1, and accessing the site this way breaks the macros showing in the RTE.

    If anyone has an answer as to why this happens, I'd be very interested in knowing.

     

    edit: I've also noticed that the nodes containing the macros take a long time to load in the backend for editing, compared to nodes with a rich text editor without inserted macro content.

Please Sign in or register to post replies

Write your reply to:

Draft