Make a "Guess what you Like" list using Similar by References

Source: Internet
Author: User

The content of Web pages is more and more rich, on the page to display some of the current page related "Guess you like" or "related content" is a common needs of various sites. For example, when buying books on the internet, they will most likely recommend similar books below the page. Depending on the structure of the site, there are many modules in Drupal that can be used to "guess what you Like" features. Today, this article introduces the Similar by References module.

Similar by References works based on the Entity Reference field, which shows the content associated with the current node through the view. Once the module is installed, you can enter the structure > view to configure the Similar by References view.

The default view settings provided by the module have done most of the work, and the next step is to go to the advanced area of the view settings and set the fields used for the associated content in the contextual Filter.

Once the field is set, the Similar by References view Chunk is assigned to the node page as you would any other chunk to see its effect. There are a number of ways to allocate chunks, such as using the Drupal kernel's own chunk management capabilities, using the context module, using panels, using Display Suite, and so on. Select the method you are familiar with to assign chunks to the specified area.

is an example of using the Similar by References module:

If the content of the site is large, the module will be very slow to perform database queries, you can refer to the "How to optimize the speed of the Drupal Web site Super simple way, you ignore how much?" The method is cached on the view.

While it takes a bit of effort to configure the "Guess your likes" list that best fits your site's results, for many Drupal users, it's great to use the Similar by References module to make a simple "guess what you like" chunk without writing code!

Original title: Use Similar by References to make "guess what you Like" list

Original address: http://drupalct.org/drupal-site-building/add-related-content-by-similarbyreferences-module.html

Make a "Guess what you Like" list using Similar by References

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.