Tutorial: Displaying recent blog posts in the Developer Portal

You can display information for your five most recent blog posts on the front page of the Developer Portal.

Before you begin

You must have administrator access to complete this task.

About this task

You can display the following information for your recent blog posts on the front page of the Developer Portal:
  • Summary of the blog
  • Title
  • Author
  • Date when it was published

By displaying your five most recent blog posts, you can maintain the communication of important or useful information easily with users of the Developer Portal.

Procedure

  1. To enable the module that is required to display the blog posts:
    1. On the administrator dashboard, click Modules.
    2. Locate and enable the views_ui module, then click Save configuration.
  2. To create the view and block where your blog posts are displayed:
    1. On the administrator dashboard, click Structure > Add new view.
    2. Enter a name for your view in the View name text field.
    3. For the Show, of type, and sorted by drop down lists, selecting the following options:
      • Content
      • Blog entry
      • Newest first
    4. Ensure that the Create a page check-box is not selected.
    5. Select the Create a block check-box.
    6. Enter a title for your block in the Block title text field.
    7. In the Display format section, ensure that the type of unformatted list that is selected is teasers.
    8. Ensure that without links and without comments are selected for the resulting two drop-down lists.
    9. Click Save & exit.
  3. To display the view and block that you have created:
    1. On the administrator dashboard, click Structure > Pages, then click Edit for the welcome page.
    2. In the welcome window, click Content in the list on the left.
    3. For the section of the front page that you would like to display your blog posts on, click the edit icon Settings icon, then click Add content.
    4. Click Miscellaneous, then select the block that you have created from the list.
    5. Optional: If you want to add a title that is different to the one that is specified in the block, select the Override title check box and enter a title in the adjacent text field.
    6. Click Finish, then click Update and save.
      Note: To improve performance in the Developer Portal, you can disable the Views UI module after you have completed the tutorial.