[SOLVED] How to control the order of the "News" page of a site?

Permalink
Hi everyone.

I know this is a very noob question, but I searched everywhere and I cannot understand where I should put my hands on. Probably because I know nothing of Concrete5, even if I have huge experience in other CMSs.

So... I have to manage a Concrete5 website that I did not develop. It's a simple blog/news site. On the homepage there are different kinds of articles etc... Then there is the "NEws" page. When you click on it, you would expect to find the list of all articles published. But there are just 9 news, the oldest ones.

I looked for some specific files in the template directory, but I did't find anything relevant.

How can I invert the order? I would like to have the newest first, of course. And a pagination system, are there no paginations in concrete5 by default?

Sorry for the long post.

avalentini
View Replies:
jakobfuchs replied on at Permalink Reply
jakobfuchs
If the news articles are displayed via the Page List Block Type this should be no problem. If they are not, you should be looking to convert them to be displayed via the Page List Block Type. You then have the ability to filter the displayed pages by parent page and order them in different ways (and much more).
fudyartanto replied on at Permalink Reply 1 Attachment
fudyartanto
Check attachment.

Click edit page, then edit the block.

Hope you use default page list block. If that is custom block or other block type.
Please upload your block code so we can help
avalentini replied on at Permalink Reply
avalentini
So this is the website, just for referencehttp://www.engage-magazine.co.uk.

When I am in the News page and I click on Edit, there is no block to edit. There is a Add to Main Content button, and I can create a new block from there. I fear that the code is hardcoded somewhere. Do you know what file could be?

If I am able to remove it, I can use a Page List block type and then customize it. I'll ask about that in another thread (if I can't find info in docs).
avalentini replied on at Permalink Reply
avalentini
So this is the website, just for reference http://www.engage-magazine.co.uk....

When I am in the News page and I click on Edit, there is no block to edit. There is a Add to Main Content button, and I can create a new block from there. I fear that the code is hardcoded somewhere. Do you know what file could be?

If I am able to remove it, I can use a Page List block type and then customize it. I'll ask about that in another thread (if I can't find info in docs).
jakobfuchs replied on at Permalink Reply
jakobfuchs
You will need to find out which template the page uses. Next you need to edit this template to either delete the hardcoded parts or change them. If you are going to replace the hardcoded parts with the page list block you will need to make a custom template or at least adjust the css to make it look the same as it was before.
avalentini replied on at Permalink Reply
avalentini
That's the point, inside the theme directory there are only files that do not contain this code.

I have default.php, home.php, news_entry.php, right_sidebar.php and view.php. None of these files contains the specific code (or query) that should generate it. That's why I thought it must have been some kind of "automatic thing" of Concrete5, like it happens with the archive pages in Wordpress (more or less).

I also looked into sub directories like elements. But I cannot find anywhere the query statement (or the $pl -> filterByCollectionTypeHanlde(...) declaration).
avalentini replied on at Permalink Reply
avalentini
Found it!

The developer put the code inside /single_pages/ in a file called news.php.

Damn.

This is not proper usage of Concrete5, right?
jakobfuchs replied on at Permalink Reply
jakobfuchs
Well, it's not entirely wrong but probably more complicated than it needs to be :)
fudyartanto replied on at Permalink Reply
fudyartanto
not wrong, in concrete you can create single page to handle something special. please read concrete singgle page. great you solve your problem.