asp.net mvc - Include script in orchard cms partiall view? -
i have partial view in orchard cms have include, problem when include using script page not loading?
here partilla view called
list-projectionwidget.cshtml
@using orchard.mvc.html; @using orchard.ui.resources; @using (script.head()) { <style type="text/css"> .featureslider li { height:@(model.group.groupheight)px; width:@(model.group.groupwidth)px; background-color:@(backgroundcolor); } .featureslider li h2, .featureslider li h3, .featureslider li h2 a, .featureslider l1 p.slidenumbers { color:@(foregroundcolor) !important; } .featureslider li span { width:@(model.group.imagewidth)px; height:@(model.group.imageheight)px; } .featureslider li span img, .featureslider li span img { width:@(model.group.imagewidth)px; height:@(model.group.imageheight)px; } div#slidenav a.activeslide { background-color: @(foregroundcolor); } .featureslider li p { position: relative; top:@(model.group.groupheight - 25)px; } .headline { padding-top: @(model.group.headlineoffsettop)px; } .headline, .headline + h3 { padding-left: @(model.group.headlineoffsetleft)px; } </style> } using (script.foot()) { } @foreach(var item in model) { string text = system.text.regularexpressions.regex.replace(item.contentitem.bodypart.text, "<.*?>", string.empty); @text <br /> foreach(var sub in item.contentitem.slideritem.picture.mediaparts) { @sub.mediaurl <br /> } @item.contentitem.slideritem.link.value <br /> @item.contentitem.slideritem.link.text <br /> <br /> }
but not loaing view blank? if removescripts head annd foot, working ok? problem?
Comments
Post a Comment