creating a custom recipe

Topics: General
Jul 8, 2011 at 8:39 AM

I would like to create a recipe that does the following:

download the Taxonomies module

Add a couple of taxonomies

Add a couple of terms for each taxonomy

The following recipe gets me the taxonomies named Apples and Oranges but does not insert the next level in ie Granny Smith is not a term within the Apples Item.

What am I doing wrong?

Sometimes on Videos from Bertrand eg the Taxonomies Video, I see Bertrand jump over to a command line and run a script which populates the database. What is that? Can I get a copy of that so that I can use it as a template for my own? Its just not obvious how to do data from the doco.

 

<?xml version="1.0"?>
<Orchard>
  <Recipe>
    <Name>Custom Recipe</Name>
  </Recipe>

  <!--Module packageId="Orchard.Module.Contrib.Taxonomies" /-->

  <!--Feature enable="Contrib.Taxonomies" /-->

  <Metadata>
    <Types>
      <Taxonomy DisplayName="Taxonomy">
        <TaxonomyPart />
        <CommonPart />
        <RoutePart />
      </Taxonomy>
      <Apples TaxonomyId="14" DisplayName="Apples Term">
        <TermPart />
        <RoutePart />
        <CommonPart />
      </Apples>
      <Oranges TaxonomyId="16" DisplayName="Oranges Term">
        <TermPart />
        <RoutePart />
        <CommonPart />
      </Oranges>
    </Types>
    <Parts>
      <TaxonomyPart />
      <CommonPart ContentPartSettings.Attachable="True" />
      <RoutePart ContentPartSettings.Attachable="True" />
      <TermPart />
    </Parts>
  </Metadata>

  <Data>
    <Taxonomy Id="/Route.Slug=apples" Status="Published">
      <CommonPart Owner="/User.UserName=admin" CreatedUtc="2011-07-08T06:40:55Z" PublishedUtc="2011-07-08T06:40:55Z" ModifiedUtc="2011-07-08T06:40:55Z" />
      <RoutePart Title="Apples" Slug="apples" Path="apples" />
    </Taxonomy>
    <Taxonomy Id="/Route.Slug=oranges" Status="Published">
      <CommonPart Owner="/User.UserName=admin" CreatedUtc="2011-07-08T06:41:21Z" PublishedUtc="2011-07-08T06:41:21Z" ModifiedUtc="2011-07-08T06:41:21Z" />
      <RoutePart Title="Oranges" Slug="oranges" Path="oranges" />
    </Taxonomy>
    <Apples Id="/Route.Slug=granny-smith" Status="Published">
      <CommonPart Owner="/User.UserName=admin" Container="/Route.Slug=apples" CreatedUtc="2011-07-08T06:41:55Z" PublishedUtc="2011-07-08T06:41:55Z" ModifiedUtc="2011-07-08T06:41:55Z" />
      <RoutePart Title="Granny Smith" Slug="granny-smith" Path="apples/granny-smith" />
    </Apples>
    <Apples Id="/Route.Slug=pink-lady" Status="Published">
      <CommonPart Owner="/User.UserName=admin" Container="/Route.Slug=apples" CreatedUtc="2011-07-08T06:42:26Z" PublishedUtc="2011-07-08T06:42:26Z" ModifiedUtc="2011-07-08T06:42:26Z" />
      <RoutePart Title="Pink Lady" Slug="pink-lady" Path="apples/pink-lady" />
    </Apples>
    <Oranges Id="/Route.Slug=navel" Status="Published">
      <CommonPart Owner="/User.UserName=admin" Container="/Route.Slug=oranges" CreatedUtc="2011-07-08T06:43:23Z" PublishedUtc="2011-07-08T06:43:23Z" ModifiedUtc="2011-07-08T06:43:23Z" />
      <RoutePart Title="Navel" Slug="navel" Path="oranges/navel" />
    </Oranges>
    <Oranges Id="/Route.Slug=valencia" Status="Published">
      <CommonPart Owner="/User.UserName=admin" Container="/Route.Slug=oranges" CreatedUtc="2011-07-08T06:44:43Z" PublishedUtc="2011-07-08T06:44:43Z" ModifiedUtc="2011-07-08T06:44:43Z" />
      <RoutePart Title="Valencia" Slug="valencia" Path="oranges/valencia" />
    </Oranges>
  </Data>
