Clay Tutorial

Presenting the first of a planned series of tutorials on the Clay library found in Orchard:

1. Clay part 1: Down the Rabbit Hole

2. Clay part 2: Through the Looking Glass

5 Comments

  • Basharat Ahmad said

    I am not a developer. But I am interested in Orchard CMS. I was looking for some lessons in Orchard-specific C#. I think this is the right place I have reached.

  • Kevin said

    This is more about your Clay Part 2 tutorial rather than the part 1. For incorporating the shape dispatcher with the Mechanics module (http://scienceproject.codeplex.com/wikipage?title=Mechanics), I'm trying to dispatch the Socket type to another Zone. After implementing your code, I'm try switching <Place Socket="Content:10"></Place> to <Place Socket="Layout@AsideFirst:1"></Place> ; this hides the Socket model and I can't find it. Am I adjusting the correct value in the Placement.info file?

  • Kevin said

    After double checking my code, I saw that I had the code files you provided in the wrong directory (I had it in the Orchard.UI module), so I moved it into Downplay.Origami.Shapes and it's working beautifully. Thanks for this great information, this helps overcome one of the pitfalls of Orchard.

  • admin said

    @Kevin - Mechanics already comes with a feature called "Paperclips" which has done this in its own way for a long time (you can configure it per socket in Content Type settings...)

    Also, it's useful to know that you can target a socket for an individual connector type in placement like this:
    <Place Socket-MyConnectorName="..."/>

  • Kevin Kuebler said

    Wow Pete, that is awesome! Clay behaviors are one of those things in Orchard I had never really looked into either. Thanks for writing this. So when are you going to ship that as a module on the gallery? :-)

Add a Comment