Application type "news": Allow that topics with the latest comments go up

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Application type "news": Allow that topics with the latest comments go up

Jose - russianforfree.com
Hi everyone,

I have changed my application to "news" because it has a clean layout I like, with a big title and small preview of the topic. The only thing I don't like is that topics pile up by date of creation (which is logical for a newspaper or a blog after all).

Is there anything I might have missed that could allow me to do what I want? I want to see on top those topics with the latest comments regardless of when the topic was created, so it behaves like a forum but with the layout of News.

Thanks!
Jose
Reply | Threaded
Open this post in threaded view
|

Re: Application type "news": Allow that topics with the latest comments go up

Pedro
Hi,
go:
1- At the bottom of your app->See how NAML generates this page.
2- At the engine wheel -> "Search for macro" .
3- Macro by name -> search for "news_table" .
4 - news_table -> "override this macro" .
Your original macro is:
<macro name="news_table">
    <table id="news-table" class="news-table medium-border-color">
        <n.page_node.topics_list.
            sort="pinned-and-root-node-date"
            start="[n.app_index_record/]" 
you have to change your "sort" attribute. Replace with this:
<override_macro name="news_table">
    <table id="news-table" class="news-table medium-border-color">
        <n.page_node.topics_list.
            sort="pinned-and-last-node-date"
            start="[n.app_index_record/]" 
See if it is what you want.
My test forum.