Projector Slider

Topics: General
Dec 21, 2013 at 7:08 AM
I'm not able to run "Orchard.Module.Breakout.ItemSlider.1.0.nupkg".

Adding the Module does NOT give any errors BUT it does also not create the 'migration' record nor the 'Part'.

Running the migration manually i.e. 'codegen datamigration Breakout.ItemSlider' does not generate it either.
In fact I get a msg 'datamigration already exists in target Module Breakout.Itemslider'.

This Module is not (yet!) in the Gallery ... and might have errors BUT
does anybody have any experience with it?
Any hints are welcomed
thanks ed
PS: I have sent a msg to the owner! No reponse (yet!).
Dec 21, 2013 at 7:25 AM
I don't know about the module, but codegen command does not run the migration. It creates the migration code during module development.


Dec 21, 2013 at 8:33 AM
yes you are right. What I meant is:

even if I delete migrations.cs first, codegen DOES
  • generate the migrations.cs file and puts the corresponding <compile include ... /> correctly in .csproj
  • a further codegen correctly says already there.
  • BUT nothing gets generated!
Below you see the generated and original file. All the 'code behind' looks ok to me. PS: I have copied the three lines into the generated migrations.cs!
Again, does anybody have any experience with this module?
thanks for your time
ed

The generated migrations.cs looks the like:
using System;
using System.Collections.Generic;
using System.Data;
using Orchard.ContentManagement.Drivers;
using Orchard.ContentManagement.MetaData;
using Orchard.ContentManagement.MetaData.Builders;
using Orchard.Core.Contents.Extensions;
using Orchard.Data.Migration;

namespace Breakout.ItemSlider {
    public class Migrations : DataMigrationImpl {

        public int Create() {
            Migrations.ItemSliderPart.CreateTable(SchemaBuilder);
            Migrations.ItemSliderPart.AddIndexes(SchemaBuilder);
            Migrations.ItemSliderPart.AlterPartDefinition(ContentDefinitionManager);

            return 1;
        }
    }
}
where the original file looks:
using Orchard.Data.Migration;
using System;
using System.Linq;

namespace Breakout.ItemSlider
{
    public class Migration : DataMigrationImpl
    {
        public int Create() 
        {
            Migrations.ItemSliderPart.CreateTable(SchemaBuilder);
            Migrations.ItemSliderPart.AddIndexes(SchemaBuilder);
            Migrations.ItemSliderPart.AlterPartDefinition(ContentDefinitionManager);

            return 1;
        }
        
    }
}
Jan 11, 2014 at 1:50 PM
I obviously would need some more help on point 5.
point 5. is not yet documented... can anybody help?
thanks ed


http://www.breakoutdeveloper.com/orchard/content-item-slider

The module can be achieved quite quickly with the following steps:
1.Create a module
2.Create a layout definition for the content query
3.Create a view and enable the JavaScript for the slider
4.Some styling
5.Create a projection - remember to select a different layout to the default one, such as: SliderDetailLarge. Otherwise the content will be displayed as a simple list.