Sort methods

Topics: Customizing Orchard
Dec 12, 2011 at 2:09 PM

Hi,

I want sort my articles in different criteria. Can i have some tips for it

1. Most Popular

2. Latest articles

 

How can i do this

 

lakmal

Coordinator
Dec 12, 2011 at 7:23 PM

For latest content there is this: http://gallery.orchardproject.net/List/Modules/Orchard.Module.Contrib.RecentContent

For most popular, this may help building the list: http://gallery.orchardproject.net/List/Modules/Orchard.Module.NGM.ContentViewCounter

Dec 13, 2011 at 3:29 PM

I want give user to Article searching facility,  Search  Tile and body text and list articles which has search worlds

Whats best way to do that?

Coordinator
Dec 13, 2011 at 4:19 PM

http://docs.orchardproject.net/Documentation/Search-and-indexing

Dec 13, 2011 at 5:15 PM

Hi,

I have a added search box to my pages, When i search there is result like this

There is one result

But i cant see any link, Just only above message. Why that?

 

 

Coordinator
Dec 13, 2011 at 6:45 PM

I don't know. Maybe that result does not have summary templates, or they are empty, or it has no data or you overrode something that you shouldn't have or who knows what else? Enable shape tracing, or attach a debugger.

Dec 14, 2011 at 6:48 AM

Hi,

I have create list view inside my view folder. Then both searching and reason content modules are working, This is my view/List.cshtml

@using Orchard.Core.Contents.ViewModels;
@using Orchard.Utility.Extensions;


@using Orchard.DisplayManagement.Shapes;
@{
    var list = Model;
    var items = list.Items;
    var count = items.Count;   
    
}
    <table class="items">  

    @foreach (var item in items)
    {
   
         <tr>           
                <td>             

                 @Html.ActionLink((string)item.Title, "Item",  new { item.ContentItem.Id })              
                
           
                </td> 
            </tr>    
    }
   </table>

I can see list of reason articles, When i click one of them Its searching item in following place

http://localhost:30320/OrchardLocal/Routable/Item/Item/139

I want make find it following url

http://localhost:30320/OrchardLocal/Articles/Item/139

 

How can i do that?

 

lakmal

 

Dec 16, 2011 at 4:16 AM

I have created video for this

 

http://youtu.be/5p-b_5QEsE8

http://www.youtube.com/watch?v=OYp83Fhc9EE&list=UUvL5nQvwd1JfN9UZI4UvX8A&index=2&feature=plcp