Copied to clipboard

Flag this post as spam?

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


  • Peter S 169 posts 587 karma points
    Apr 15, 2014 @ 12:58
    Peter S
    0

    Recursive logotype in Razor

    Hi,

    I really suck at both Razor and Umbraco but I found this code to help me get a recursive logotype but all of a sudden it doesn't work anymore. Is there something wrong with it?

    @if (Model.Content.HasValue("Logotype", true))
    {
    var mediaItem = Umbraco.TypedMedia(Model.Content.GetPropertyValue("Logotype", true));
    <img src="@mediaItem.GetPropertyValue("umbracoFile")" alt="Logotype" />
    }
  • Peter S 169 posts 587 karma points
    Apr 15, 2014 @ 13:15
    Peter S
    0

    The exception given is "Could not create an index searcher with the supplied lucene directory".

  • Peter S 169 posts 587 karma points
    Apr 15, 2014 @ 13:39
    Peter S
    100

    The App_Data folder was not included in our SVN repository. Just deleted the content and it all worked fine after that.

Please Sign in or register to post replies

Write your reply to:

Draft