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