Score:0

I get a block that doesn't change on other pages

us flag

I have an issue with the contextual filters when I use Content: ID. On the site I get a repetitive, when there are many more recipes.

The block remains the same, with two recipes, which is fine, but they don't change on another page. It's always the same.

I hope this makes sense.

Recipes

Block

Contextual Filter

Recipes

Main Issue

beltouche avatar
cn flag
You're only getting two items because you've set your View to only display two items. You're getting those two because you're sorting by creation date desc. Those must be the last two created. When you add more recipes, those will show up instead. I don't know what you're using the contextual filter for.
apaderno avatar
us flag
Welcome to Drupal Answers! As @beltouche said, the block is set to show the last two created recipes. Since there aren't other restrictions, such as "don't show the link for the currently viewed node," that block will show the same two links for every page where the block is shown, until a new recipe is created. You also added the contextual filter, but the view isn't using it.
us flag
Ok. Thank you very much! Yes the contextual filters with ID is now working.
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.