ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

Submitting to weblogs from outside the Control Panel

February 09, 2009 11:48pm

Subscribe [4]
  • #1 / Feb 09, 2009 11:48pm

    Andrew Hedges

    12 posts

    Hi, all. I’m building an EE site that I’m integrating with a 3rd party API. I have an interface to that site’s data and want to submit data directly from there into a weblog I have set up. I am pretty sure I’m posting (via Ajax) all of the correct fields to the same script that is used by weblog submissions within the Control Panel, but the response I get back from EE is the weblog form, not the entry preview, as I expect. Also, the submissions do not show up when I go into the “Edit” tab in the Control Panel.

    Is what I’m trying to do not allowed? Does anyone know how EE might be detecting that the submission is coming from outside the Control Panel? Referrer? XmlHTTPRequest header? Is this something I could hack around, possibly?

    Thanks,
    -Andrew

  • #2 / Feb 10, 2009 10:07am

    Neil Evans

    1403 posts

    have a read up on SAEF - stand alone entry forms… this is what you effectively doing and should give you some info…

  • #3 / Feb 10, 2009 9:54pm

    Andrew Hedges

    12 posts

    I’ve actually decided to insert my entries directly into the exp_weblog_titles and exp_weblog_data tables. Now that I dig into it, it’s fairly straightforward, though it takes a little sleuthing to match up the field_id_# columns with the custom fields.

    Thanks for your reply.

  • #4 / Feb 11, 2009 9:36pm

    Andrew Hedges

    12 posts

    The only hitch I ran into with inserting directly was that I didn’t realize I needed to update the exp_weblogs table as well. I’ll be writing this up in a blog post. I’ll post the link here when it’s ready.

  • #5 / Mar 16, 2009 7:37pm

    Did you ever write this up? I am interested in what you found.

  • #6 / Mar 16, 2009 8:21pm

    Andrew Hedges

    12 posts

    Sorry, it’s sitting in my blog queue. I will, I promise!

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases