Jojodae Ganesh Sivaji
May 6, 2013
Every small finding is worth sharing. This blog post is not except for this fact. Drupal ships with a module for blogging for a long time. This mighty module offers a potential multi-user blogging feature to the Drupal site. This is an essential module for most content publishing sites. 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 is restive permission for other operations like edit, delete, etc., The created blogs are listed in the path ?q=blog (or full path https://example.com/blog) registered in the module.
This is fine. But how do I change the number of posts to show on the https://example.com/blog page? I had to answer this question recently. Because we noticed that 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 the site is accessed from Mobile/Tablet devices.
The answer found was a bit surprising (and could be misleading to site administrators).
The configuration option to change this number has been positioned at the Site information path https://example.com/admin/config/system/site-information, it is the "Number of posts on front page" field value that needs to be changed for the same :)
Though the settings title reads "Frontpage" it does seem to have reflected in the blog page as well. Often these settings might be ignored as Frontpage in most of the sites is custom-built, changing this value to 30 or 20 doesn't make any difference to the front page. This is certainly misleading from my point of view and might need a usability review/fix. I hope this will be addressed in Drupal 8 and could be more flexible with the introduction of the Views module into the core.
Just like how your fellow techies do.
We'd love to talk about how we can work together
Take control of your AWS cloud costs that enables you to grow!