Comment to 'Customizing for an Open Online Community Platform'
  • 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

      • Thank you very much for your assistance with my request; I truly appreciate it.

        I'm uncertain if the suggestion will work for me, so I'd like to clarify my requirements.

        I'm currently evaluating UNA because our existing platform no longer meets our needs. So far, UNA appears to be a good fit, but there's a crucial feature on our current platform that I'm unsure is available in UNA: the ability to automatically create posts/discussions via an external API.

        In our current setup, we create content on a separate system and use a cron job to post it to our platform. Is there a way to achieve this in UNA? If not, is there any documentation explaining the relationships between entities that need to be populated when creating a post/discussion? This is the main obstacle preventing us from transitioning to UNA.

        Thank you again.