Hi DW,
I'm trying to render a news Manchet if it exists, and if not, render the first x chars. The code goes as like this
@if(!String.IsNullOrEmpty( l.GetString("News:Manchet") ) ) {
<div class="teaser">@l.GetValue("News:Manchet")</div>
} else {
<div class="teaser">@l.GetValue("News:FirstXChar")</div>
}
The code works fine, the problem is that the Manchet is completely blank, which means that it will always render my fallback "firstXChar". even though the "show teasertext" in the module is set to true, and the news actually have teaser/manchet texts set. Do you guys have any idea what this could be?
best regards.
Jonas