drupal-blocks

Modifying drupal block text

不羁的心 提交于 2019-12-11 17:34:29
问题 I have a new drupal site on which to work. And i see things like that : print render($page['content_top']); I would like to change the content of 'content_top' in the drupal administration, but I'm totally new at drupal and don't find where it is. Can someone help me on this? 回答1: You didn't provide much information (what type of content is currently there, what content you want there, or what version of Drupal you are running), but I will go ahead and assume you want to place a new block in

Drupal 7: how to filter view content (with entity reference field) based on current page content

被刻印的时光 ゝ 提交于 2019-12-11 10:22:44
问题 in my drupal 7 I have 2 content-types like these: ContentA ContentB (with a field Entity Reference to ContentA) In the front-end detail page of ContentA, I would love to show a block/view with a list of ContentB whose Entity Reference field is set to the current ContentA. I made a view of type Block and added it correctly to the page, but I cannot filter ContentB based on the current ContentA. Could you help me? Thanks 回答1: You should add a contextual filter for the value you will use for