Aug 8, 2013 at 3:15 AM
Edited Aug 8, 2013 at 3:21 AM
Ok, for future reference, steps required to get this to work were:
Create theme with Orchard command util as follows:
codegen theme ThemeNameHere /CreateProject:True
Reload the Orchard solution when prompted.
Find the project 'ThemeNameHere' and unload it so as to enable csproj file editing.
Right click your 'ThemeNameHere' project, and click 'Edit YourThemeName.csproj'.
Add the below item group to your csproj file:
<Compile Include="Code\YourShapeProvider.cs" />
Reload your project. Build and launch - the ShapeTableProvider code should now fire as expected.
(To reiterate @sfmskywalker advice, make sure you move your existing theme to a new folder if you are doing this retrospectively to an existing theme, from which you can copy back your files after regenerating the theme)