Hi
I have this themplate that i use in Item Publisher to publish item list. The thing is, I want to publish only one item at a time - order by random. I have previously got some help on the forum doing this, using razor template. Would really appreciate someone telling me how to do this in this specific scenario.
The html template is as follows.
<!--@If(ItemPublisher:Items.Any=True)-->
<!--@LoopStart(ItemPublisher:Items.List)-->
<!--@If Not Defined(ItemPublisher:Item.CanEdit)-->
<div class="col-md-4 col-sm-4">
<div class="front_lesandi_text">
<div id="mot_lesandi" title="Møt Lesandi" class="dwcontent"></div>
<H2><font class="font_sans_serif"><!--@ItemPublisher:Item.Yvirskrift_Linja_1.Value--></font> <br /><!--@DwTemplateTags-->
<font class="font_serif"><!--@ItemPublisher:Item.Yvirskrift_Linja_2.Value--></font></H2> <!--@ItemPublisher:Item.Tekstur-->
<br /><br />
<a class="btn btn-lg btn-primary" role="button" href="#">Les meira</a>
</div>
</div>
<div class="col-md-8 col-sm-8">
<!-- <div class="js-video [vimeo, widescreen]"> -->
<!--@ItemPublisher:Item.Video.Value-->
<!-- </div> -->
</div>
<!--@EndIf(ItemPublisher:Item.CanEdit)-->
<!--@LoopEnd(ItemPublisher:Items.List)-->
<!--@EndIf-->
Appreciate your help