Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Orchard Query List Rendering - Remove ul li

I am using the latest version of Orchard and have created a projection widget of three articles. I would like to display them in source terms directly after eachother:

 <article>content</article>  
 <article>content</article>  
 <article>content</article>

i.e. not contained in a list

<ul>  
<li>  
<article>content</article>  
</li>  
<li>  
<article>content</article>  
</li>  
</ul>

How can I strip out the list tags but leave the articles? I don't know how to edit the Model.List in the ProjectionPart.cshtml, if this is even the right file to be editing!?

I would really appreciate any help anyone could give me?

like image 905
AndyD Avatar asked Jun 25 '12 14:06

AndyD


1 Answers

You can override the default behavior in your theme. As it commented Bertrand Le Roy you can find more info on these posts:

http://weblogs.asp.net/bleroy/archive/2011/03/27/taking-over-list-rendering-in-orchard.aspx

http://weblogs.asp.net/bleroy/archive/2011/05/23/orchard-list-customization-first-item-template.aspx

like image 92
manudea Avatar answered Dec 19 '22 04:12

manudea