-
Hello @Olu Ade !
By default, the guests users in UNA can browse all your mentioned parts in the area. With the attempts to create new content they will get the message
NOT LOGGED IN USERS CAN'T 'CREATE NEW [item]'.
You may add the login block to every necessary "Create new" page via the Studio->Pages app and make it visible for the Unauthenticated level only.
See more details in our docs:
https://unacms.com/wiki/Studio
-
Yes, guess this link will help you https://unacms.com/wiki/Dev-API . Every app has the
BxBaseModGeneralModule::serviceEntityAdd
method
-
Thank you for your response. I reviewed the link and noticed that the method
BxBaseModGeneralModule::serviceEntityAdd($iAccount, $aValues)
requires two parameters. Could you provide an example of what should be passed to this method? I checked the documentation but couldn't find any relevant information. -
The method takes the profile ID as the first argument (it has the value of the result of the bx_get_logged_profile_id() function) and the array with values like
array( 'title' => 'your title', 'text' => 'text", )
The keys of this array should be in the list of the form's fields.
https://ci.una.io/docs/classBxBaseModGeneralModule.html#ab4caacfc70fdee0858e10345183d1426