</Orchard>

Coordinator
Jul 8, 2011 at 7:22 PM

Why are Apples and Oranges defined as types in the metadata section?

Jul 8, 2011 at 11:21 PM

When I created these items manually, I did an export and this is what was created. I don't know yet why you would put something in the MetaData section either.

Jul 9, 2011 at 12:11 AM
Edited Jul 9, 2011 at 12:12 AM

So I emptied the App_Data Folder and created the site from scratch. I then enabled the taxonomies and Import / Export modules and ran the following. It did not complain but it still does not have any Oranges vocabulary for any taxonomy. What am I missing?

 

<?xml version="1.0"?>
<Orchard>
  <Recipe>
    <Name>Custom Recipe</Name>
  </Recipe>

  <!--Module packageId="Orchard.Module.Contrib.Taxonomies" /-->

  <!--Feature enable="Contrib.Taxonomies" /-->

  <!--Metadata>
    <Types>
      <Taxonomy DisplayName="Taxonomy">
        <TaxonomyPart />
        <CommonPart />
        <RoutePart />
      </Taxonomy>
      <Apples TaxonomyId="14" DisplayName="Apples Term">
        <TermPart />
        <RoutePart />
        <CommonPart />
      </Apples>
      <Oranges TaxonomyId="16" DisplayName="Oranges Term">
        <TermPart />
        <RoutePart />
        <CommonPart />
      </Oranges>
    </Types>
    <Parts>
      <TaxonomyPart />
      <CommonPart ContentPartSettings.Attachable="True" />
      <RoutePart ContentPartSettings.Attachable="True" />
      <TermPart />
    </Parts>
  </Metadata-->

  <Data>
    <Taxonomy Id="/Route.Slug=apples" Status="Published">
      <CommonPart Owner="/User.UserName=admin" CreatedUtc="2011-07-08T06:40:55Z" PublishedUtc="2011-07-08T06:40:55Z" ModifiedUtc="2011-07-08T06:40:55Z" />
      <RoutePart Title="Apples" Slug="apples" Path="apples" />
    </Taxonomy>
    <Taxonomy Id="/Route.Slug=oranges" Status="Published">
      <CommonPart Owner="/User.UserName=admin" CreatedUtc="2011-07-08T06:41:21Z" PublishedUtc="2011-07-08T06:41:21Z" ModifiedUtc="2011-07-08T06:41:21Z" />
      <RoutePart Title="Oranges" Slug="oranges" Path="oranges" />
    </Taxonomy>
    <Apples Id="/Route.Slug=granny-smith" Status="Published">
      <CommonPart Owner="/User.UserName=admin" Container="/Route.Slug=apples" CreatedUtc="2011-07-08T06:41:55Z" PublishedUtc="2011-07-08T06:41:55Z" ModifiedUtc="2011-07-08T06:41:55Z" />
      <RoutePart Title="Granny Smith" Slug="granny-smith" Path="apples/granny-smith" />
    </Apples>
    <Apples Id="/Route.Slug=pink-lady" Status="Published">
      <CommonPart Owner="/User.UserName=admin" Container="/Route.Slug=apples" CreatedUtc="2011-07-08T06:42:26Z" PublishedUtc="2011-07-08T06:42:26Z" ModifiedUtc="2011-07-08T06:42:26Z" />
      <RoutePart Title="Pink Lady" Slug="pink-lady" Path="apples/pink-lady" />
    </Apples>
    <Oranges Id="/Route.Slug=navel" Status="Published">
      <CommonPart Owner="/User.UserName=admin" Container="/Route.Slug=oranges" CreatedUtc="2011-07-08T06:43:23Z" PublishedUtc="2011-07-08T06:43:23Z" ModifiedUtc="2011-07-08T06:43:23Z" />
      <RoutePart Title="Navel" Slug="navel" Path="oranges/navel" />
    </Oranges>
    <Oranges Id="/Route.Slug=valencia" Status="Published">
      <CommonPart Owner="/User.UserName=admin" Container="/Route.Slug=oranges" CreatedUtc="2011-07-08T06:44:43Z" PublishedUtc="2011-07-08T06:44:43Z" ModifiedUtc="2011-07-08T06:44:43Z" />
      <RoutePart Title="Valencia" Slug="valencia" Path="oranges/valencia" />
    </Oranges>
  </Data>
