Field settings/content in sidebar: how do i do this?
Request Type:
General Assistance
Forums:
Issue/Request:
could you point me in the right direction to set something up like on the page listed? it is a content type that has groupings that are filled out in the content type, but appear in the sidebar second region. i am trying to build this on another site and am getting stuck.
Hi Eamonn,
I think you are referring to the Related Links? If so, there are a few steps that you have to do. On this site, I set up Field Collections and used Block Regions to place that field in the sidebar.
But you can do this using the “Field as Block” module, which will allow you to tick a check box in the manage display settings to display that field as a block. You will then have to go to Structure > Blocks > scroll to the disabled blocks section, and find the field that you just created, then move it to sidebar second.
You do not have to use a Field Collection unless you need it; you can just create a field and then display that as a block. If you need the fields grouped as on the Giving site then you will need to enable the Field Collection and Field Collection Fieldset module.
After enabling the module, when you create the new field in the content type, select “Field collection” for the Field Type, and Fieldset for the Widget - you’ll be able to edit the settings to allow for multiple creations if needed. Once you create this field, the Machine Name will be clickable - click that and it will take you to the Field Collection (alternatively you can navigate to Structure > Field collections).
This looks like the typical content type creation page; just add the necessary fields and set the display if you need to hide labels, etc.
After creating your fields for the collection, go back to the content type where you placed the field collection, and in that manage display set the format to “Fields Only” and check the “display as block” box (*Note that the “display as block” title does not actually show up for some reason, you will just see the checkbox.) After that, navigate to the blocks admin page and place in the sidebar second region.
If this doesn’t work as intended, then I forgot a step and I’ll take a look :)
Alyssa