K
K
Ken Jee2018-09-13 13:20:45
MODX
Ken Jee, 2018-09-13 13:20:45

How to display a list of news and view a separate news using Collections in ModX Revo?

The Collections resource is used to display a list of news. This list is displayed on the site.ru/news pages.

<div class="col-12 col-md-6 col-lg-4">
    
    <a href="/">
        <img src="" alt="" class="img-fluid" />
        <h2></h2>
    </a>
    
    <p></p>
    
    <small class="text-muted"></small>
    
</div>

In the output chunk of the list, a link to a specific news item is formed as follows , and a URL like /news/my-item-news-1 is obtained. for /news, the news list output template works.
Actually, I'm a little confused here. Tell me how to organize the output of a list of news (taking into account the fact that the feed will have pagination) and how to display one specific news?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Dmitry Khristoev, 2018-09-13
@Haoss

Make a template News and apply for each news. Is not it?
Or use a template in the collection settings.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question