Join the social network of Tech Nerds, increase skill rank, get work, manage projects...
 
  • Get nodes with the same taxonomy as the current node

    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 498
    Comment on it

    Use following steps to create a similar content block for a particular content (Similar contents work on the basis of taxonomy. So first create a taxonomy and assign this to your content type):

    1: Create a view with block view.

    2: Set field and format setting whatever is your requirement

    3: Add a contextual Filters "Content: Has taxonomy term ID"

    4: Configuration on this filter: WHEN THE FILTER VALUE IS NOT AVAILABLE - Provide default value - Type: Taxonomy Term ID from URL - under that, check the box "Load default filter from node page, that's good for related taxonomy blocks." - now under vocabularies check the boxes of the taxonomies you want involved here.

    5: Now you need to add the second filter in order to exclude the current node from the list by adding "Content: Nid" contextual filter.

    6: Set the WHEN THE FILTER VALUE IS NOT AVAILABLE to Provide default value.

    7: Set the default argument type to Content ID from URL.

    8: Go to MORE at botton , and check the Exclude box to make sure this node is not shown in the list.

    9: Move Content: Nid filter to the top position.

    10: Save the view and add this block from block list to a particular region.

 0 Comment(s)

Sign In
                           OR                           
                           OR                           
Register

Sign up using

                           OR                           
Forgot Password
Fill out the form below and instructions to reset your password will be emailed to you:
Reset Password
Fill out the form below and reset your password: