Showcase view vs Gallery View

Using the Developer module we are attempting to create new blocks with arrays using Showcase view. However, when we apply the showcase array logic to a modules block, for example browse active persons, it does not work. Where else in the coding do we need to make the change outside of the modules block.

  • 104
  • More
Replies (5)
    • Hello @Brand Harbor !

      Could you please specify the code which you applied there?

      • hi W@LeonidS

        here is an example of one instance where we tried to change the original code of browse... it broke the page. There are other instances where the original code had Gallery view and we tried the same. Same result.

        Title System

        _bx_persons_page_block_title_system_profile_favorites

        Title

        _bx_persons_page_block_title_profile_favorites

        array (

         'module' => 'bx_persons',

         'method' => 'browse_favorite',

        )

        and what we attempted to modify to read

        array (

         'module' => 'bx_persons',

         'method' => 'browse_favorite',

         'params' => 

         array (

          'unit_view' => 'showcase',

          'empty_message' => false,

          'ajax_paginate' => false,

         ),

        )

        • @LeonidS any feedback on the code I shared?

          • For the browse_favorite method your code doesn't contain the main argument - the profile_id of the person who views the Favorite people block. In this state, your code gives the error 500. You may pass the 0 then UNA will insert the id of the viewer.

            So it should have the look like:

            array (
             'module' => 'bx_persons',
             'method' => 'browse_favorite',
             'params' => 
             array (
              0 => 0,
              1 => 
              array (
               'unit_view' => 'showcase',
               'empty_message' => false,
               'ajax_paginate' => false,
              ),
             ),
            )
            
              Login or Join to comment.