Oncord Community Logo
    • Recent
    • Popular
    • Register
    • Login
    1. Home
    2. dhondup
    3. Topics
    D
    • Profile
    • Following 0
    • Followers 0
    • Topics 3
    • Posts 5
    • Best 0
    • Controversial 0
    • Groups 0

    Topics created by dhondup

    • D

      How to bulk add posts?

      Oncord Discussion
      • • dhondup
      2
      0
      Votes
      2
      Posts
      255
      Views

      StephenBlignaultS

      Hi dhondup,

      There are several methods that could be used to bulk import posts, but it is a lot more trickier than the examples given in the bulk update scripts tutorial. But it can be done.

      Things to consider:

      Are all your imported posts going into the same post category, or different categories, or multiple categories? Will your posts link to pages, or products, or contacts or neither: link to no other resource - and live independently as just posts? Do you want to import your posts from a CSV file? If your imported posts are to additionally generate / create a Page, then you will need to have administrators login access when running the script (most likely this will be the case)

      As you can see there is lots of consider.

      But generally speaking, you should be able to generate a post using
      \Components\Website\Posts::save($arrEntity)
      https://www.oncord.com/developer/api/components/website/posts/

      If you would like further help with this, the team at Fuel can help writing an import script to suit your specific needs, especially if your posts need to link to web pages too. You can find our contact details in the link in my profile bio.

      Thanks

    • D

      How to integrate Zapier with Oncord

      Oncord Discussion
      • • dhondup
      2
      0
      Votes
      2
      Posts
      368
      Views

      jacobgreenawayJ

      @dhondup

      While I'm not intimately familiar with Zapier's interface and don't have access to an account to test thoroughly, my understanding is that something like the following should get you most of the way:

      Option One: Webhook Method

      Create a Zap in Zapier

      Log in to Zapier. Create a New Zap Set up the Trigger: Choose "Webhooks by Zapier" as the trigger app. Select "Catch Hook" as the trigger event. Copy the unique webhook URL provided by Zapier.

      Code Integration

      Create or Edit Your Form Define a PHP Function: In the PHP tab (SRC view), define a function to send data to the webhook URL. For example: function sendToZapier($formData) { $webhookUrl = "https://hooks.zapier.com/hooks/catch/123456/abcde"; // Your webhook URL $payload = json_encode($formData); $ch = curl_init($webhookUrl); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); curl_setopt($ch, CURLOPT_HTTPHEADER, ['Content-Type:application/json']); curl_setopt($ch, CURLOPT_POST, 1); curl_setopt($ch, CURLOPT_POSTFIELDS, $payload); curl_exec($ch); curl_close($ch); } Link the Function to the Form Submission: Use the onsubmitserver attribute in your form's HTML to call this function on form submission: <forms:form id="my_form" onsubmitserver="sendToZapier($my_form.getValues())"> <forms:row label="Field 1"> <forms:editbox id="field_1" /> </forms:row> <forms:row label="Field 2"> <forms:editbox id="field_2" /> </forms:row> <forms:row type="one_column" align="center"> <forms:submitbutton value="Submit" /> </forms:row> </forms:form>

      You can review using onsubmitserver to call functions in the API documentation here​.

      Option Two: Email Parser Method

      Set Up the Zapier Email Parser

      Log in to Zapier Email Parser: Go to https://parser.zapier.com/ and log in or create an account. Create a Mailbox: Follow the instructions to create a new mailbox. You will receive a unique email address (e.g. your_mailbox@robot.zapier.com).

      Code Integration

      Create or Edit your form Add a onsubmitemail attribute to your form with your Zapier email address. *Note that you can add multiple email addresses by comma separating.

      Example: <forms:form id="myform" onsubmitemail="admin@mydomain.com, your_mailbox@robot.zapier.com">

      Test the Integration

      Fill out and submit your form. Verify in Zapier: If using the Webhook method, check the Zapier dashboard to ensure the webhook is receiving the form data correctly. For the Email Parser, Check your Zapier inbox and follow the instructions to correctly parse the form submission data.
    • D

      Whats the best way to create post blogs?

      Oncord Discussion
      • • dhondup
      2
      0
      Votes
      2
      Posts
      752
      Views

      S

      Hi @dhondup

      You can create a Post under Website > Posts.
      Then at the bottom make it Create a New Page.
      This will allow you to create a full page article within there.

      The "Post" is the listing of the article, which links to a "Page" where the full content of the article sits.

      Here's our help documentation on this:
      https://www.oncord.com/resources/learning/tutorials/website/creating-your-first-post/