Page Blocks code
Is there any place that you have documentation on everything available for use in the code section of the blocks.
This kind of stuff.
array (
'module' => 'bx_persons',
'method' => 'browse',
'params' =>
array (
0 =>
array (
'mode' => 'recent',
'params' =>
array (
'unit_view' => 'showcase_wo_info',
),
),
),
)
-
-
·
Alex T⚜️
- ·
We have autogenerated documentation and there is separate section for service calls:
https://ci.una.io/docs/service.html
However not all methods are described there.
Another way to find docs for service methods is to look for description in the code, methods for service blocks start with 'service' keyword, so to find 'browse' service block in the code you need to look for 'serviceBrowse' method:
-
·
Alex T⚜️
-
- · A Person
- ·
Found the references but I still don't get.
I click albums on the Space's submenu - that brings up slider of the images - click on an image https://www.wildandrunningfree.com/page/view-album-media?id=55 -
Now on this page I want to add a block for Posted In - just like the block Posted In for the view Album page.
https://www.wildandrunningfree.com/page/view-album?id=7 (Album > View Image).
The block on the View Album Page has this code
array (
'module' => 'bx_albums',
'method' => 'entity_context',
)
So I tried this and various permutations - but no luck.
array (
'module' => 'bx_albums',
'method' => 'entity_context',
'params' =>
array (
0 => '{profile_id}',
1 =>
array (
'empty_message' => true,
),
),
)
Documentation has this
BxBaseModTextModule::serviceBrowseUpdated ( $sUnitView = false, $bEmptyMessage = true, $bAjaxPaginate = true ) I also see a reference to profile_id and content_id (it that is the way it is written)
It is a single image - no pagination . - only code reference to pagenation is
'per_page' => 'bx_albums_per_page_profile',
Not for sure about unit_view -
Any advice because I am lost.
-
-
-
·
Alex T⚜️
- ·
Try to add service block with the following code on https://www.wildandrunningfree.com/page/view-album-media?id=55 page:
array ( 'module' => 'bx_albums', 'method' => 'entity_context', 'params' => array ( 0 => '{content_id}', ), );
-
·
Alex T⚜️
-
- · A Person
- ·
Thanks. I got closer than I thought. I just start going through BxBaseModTextModule. I will go through the HTML next. I have a good project coming up for UNA x-plans. I am trying to get myself up to speed. I am getting old - so it takes more time.