Hiển thị RSS Feed cho Drupal Block

Hiển thị RSS Feed cho Drupal Block

In this tutorial we'll show you how to place an RSS feed inside a block. You can then display that RSS feed anywhere around your theme. We don't need any extra modules this week as we'll be using the core Aggregator Module:

Setting up the Aggregator Module

First of all, we're going to set up the Aggregator module so that it can handle the RSS feeds for us.

Drupal Aggregator Module
Drupal Aggregator Module

  • Step 1: Go to Administer >> Site building >> Modules. Check the box next to "Aggregator" and click Save Configuration.
  • Step 2: Go to Administer >> click "By module" at the top.
  • Step 3: Find the "Aggregator" area right at the top and then click on "Feed aggregator":
  • Step 4: Click "Add Feed" along the top and enter the address of your RSS feed:
  • Step 5: Click "Save" and then "update items". That will load the latest articles from your RSS feed.

Placing the RSS Feed in a Block

Now that Aggregator is handling the RSS feeds for us, we'll go and place it into a block on our site:

Showing an RSS Feed in a Drupal Block

  • Step 6: Go to Administer >> Site building >> Blocks. Scroll down to find the block with the same name as the feed your created in Step 4. Aggregator has automatically created this for you.
  • Step 7: More than likely, you will need to click "Configure" next to the block and choose a new title. Aggregator creates a default title of "[feed name] feed latest items".
  • Step 8: Publish the block and check to see how it looks on your site:
Bạn thấy bài viết này như thế nào?: 
No votes yet
Ảnh của Tommy Tran

Tommy owner Express Magazine

Drupal Developer having 9+ year experience, implementation and having strong knowledge of technical specifications, workflow development. Ability to perform effectively and efficiently in team and individually. Always enthusiastic and interseted to study new technologies

  • Skype ID: tthanhthuy

Tìm kiếm bất động sản

 

Advertisement

 

jobsora

Dich vu khu trung tphcm

Dich vu diet chuot tphcm

Dich vu diet con trung

Quảng Cáo Bài Viết

 
Trải nghiệm Chromebook theo cách riêng của bạn

Trải nghiệm Chromebook theo cách riêng của bạn

Chromebook là một thiết bị di động được thiết kế riêng cho những người sống trên web. Với ưu điểm như thời lượng pin khủng, trọng lượng siêu nhẹ và bảo mật dữ liệu trên mạng nên đặc biệt thích hợp với những người thường xuyên online.

Có cần thiết lấy Acquia Certified Drupal Developer exam ?

Có cần thiết lấy Acquia Certified Drupal Developer exam ?

In the very recent period this new thing popped up in the Drupal community that has everybody talking: the Acquia certification for Drupal developers. I'm writing this article minutes after actually taking this exam to share with you my impressions.

One of the most common complaints we get from newcomers to Drupal is that easy, good-looking themes are hard to find.

10 Easy, Beautiful Drupal Themes

One of the most common complaints we get from newcomers to Drupal is that easy, good-looking themes are hard to find.

Công ty diệt chuột T&C

 

Diet con trung