</Orchard>

Coordinator
Jul 9, 2011 at 12:19 AM

If you are not using the current source code version, this is a known bug. It has been fixed since then. I strongly suggest you to get an emlisment on the source code if you are doing some dev on Orchard. This version is not yet on the gallery as it is a breaking one, and I want to tackle more functionalities before going public.

Jul 9, 2011 at 12:30 AM

I have been using the default branch for my orcharc source code enlistment.

I have just updated to the 1.x branch and will try again. thanks

Jul 9, 2011 at 9:31 AM

I downloaded the taxonomies module code enlistment and found that the default and the dev branches don't compile.

Here is the output from the dev branch compile of the Contrib.Taxonomies against the dev branch of the dev branch of the Orchard source code enlistment.

Should I have TeamCity stuff referenced from a dependency folder somewhere or do I need to point one of my source code enlistments at a different branch?

------ Build started: Project: Orchard.Framework, Configuration: Debug Any CPU ------
  Orchard.Framework -> C:\websites\ewide\calendar.local\src\Orchard\bin\Debug\Orchard.Framework.dll
------ Build started: Project: Orchard.Core, Configuration: Debug Any CPU ------
  Orchard.Core -> C:\websites\ewide\calendar.local\src\Orchard.Web\Core\bin\Orchard.Core.dll
------ Build started: Project: Contrib.Taxonomies, Configuration: Debug Any CPU ------
C:\websites\ewide\calendar.local\src\Orchard.Web\Modules\Contrib.Taxonomies\Routing\TermPathConstraint.cs(6,7): error CS0246: The type or namespace name 'JetBrains' could not be found (are you missing a using directive or an assembly reference?)
C:\websites\ewide\calendar.local\src\Orchard.Web\Modules\Contrib.Taxonomies\Handlers\TermPartHandler.cs(6,33): error CS0234: The type or namespace name 'Aspects' does not exist in the namespace 'Orchard.ContentManagement' (are you missing an assembly reference?)
C:\websites\ewide\calendar.local\src\Orchard.Web\Modules\Contrib.Taxonomies\Handlers\TaxonomyPartHandler.cs(2,7): error CS0246: The type or namespace name 'JetBrains' could not be found (are you missing a using directive or an assembly reference?)
C:\websites\ewide\calendar.local\src\Orchard.Web\Modules\Contrib.Taxonomies\Handlers\TaxonomyPartHandler.cs(5,33): error CS0234: The type or namespace name 'Aspects' does not exist in the namespace 'Orchard.ContentManagement' (are you missing an assembly reference?)
C:\websites\ewide\calendar.local\src\Orchard.Web\Modules\Contrib.Taxonomies\Services\TaxonomyNavigationProvider.cs(4,33): error CS0234: The type or namespace name 'Aspects' does not exist in the namespace 'Orchard.ContentManagement' (are you missing an assembly reference?)
C:\websites\ewide\calendar.local\src\Orchard.Web\Modules\Contrib.Taxonomies\Shapes.cs(4,33): error CS0234: The type or namespace name 'Aspects' does not exist in the namespace 'Orchard.ContentManagement' (are you missing an assembly reference?)
C:\websites\ewide\calendar.local\src\Orchard.Web\Modules\Contrib.Taxonomies\Handlers\TermsPartHandler.cs(5,33): error CS0234: The type or namespace name 'MetaData' does not exist in the namespace 'Orchard.ContentManagement' (are you missing an assembly reference?)
C:\websites\ewide\calendar.local\src\Orchard.Web\Modules\Contrib.Taxonomies\Drivers\TermPartDriver.cs(6,33): error CS0234: The type or namespace name 'Aspects' does not exist in the namespace 'Orchard.ContentManagement' (are you missing an assembly reference?)
C:\websites\ewide\calendar.local\src\Orchard.Web\Modules\Contrib.Taxonomies\Migrations.cs(1,33): error CS0234: The type or namespace name 'MetaData' does not exist in the namespace 'Orchard.ContentManagement' (are you missing an assembly reference?)
C:\websites\ewide\calendar.local\src\Orchard.Web\Modules\Contrib.Taxonomies\Drivers\TaxonomyMenuItemPartDriver.cs(2,7): error CS0246: The type or namespace name 'JetBrains' could not be found (are you missing a using directive or an assembly reference?)
C:\websites\ewide\calendar.local\src\Orchard.Web\Modules\Contrib.Taxonomies\Controllers\HomeController.cs(5,7): error CS0246: The type or namespace name 'JetBrains' could not be found (are you missing a using directive or an assembly reference?)
C:\websites\ewide\calendar.local\src\Orchard.Web\Modules\Contrib.Taxonomies\Handlers\TaxonomyMenuPartHandler.cs(1,7): error CS0246: The type or namespace name 'JetBrains' could not be found (are you missing a using directive or an assembly reference?)
C:\websites\ewide\calendar.local\src\Orchard.Web\Modules\Contrib.Taxonomies\Services\TaxonomyService.cs(8,33): error CS0234: The type or namespace name 'Aspects' does not exist in the namespace 'Orchard.ContentManagement' (are you missing an assembly reference?)
C:\websites\ewide\calendar.local\src\Orchard.Web\Modules\Contrib.Taxonomies\Services\TaxonomyService.cs(9,33): error CS0234: The type or namespace name 'MetaData' does not exist in the namespace 'Orchard.ContentManagement' (are you missing an assembly reference?)
C:\websites\ewide\calendar.local\src\Orchard.Web\Modules\Contrib.Taxonomies\StandardQueries\TermFeedQuery.cs(6,7): error CS0246: The type or namespace name 'JetBrains' could not be found (are you missing a using directive or an assembly reference?)
C:\websites\ewide\calendar.local\src\Orchard.Web\Modules\Contrib.Taxonomies\Controllers\AdminController.cs(6,7): error CS0246: The type or namespace name 'JetBrains' could not be found (are you missing a using directive or an assembly reference?)
C:\websites\ewide\calendar.local\src\Orchard.Web\Modules\Contrib.Taxonomies\Controllers\AdminController.cs(10,33): error CS0234: The type or namespace name 'Aspects' does not exist in the namespace 'Orchard.ContentManagement' (are you missing an assembly reference?)
C:\websites\ewide\calendar.local\src\Orchard.Web\Modules\Contrib.Taxonomies\Settings\TaxonomyFieldEditorEvents.cs(3,33): error CS0234: The type or namespace name 'MetaData' does not exist in the namespace 'Orchard.ContentManagement' (are you missing an assembly reference?)
C:\websites\ewide\calendar.local\src\Orchard.Web\Modules\Contrib.Taxonomies\Settings\TaxonomyFieldEditorEvents.cs(4,33): error CS0234: The type or namespace name 'MetaData' does not exist in the namespace 'Orchard.ContentManagement' (are you missing an assembly reference?)
C:\websites\ewide\calendar.local\src\Orchard.Web\Modules\Contrib.Taxonomies\Settings\TaxonomyFieldEditorEvents.cs(5,33): error CS0234: The type or namespace name 'MetaData' does not exist in the namespace 'Orchard.ContentManagement' (are you missing an assembly reference?)
C:\websites\ewide\calendar.local\src\Orchard.Web\Modules\Contrib.Taxonomies\Settings\TaxonomyFieldEditorEvents.cs(11,46): error CS0246: The type or namespace name 'ContentDefinitionEditorEventsBase' could not be found (are you missing a using directive or an assembly reference?)
C:\websites\ewide\calendar.local\src\Orchard.Web\Modules\Contrib.Taxonomies\Drivers\TaxonomyFieldDriver.cs(5,7): error CS0246: The type or namespace name 'JetBrains' could not be found (are you missing a using directive or an assembly reference?)
C:\websites\ewide\calendar.local\src\Orchard.Web\Modules\Contrib.Taxonomies\Drivers\TaxonomyMenuPartDriver.cs(4,7): error CS0246: The type or namespace name 'JetBrains' could not be found (are you missing a using directive or an assembly reference?)
C:\websites\ewide\calendar.local\src\Orchard.Web\Modules\Contrib.Taxonomies\Routing\TaxonomySlugConstraint.cs(6,7): error CS0246: The type or namespace name 'JetBrains' could not be found (are you missing a using directive or an assembly reference?)
C:\websites\ewide\calendar.local\src\Orchard.Web\Modules\Contrib.Taxonomies\Models\TermPart.cs(4,33): error CS0234: The type or namespace name 'Aspects' does not exist in the namespace 'Orchard.ContentManagement' (are you missing an assembly reference?)
C:\websites\ewide\calendar.local\src\Orchard.Web\Modules\Contrib.Taxonomies\Handlers\TermsPartHandler.cs(10,26): error CS0246: The type or namespace name 'IContentDefinitionManager' could not be found (are you missing a using directive or an assembly reference?)
C:\websites\ewide\calendar.local\src\Orchard.Web\Modules\Contrib.Taxonomies\Handlers\TermsPartHandler.cs(13,13): error CS0246: The type or namespace name 'IContentDefinitionManager' could not be found (are you missing a using directive or an assembly reference?)
C:\websites\ewide\calendar.local\src\Orchard.Web\Modules\Contrib.Taxonomies\Services\TaxonomyService.cs(25,26): error CS0246: The type or namespace name 'IContentDefinitionManager' could not be found (are you missing a using directive or an assembly reference?)
C:\websites\ewide\calendar.local\src\Orchard.Web\Modules\Contrib.Taxonomies\Services\TaxonomyService.cs(32,13): error CS0246: The type or namespace name 'IContentDefinitionManager' could not be found (are you missing a using directive or an assembly reference?)
C:\websites\ewide\calendar.local\src\Orchard.Web\Modules\Contrib.Taxonomies\Settings\TaxonomyFieldEditorEvents.cs(21,72): error CS0246: The type or namespace name 'ContentPartFieldDefinition' could not be found (are you missing a using directive or an assembly reference?)
C:\websites\ewide\calendar.local\src\Orchard.Web\Modules\Contrib.Taxonomies\Settings\TaxonomyFieldEditorEvents.cs(29,78): error CS0246: The type or namespace name 'ContentPartFieldDefinitionBuilder' could not be found (are you missing a using directive or an assembly reference?)
C:\websites\ewide\calendar.local\src\Orchard.Web\Modules\Contrib.Taxonomies\Routing\TermPathConstraint.cs(10,6): error CS0246: The type or namespace name 'UsedImplicitly' could not be found (are you missing a using directive or an assembly reference?)
C:\websites\ewide\calendar.local\src\Orchard.Web\Modules\Contrib.Taxonomies\Routing\TermPathConstraint.cs(10,6): error CS0246: The type or namespace name 'UsedImplicitlyAttribute' could not be found (are you missing a using directive or an assembly reference?)
C:\websites\ewide\calendar.local\src\Orchard.Web\Modules\Contrib.Taxonomies\Handlers\TaxonomyPartHandler.cs(11,6): error CS0246: The type or namespace name 'UsedImplicitly' could not be found (are you missing a using directive or an assembly reference?)
C:\websites\ewide\calendar.local\src\Orchard.Web\Modules\Contrib.Taxonomies\Handlers\TaxonomyPartHandler.cs(11,6): error CS0246: The type or namespace name 'UsedImplicitlyAttribute' could not be found (are you missing a using directive or an assembly reference?)
C:\websites\ewide\calendar.local\src\Orchard.Web\Modules\Contrib.Taxonomies\Drivers\TaxonomyMenuItemPartDriver.cs(10,6): error CS0246: The type or namespace name 'UsedImplicitly' could not be found (are you missing a using directive or an assembly reference?)
C:\websites\ewide\calendar.local\src\Orchard.Web\Modules\Contrib.Taxonomies\Drivers\TaxonomyMenuItemPartDriver.cs(10,6): error CS0246: The type or namespace name 'UsedImplicitlyAttribute' could not be found (are you missing a using directive or an assembly reference?)
C:\websites\ewide\calendar.local\src\Orchard.Web\Modules\Contrib.Taxonomies\Handlers\TaxonomyMenuPartHandler.cs(7,6): error CS0246: The type or namespace name 'UsedImplicitly' could not be found (are you missing a using directive or an assembly reference?)
C:\websites\ewide\calendar.local\src\Orchard.Web\Modules\Contrib.Taxonomies\Handlers\TaxonomyMenuPartHandler.cs(7,6): error CS0246: The type or namespace name 'UsedImplicitlyAttribute' could not be found (are you missing a using directive or an assembly reference?)
C:\websites\ewide\calendar.local\src\Orchard.Web\Modules\Contrib.Taxonomies\StandardQueries\TermFeedQuery.cs(15,6): error CS0246: The type or namespace name 'UsedImplicitly' could not be found (are you missing a using directive or an assembly reference?)
C:\websites\ewide\calendar.local\src\Orchard.Web\Modules\Contrib.Taxonomies\StandardQueries\TermFeedQuery.cs(15,6): error CS0246: The type or namespace name 'UsedImplicitlyAttribute' could not be found (are you missing a using directive or an assembly reference?)
C:\websites\ewide\calendar.local\src\Orchard.Web\Modules\Contrib.Taxonomies\Drivers\TaxonomyFieldDriver.cs(19,6): error CS0246: The type or namespace name 'UsedImplicitly' could not be found (are you missing a using directive or an assembly reference?)
C:\websites\ewide\calendar.local\src\Orchard.Web\Modules\Contrib.Taxonomies\Drivers\TaxonomyFieldDriver.cs(19,6): error CS0246: The type or namespace name 'UsedImplicitlyAttribute' could not be found (are you missing a using directive or an assembly reference?)
C:\websites\ewide\calendar.local\src\Orchard.Web\Modules\Contrib.Taxonomies\Drivers\TaxonomyMenuPartDriver.cs(14,6): error CS0246: The type or namespace name 'UsedImplicitly' could not be found (are you missing a using directive or an assembly reference?)
C:\websites\ewide\calendar.local\src\Orchard.Web\Modules\Contrib.Taxonomies\Drivers\TaxonomyMenuPartDriver.cs(14,6): error CS0246: The type or namespace name 'UsedImplicitlyAttribute' could not be found (are you missing a using directive or an assembly reference?)
C:\websites\ewide\calendar.local\src\Orchard.Web\Modules\Contrib.Taxonomies\Routing\TaxonomySlugConstraint.cs(10,6): error CS0246: The type or namespace name 'UsedImplicitly' could not be found (are you missing a using directive or an assembly reference?)
C:\websites\ewide\calendar.local\src\Orchard.Web\Modules\Contrib.Taxonomies\Routing\TaxonomySlugConstraint.cs(10,6): error CS0246: The type or namespace name 'UsedImplicitlyAttribute' could not be found (are you missing a using directive or an assembly reference?)

