A Glimpse extension for the Orchard CMS. Note- this plugin is currently in active development, and has not yet reached a stable release milestone.
See http://getglimpse.com/ for more information about Glimpse.
- Clone this repo into a folder called
Glimpse.Orchard
in yourModules
folder. - Open your Orchard solution in Visual Stufio, and add the
Glimpse.Orchard
project to yourModules
folder. - The module requires the Glimpse NuGet package to be installed. If you have NuGet package retore enabled, you can just build your solution. If not, then right-click the
Glimpse.Orchard
project in the Solution Explorer window in Visual Studio, clickManage NuGet Packages...
and then click theResore
button. This will download and install the require Glimpse packages into the module. - Next, add the Glimpse.Core NuGet package to your
Orchard.Web
project. The easiest way to do this is to right-click on the solution name in your Solution Explorer window in visual studio, selectManage NuGet Packages For Solution...
to open the Package Manager Diaglog, selectInstalled Packages
and then click theManage
button next to theGlimpse Core
package. Find theOrchard.Web
project in theSelect Projects
window, and ensure that the checkbox next to it is ticked. Do the same with theGlimpse ASP.Net
package. - Finally, you need to slightly re-arrange the
Web.config
file in yourOrchard.Web
project as Orchard out of the box has a catch all route that will take precedence over your Glimpse routes:
- Find the line
<add name="Glimpse" path="glimpse.axd" verb="GET" type="Glimpse.AspNet.HttpHandler, Glimpse.AspNet" preCondition="integratedMode" />
in thehandlers
section, and move it above the line<add name="NotFound" path="*" verb="*" type="System.Web.HttpNotFoundHandler" preCondition="integratedMode" requireAccess="Script" />
You should now be able to navigate to ~/glimpse.axd
and see the Glimpse Configuration Page. If not, then you should check the instructions above for steps you may have missed or got wrong.
You should also be able to enable Glimpse, and then see the Glimpse bar appear as you navigate around your site.
However, you will not be able to see any Orchard specific tabs yet. To enable these tabs, you need to enable the Glimpse for Orchard
feature.
If you would like to see tabs that are specific to Orchard (eg Widgets, Layers, Content Manager etc...), then you will need to do two more things:
- Find the
Orchard.Web
project in your solution in Visual Studio, and add a project reference to theGlimpse.Orchard
project you added to your solution during the installatiuon steps. - Build and run your solution, navigate to the
Modules
page and your admin area, find the feature calledGlimpse for Orchard
and enable it.
Once you have done this, you can enable and disable the Orchard tabs by simply toggling the Glimpse for Orchard
feature on each of your sites.