Changing the number of blog posts to show in blog page
Every small finding is worth sharing. This blog post is no except for this fact. Drupal ships with a module for blogging since a long time. This mighty module offers a potential multi-user blogging feature to Drupal site. This is an essential module for most of the contents publishing site. Blog content has been architectured to leverage node. A new blog can be created by any user with permission "Blog entry: Create new content" as of Drupal 7. Of course there are restive permission for other operations like edit, delete, etc., The created blogs are listed in path ?q=blog (or full path http://example.com/blog) registered in module.
This is fine. But how do i change the number of posts to show in http://example.com/blog page? I had to answer this question recently. Because we noticed that in one of the sites we maintain had a bit more than we expected, (about 30), and makes the page size closer to 1MB. This becomes a concern when site is accessed from Mobile/Tablet devices.
The answer found was bit surprising (and could be misleading to site administrators).
The configuration option to change this number has been positioned at Site information path http://example.com/admin/config/system/site-information, it is "Number of posts on front page" field value that need to be changed for the same :)
Though the settings title reads "Front page" it does seem to have reflected in blog page as well. Often this settings might be ignored as Front page in most of the sites are custom build, changing this value to 30 or 20 doesn't make any difference to front page. This is certainly misleading from my point of view, and might need usability review/fix. I hope this will be addressed in Drupal 8 and could be more flexible with the introduction of Views module into core.
- How to make Apache faster for Drupal
- Breadcrumbs with Hansel module-2: Steps to create Breadcrumbs for all scenarios
- How to redirect an user after logging into a drupal 7 site?
- How to display a registration form in overlay on loading a page?
- Manual AWS Autoscaling without Elastic Beanstalk
- How to move AWS EC2 Instance from one account to another