Orchard Hungary: Recent Posts
-
Free and open online Orchard course opened!
The Orchard learning site Orchard Dojo just started a free and open online Orchard course for beginners, the Dojo Course. The Course will feature video tutorials, notes and other supportive materials. Also you can enroll to be eligible for submitting a project work for periodic reviews (i.e. you can now get your project criticized) and even get a grade and a certification of accomplishment at the end. If you'd like to start learning Orchard, this is the time!
-
A harsh reminder that you can't forget what's below the abstraction
So you're a high-level programmer that much that you write software in Flash. Running in JavaScript. In a browser that runs on a virtual machine that runs on an actual OS that... Or simply you write a module that runs in a framework running on a framework running on a framework running on a framework (Orchard - ASP.NET MVC - ASP.NET - .NET) that uses an abstraction of database tables (records) aided by a layer that abstracts a layer that abstracts a data storage (Content Query - NHibernate - SQL) - that BTW itself abstracts a whole lot of things - to wrap it up quickly. And you thought you don't have to think about all that below! Got ya!
I've created a content part that had an innocent little property called Index (what, for the historical accuracy, was of type int), and below that there was a similarly named property in the part record. Guess what I got when I tried to use this?
-
Orchard Brotips: having a big menu perfoming well
TL;DR: use custom links only.
-
Live from Orchard Harvest 2013 - Amsterdam (Part 4.)
Second half of the second day - close to the end of this year's Harvest. Let's see what we've got! See the previous post here.
-
Live from Orchard Harvest 2013 - Amsterdam (Part 3.)
Back to Harvest again, second day, first half! See the previous post here.
-
Live from Orchard Harvest 2013 - Amsterdam (Part 2.)
Back to Orchard Harvest, afternoon! See the previous part.
-
Live from Orchard Harvest 2013 - Amsterdam (Part 1.)
The Orchard Hungary/Lombiq Team is in Amsterdam, attending Orchard Harvest. Let's see what we've got this year, what we waited for since last September!
-
Making sure your inline script is only included once when multiple content items are listed
It's a common scenario that you want to add a little piece of javascript to enrich your content part. You may find that putting it into a separate script file is an overkill or - because the script needs many parameters from the part's template - too complex. Thus, you go with an inline script. Good choice! But did you know that if multiple content items having your part are displayed on the same page your script will be injected to the markup multiple times? That ain't good, but there's a simple workaround.
-
Creating a hidden content part
You might want to have a content part hidden: that is, you not only don't want users to be able to attach it to content types but you don't even want user to see - and thus know about - it. This is the case if the part is something very technical or if it's only interesting for a single content type.
-
Did you know that themes can have dependencies too?
Of course themes can depend on another theme, by having the other theme specified in the BaseTheme directive in the Theme.txt file. What's more however, that themes can also have dependencies on modules: just use the Dependencies parameter like with modules in the Module.txt.
Dependencies: Orchard.jQuery
Not too complicated, right? Still it's something not obvious. Actually since jQuery is an always-on core module you don't need this, but if you have any other JS library in a module that you use in your theme you have to declare the dependency. You get the idea :-).