Adding a Text page block

I'm trying to add a second Text page block to the organizations page 'view profile'.

I've added a new textarea field 'bio' to the organizations form, and I also created a new display 'extra_description'. I then enabled the new field 'bio' on the display 'extra_description'.

now, I'm trying to add a new service block as follow:

array (
  'module' => 'bx_organizations',
  'method' => 'entity_text_block',
  'params' => 
  array (
    0 => '0',
    1 => 'extra_description',
  ),
)

it sounds that 'entity_text_blick' does not accept 'display' parameters. is there anyway around to get the new text field 'bio' to appear in a page block?

  • 429
  • More
Replies (3)
    • Hi. There's no need to create a separate block for such fields. All of them will be displayed in the Info block on the View Profile page or the Info page itself.
      You only need to enable the field on these displays.

      • Hello Scholar !

        As the addon to the previous answer, I may say that the serviceEntityTextBlock method works only with 1 argument - the content id. The new form display will require adding the new code. You'd better call the "View Info block" twice and hide the fewer fields in the second with the javascript.

        • I will provide the solution.
          The service code should look like this:
          array (
            'module' => 'bx_persons',

            'method' => 'entity_info',

            'params' => 

            array (

              0 => '{content_id}',

              1 => 'persons_bio',

            ),

          Login or Join to comment.