I am attempting to extend the Orchard login process using IUserEventHandler, like is done here. No matter how hard I look through the Orchard assemblies, I can't find the Orchard.Users.Events namespace which is the supposed home of IUserEventHandler.
Which Orchard assembly contains that interface?
Found it. It is actually an Orchard Module, available under /Modules/Orchard.Users.
Related
I am fairly new to Orchard CMS.
I am going through how a module is created an got a question.
According to the documentation, content definition could be created in two ways:
use admin content definition page
create module project in visual studio
is there any difference?
I created a test content definition and try to find it in the SQL compact database. I can't seem to find it.
Anyone know where that info is stored?
Thanks
You can find the content definition in the following tables in the Orchard database:
Settings_ContentFieldDefinitionRecord
Settings_ContentPartDefinitionRecord
Settings_ContentPartFieldDefinitionRecord
Settings_ContentTypeDefinitionRecord
Settings_ContentTypePartDefinitionRecord
The admin interface uses the same APIs that are used when defining content definition from code, so it's basically the same thing. I tend to define content definition in migrations, as that's the best way to ensure that content definition changes are properly applied on all instances of the application (the migrations automatically run during application startup). The admin interface is intended for users who do not have access to the source code (ex. administrators, not developers).
I have HTML/CSS complete - conventional stuff.
I now need a CMS for this site. To use Orchard for this do I need to create a Custom Theme? (eg as in this article
http://www.deepcode.co.uk/2011/05/real-world-orchard-cms-part-2-creating.html
Or are custom themes for people that want to make something re-usable?
If there is an easier way to put Orchard CMS in a totally custom design - what is it?
Thx
You definitely need to create your own theme. You could start with an existing theme and modify it, but if you've already got a static HTML/CSS design then you're probably best off starting from scratch.
For more information on theming you can check out:
Writing a new theme - Orchard Documentation
Theming Orchard - A blog post I wrote a while ago
Studying the code of some existing themes can be a nice way to see how a theme is made up.
You should not directly modify the base template files inside Orchard modules. These are made to be overridden in your theme and modifying them directly will make updating Orchard very tricky.
Can I have a content manager Orchard site that manages two modules, each of them of a different looking (themed) site ?
I'm not sure if that is what you mean, but you can have multiple sites running on the same Orchard application with different themes on.
You can do this simply by enabling the Multitenancy feature in your orchard's module page.
To be specific, I'm going to use Orchard CMS as a back-end for content editors for an existing website.
My website is too complicated to wrap it into an Orchard custom Module, so I decided to use stand-alone instance of Orchard as backend, and query and show content items manually in the code of my side.
I want to find the way how I could get content items from Orchard using it's API.
Here is some pseudocode I want to achieve:
// somewhere in my site, not in the Orchard application
IOrchardServices orchardFacade = CreateOrchardSystemSomeWay();
IContentManager contentManager = orchardFacade.ContentManager;
var myNeededItems = contentManager.Query("MyContenItemType").ToList();
I have troubles with the implementation of CreateOrchardtSystemSomeWay.
Did anyone try to implement such a way of accessing Orchard CMS data?
Another alternative is to use the database directly, but it would not be very nice approach.
The best bet would be to look at how the Orchard command line instance spins up and try to copy what it is doing. You have full access to the content from the command line, so if you could reproduce how it works somewhat you may be able to pull it off.
I havent attempted to do this, but the way I thought I would have done this if I tried would be to create an abstraction between Orchard and your system through a service like WCF, some sort of anti corruption layer.
Does Orchard CMS have something similar to the s3Slider? I have had a look about but can't find anything quite like it.
Orchard may/may not have something like that, but you can still use s3slider within your Orchard project as it is only jQuery.
There are a few. FeaturedItemSlider is one that can be found in the Orchard Gallery. I also created one myself called "ContentSlider", which can be found on codeplex.com.