Comment 'Hello Peter !You may...' to 'Una Macros & Poll module'
  • Hello Peter !

    You may write:

    { {~bx_polls:get_block_poll_answers[insert poll ID here]~} }
    { {~bx_polls:get_block_poll_results[insert poll ID here ]~} }

    The first one shows the available answers, the second - poll results.

    • Are Macros in dev service blocks allowed?

      Tried a service block in studio/dev/pages/homepage and entered the macro { {~bx_polls:get_block_poll_answers[...]~} } 

      I get the message TOKEN expired. So the Block will not be saved. 

      • No, in the Developer app you should use the code like (Content field of the block):

        array (

          'module' => 'bx_polls',

          'method' => 'get_block_results',

          'params' => 

          array (

        0 => {poll_id}

        )

        )

        • Sorry LeonidS, just to inform You, Dev dont let me create a service block with this code. The saving process becomes endless and finally the new created block is not saved. 

          I have entered the right [poll_id]

          note. actually not really urgent but may be in some weeks...