Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hi can you help me how to show from latest to first in blog archive page, What to change heere ? #72

Open
SarajevoNo1 opened this issue Mar 21, 2018 · 3 comments

Comments

@SarajevoNo1
Copy link

Hi can you help me how to show from latest to first in blog archive page, What to change heere ?

startOfMonth(); $toDate = clone $fromDate; $toDate->modify('+1 '.$range); $pages = PageBuilder::categoryFilter('post_date', [$fromDate, $toDate], ['view' => PageBuilder::block('category_view'), 'match' => 'in', 'renderIfEmpty' => false]); $archive = ($range == 'year') ? 'Year ' . $fromDate->format('Y') : $fromDate->format('F Y'); } catch (\Exception $e) { $pages = []; $archive = 'None'; } ?>
@chadanuk
Copy link
Contributor

@SarajevoNo1 The ordering can be managed through the admin. As long as you've got a date block on your blog template you can then manage the ordering through the group options in the admin

@SarajevoNo1
Copy link
Author

SarajevoNo1 commented Mar 21, 2018 via email

@chadanuk
Copy link
Contributor

Hi @SarajevoNo1, it depends on your group page set up, click the group list icon
screen shot 2018-03-22 at 08 59 29

Then click the 'Edit group Settings' button:
screen shot 2018-03-22 at 08 59 36

Then you can set the order based on blocks on the post templates:
screen shot 2018-03-22 at 08 59 53

Hope that helps!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants