Skip to content
Products
Apps
Docs
Log in
Log in
Sign up
Sign up
Products
Apps
Docs

Search by Keyword

Pages
View all
Dev API
Tasks
View all
?
Private content
Discussions
View all
Forum's Comments
View all
Problem displaying course after creating itAfter creating a course, I get this error. On the timeline and courses-home, the created course is visible, but when I click on it, the error appears again. What could be the problem?Fatal error: Uncaught TypeError: mb_substr(): Argument...
PavelS
PavelS
NEW MODULE IN BOONEX UNA-Nomenclaturei wish to create new module like persons and install , is there any steps,links do send.masters r called manage in una isit. una nomenclature is highly tedious for example module bx_persons fn entityinfo refering una files the same name...
Chetty
Chetty
How to make a new profile blockI have figured out how to make a profile entry in forms and doing the jiggling about required, so i can make a profile field, have the field appear on 'edit profile' and then the information inputed by the user appear into the 'info'...
Little Pockets
Little Pockets
How to add PARAMS to Service Calls?I'm trying to add a parameter for the entity_info service call to show specific fields of the persons_data table. Can someone help me with the syntax to write after 'params' => array() of the service call?
S
Scholar
"entity_info" service callI'm trying to modify the profile info block on the person's page. the service call used in the block is 'entity_info'. Where can I find the $iContentId PARAMS used for the 'persons' module so that I can add / remove the fileds appearing...
S
Scholar
LeonidS
LeonidS
UNA Team
Oct 2, 2020

You need to edit the modules\boonex\persons\classes\BxPersonsModule.php file and add after those lines:

    return false;

    }... See more

LeonidS
LeonidS
UNA Team
Oct 1, 2020

Well, it is the most proper way especially if you want to add smth more. But you may also to create your own serviceEntityInfo method in the BxPersonsModule class, but in this case, you will lose the automatic upgrade of this module. Then you need to keep your changes manually every time after the force upgrade procedure.

LeonidS
LeonidS
UNA Team
Sep 29, 2020

Hi all!

So let's review the existing "Info" block has the value of service method as 'entity_info'. It means that BxPersonsModule class has the method serviceEntityInfo which "draws" this block. This method is declared in the parent BxBaseModGeneralModule class and has the following view:

public function serviceEntityInfo ($iContentId = 0, $sDisplay = false)... See more

LeonidS
LeonidS
UNA Team
Feb 14, 2020

The method serviceEntityInfo has only 2 possible arguments, content id and display name:

public function serviceEntityInfo ($iContentId = 0, $sDisplay = false)

So call of it will have the following view (example with Persons Info block):... See more

LeonidS
LeonidS
UNA Team
Feb 13, 2020

You need to check from the BxBaseModGeneralModule class (modules\base\general\classes\BxBaseModGeneralModule.php) where this method serviceEntityInfo has been declared. Then go to _serviceEntityForm method which includes the call of _getContent method.