Compile complete -- 47 errors, 0 warnings
========== Build: 2 succeeded or up-to-date, 1 failed, 0 skipped ==========

Jul 9, 2011 at 12:25 PM

OK, I am on the 1.x branch for orchard and the dev branch for the taxonomies and it all compiled. Wahoo! So, I'll have a crack at another recipe import now.

Jul 9, 2011 at 1:17 PM

Okey Dokey,

I tried the following and got the Apples and Oranges but did not get the Granny Smith and Pink Lady again.

I used the following recipe. What am I doing wrong?

<?xml version="1.0"?>
<Orchard>
  <Recipe>
    <Name>Custom Recipe</Name>
    <Author>admin</Author>
  </Recipe>

  <!--Module packageId="Orchard.Module.Contrib.Taxonomies" /-->

  <!--Feature enable="Contrib.Taxonomies" /-->

  <Data>
    <Taxonomy Id="/Route.Slug=apples" Status="Published">
      <RoutePart Title="Apples" Slug="apples" Path="apples" />
      <TaxonomyPart TermTypeName="Apples" />
      <CommonPart Owner="/User.UserName=admin" CreatedUtc="2011-07-09T11:46:52Z" PublishedUtc="2011-07-09T11:46:52Z" ModifiedUtc="2011-07-09T11:46:52Z" />
    </Taxonomy>
    <Taxonomy Id="/Route.Slug=oranges" Status="Published">
      <RoutePart Title="Oranges" Slug="oranges" Path="oranges" />
      <TaxonomyPart TermTypeName="Oranges" />
      <CommonPart Owner="/User.UserName=admin" CreatedUtc="2011-07-09T11:47:24Z" PublishedUtc="2011-07-09T11:47:24Z" ModifiedUtc="2011-07-09T11:47:24Z" />
    </Taxonomy>
    <Apples Id="/Route.Slug=granny-smith" Status="Published">
      <RoutePart Title="Granny Smith" Slug="granny-smith" Path="apples/granny-smith" />
      <TermPart Count="0" Selectable="true" Weight="0" TaxonomyId="/Route.Slug=apples" Path="" />
      <CommonPart Owner="/User.UserName=admin" Container="/Route.Slug=apples" CreatedUtc="2011-07-09T11:48:52Z" PublishedUtc="2011-07-09T11:48:52Z" ModifiedUtc="2011-07-09T11:48:52Z" />
    </Apples>
    <Apples Id="/Route.Slug=pink-lady" Status="Published">
      <RoutePart Title="Pink Lady" Slug="pink-lady" Path="apples/pink-lady" />
      <TermPart Count="0" Selectable="true" Weight="0" TaxonomyId="/Route.Slug=apples" Path="" />
      <CommonPart Owner="/User.UserName=admin" Container="/Route.Slug=apples" CreatedUtc="2011-07-09T11:49:38Z" PublishedUtc="2011-07-09T11:49:38Z" ModifiedUtc="2011-07-09T11:49:38Z" />
    </Apples>
    <Oranges Id="/Route.Slug=navel" Status="Published">
      <RoutePart Title="Navel" Slug="navel" Path="oranges/navel" />
      <TermPart Count="0" Selectable="true" Weight="0" TaxonomyId="/Route.Slug=oranges" Path="" />
      <CommonPart Owner="/User.UserName=admin" Container="/Route.Slug=oranges" CreatedUtc="2011-07-09T11:52:32Z" PublishedUtc="2011-07-09T11:52:32Z" ModifiedUtc="2011-07-09T11:52:32Z" />
    </Oranges>
    <Oranges Id="/Route.Slug=valencia" Status="Published">
      <RoutePart Title="Valencia" Slug="valencia" Path="oranges/valencia" />
      <TermPart Count="0" Selectable="true" Weight="0" TaxonomyId="/Route.Slug=oranges" Path="" />
      <CommonPart Owner="/User.UserName=admin" Container="/Route.Slug=oranges" CreatedUtc="2011-07-09T11:53:06Z" PublishedUtc="2011-07-09T11:53:06Z" ModifiedUtc="2011-07-09T11:53:06Z" />
    </Oranges>
  </Data>
