Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8970759
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T17:47:09+00:00 2026-06-15T17:47:09+00:00

I have custom code that reads a bunch of xml documents and creates a

  • 0

I have custom code that reads a bunch of xml documents and creates a custom data import recipe that I upload using the Import/Export module in Orchard. The imported documents are of a content type “Api Documentation” that I created using the Orchard admin UI. Now, I would like to make this recipe file generation code part of a custom Orchard module (if that is the right approach, I am not sure) and let the admin user do the following:

  1. Use a form in the admin Dashboard section to upload the xml documents that need to be run through the recipe file generator

  2. That form submits the recipe file to the Import/Export module, so that it can perform its import process as usual

What would be the best approach to handle this? I am not even sure that creating a custom module is the right approach. If there are other extensibility options that I should take advantage of, that would be great to know.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-15T17:47:11+00:00Added an answer on June 15, 2026 at 5:47 pm

    The IImportExportService interface has a member called Import:

    void Import(string recipeText);
    

    Once you’ve generated your recipe you can call this method and it will execute the recipe and update the shell.

    If you are just importing data then if I’m not mistaken you can get away without updating the shell (which you only need to do if features have been enabled or disabled) – in which case you can make a couple of calls to the IRecipeParser and IRecipeManager interfaces instead:

    var recipe = _recipeParser.ParseRecipe(recipeText);
    _recipeManager.Execute(recipe);
    

    I’ve written something similar which does some importing/exporting so you can move pieces of content between sites; it also does some encryption so the details are hidden from prying eyes. A great place to start if is to read the source for the ImportExportService as it isn’t all that complicated.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

friends, i have created custom title bar using following titlebar.xml file with code <?xml
I have the following code that processes an INotification (custom interface) var mgr =
In WPF, I have a custom control that inherits from TreeView. The code is
I have several Entity Framework Code First DbContext objects that use a custom Initializer.
I have following code using hibernate to throw a custom exception on error and
I have a code that downloads and reads text files, but it returns IOException
I have an existing .NET 3.5 based framework that is extended using custom plugins.
I have an application that heavily reads and write to files (a custom format),
I have one custom website with code created 100% by me. I need to
I have used this custom grid view in my code, and I want to

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.