Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
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" />}
The exception given is "Could not create an index searcher with the supplied lucene directory".
The App_Data folder was not included in our SVN repository. Just deleted the content and it all worked fine after that.
is working on a reply...
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.
Continue discussion
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?
The exception given is "Could not create an index searcher with the supplied lucene directory".
The App_Data folder was not included in our SVN repository. Just deleted the content and it all worked fine after that.
is working on a reply...
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.