</Orchard>

Jul 11, 2011 at 10:53 PM

Does the Import / Export Module do the same thing as the Recipe when setting up?

It seems very complicated in the Import Export Module once you get into it.

I didn't get very far. Has anyone had any success running an Import with Taxonomy at 2 levels?

Coordinator
Jul 11, 2011 at 10:58 PM

Yes, it's the same code that's running import recipes and setup recipes. They are both just recipes, with some different constraints. I've asked Sébastien to chime in about taxonomies importing.

Jul 12, 2011 at 12:12 PM

Sorry to hijack but its a related question.

I've been setting up a recipe that I want to use when Orchard is installed, it also has taxonomy data in it (although not hierarchical).  However the recipe fails stating that the "handler for step "Data" was not found. Refer to the recipe journal for more information."

1. Can the data tag only be used with the import/export module?

2. Is there actually a recipe journal anywhere or this still to be written?

Thanks

Coordinator
Jul 13, 2011 at 10:11 PM

The Data handler is defined in import/export, so for this to work in a setup recipe, you'd have to first download and enable that feaure. The problem is that the new tags that are brought in by a module that just got installed as part of the same recipe might not become immediately available. Probably worth trying but I would not be surprised if it didn't work. If it doesn't work, we should file a bug about it.

The journal should be somewhere in your media folder.