1

I would like to display some content fields in a separate block so that I can manage the position of these like other blocks and also put them near to other blocks such as the search widget.

I am using display suite for laying out the content but don't think that this will serve my requirement to position some content fields further away from the the main content. One specific example I have is displaying the content's taxonomy fields below the search widget (which is in a block).

  • Block reference and node reference might be options to consider. – therobyouknow Jul 1 '13 at 10:20
1

Oh no! Please no Field Blocks or CCK Blocks or Views. Just use Display Suite and enable the "Display Suite Extras" module so that you can create DS Regions. With DS Regions it's possible to create a new region which is exposed as a block.

| improve this answer | |
  • I will give a +1 (and maybe change accepted answer to yours), if you have a link to a guide or point me to where I would turn this on - e.g. in the 'manage display' section for the content type? (I already have display suite extras enabled but can not see how I can use it to make some fields appear in a separate block so that I can control this separate block in admin/structure/blocks ) – therobyouknow Jul 1 '13 at 13:00
  • Found the answer - to turn on "region to block" go to yoursite.com/admin/structure/ds/list/extras Then click the bottom tab 'other disabled' and check the 'region to block' check box and go from there. (where yoursite.com is your site - replace this with that) – therobyouknow Jul 2 '13 at 8:31
  • 1
    This screencast is from the maintainer of Display Suite (swentel) – youtube.com/watch?v=y4wyjxyhbNA – yannickoo Jul 2 '13 at 14:47
2

You could create a view which selects the field you want from a node. Use contextual filters to get the Node Id in your view.

| improve this answer | |
  • +1 thanks @Lance. I think Field as Block in another answer is what I will go for at the moment but thanks for your answer as it may be useful for other scenario and if I have needs beyond what Field as Block provides. – therobyouknow Jul 1 '13 at 10:59
2

Field as Block is a really simple module that lets you display fields in blocks.

Beyond that, you may want to investigate Panels (and related modules) which is a much more powerful but also much more complicated solution.

| improve this answer | |
  • I enabled the module but can't see the 'display as block' option in the managedisplay. Please advise. – therobyouknow Jul 1 '13 at 11:16
  • Sorry @pjcdawkins I had to move from your accepted answer to yannickoo as display suite module does what I am looking for and more. Display suite apparently includes the same kind of fuctionality as field as block Also, I am already using display suite and this appears to be incompatible with field as block and given that display suite does this functionality anyway I have chosen that. See issue here: drupal.org/node/2032195#comment-7604303 However in consolation I have upvoted some of your other posts. – therobyouknow Jul 2 '13 at 9:40

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.