• Hide Elements from Layout Part Orchard CMS

    Layout Part in Orchard CMS is a very powerful tool, but it is complicated for the end user (content editor), as you can see in this picture:

    Also the Dashboard sometimes can be complicated for a non-developer user. In almost every Orchard CMS Website I use in TheAdmin Theme a noadmin.css file. This file is called only when the user in not the Admin and hides things from the end user.

    Add the noadmin.css file in the Styles folder in the TheAdmin Theme. Add these line of code in the …

    Read More 
  • Custom Code Widget Orchard CMS

    In an Orchard CMS Website the CSS and JavaScript files are inside your Theme.

    But there are cases that you need to load a CSS or a JavaScript code in a specific page only. Or maybe you need to make a quick fix in a production website.

    These cases can be solved with this Custom Code Widget created by Constantinos Gatis.

    Installation:

    Enable Import Export Module

    Enable Razor Templates Module

    Import CustomCodeWidget.xml

    If the installation of the Widget is successful, in your Template …

    Read More 
  • Content Carousel Orchard CMS

    Every website needs a Carousel (Image Slider) and this is a content that I use almost in every Orchard CMS Project.

    Installation:

    Enable Import Export Module

    Enable Razor Templates Module

    Import Carousel.xml

    This is a Bootstrap Carousel, so you must have Bootstrap installed to your Orchard Site. If you want an Orchard CMS Bootstrap Theme you can try this one.

    One the other hand if you do not want Bootstrap Carousel to you site, you can use the carousel you prefer. The only thing you …

    Read More 
  • Migrate from SQL Compact Edition to SQL Server

    The installation of Orchard CMS is really fast and you do not even need SQL Server because Orchard CMS can run with SQL Server Compact. SQL Compact is great for development and small websites e.g. Landing Pages. In this post I will show how to migrate from SQL Compact Edition to SQL Server in 5 simple steps.

    Download the ExportSqlCE40.exe from here and copy the ExportSqlCE40.exe to SDF location e.g. \src\Orchard.Web\App_Data\Sites\Default 

    Open CMD in the SDF folder (Shift + Right Click, …

    Read More 
  • Add font size and font color select to TinyMCE

    TinyMCE is a great editor, but by default is not enabled the font size and font color select.The enabling of this two features is really easy.

    Go to \src\Orchard.Web\Modules\TinyMce\Scripts\ and open orchard-tinymce.js.

    Inside tinyMCE.init there is a toolbar property. After the formatselect add forecolor fontsizeselect.

    Now the toolbar property should look like this:

    toolbar: "undo redo cut copy paste | bold italic | bullist numlist outdent indent formatselect forecolor fontsizeselect | …

    Read More