Category

Sitefinity

Embedding Sitefinity Widget MVC Views in an External Assembly

By | Sitefinity | No Comments

As we saw in the previous post, you can override the default MVC Views of the Falafel Dashboard Widgets for Sitefinity that are served from the Embedded Resources of the assembly. But how did we get the views there in the first place, and how do we serve them to the Sitefinity widgets while allowing them to be overridden with the physical files? That’s what we will be exploring today. Embedded Resources The first step is of course to embed the views inside the assembly. This is as simple as adding the views to the assembly project, and setting the…

Read More

Don’t let those fixed position headers bother you

By | Sitefinity, Web | No Comments

What are fixed position headers? A common navigation paradigm now a days, thanks to Bootstrap, is “fixed navigation headers”. In this paradigm the navigation elements of the website are in a fixed position generally fixed to the top of the browser screen. See below for an illustration – See the header above and the content starts after that. And when you scroll to see more content The content scrolls but header stays where it is. Why is it a problem in Sitefinity’s context? Now this presents a tricky problem when dealing with templates in Sitefinity. If I were use this…

Read More

Customizing the MVC Views of the Falafel Dashboard Widgets for Sitefinity

By | Sitefinity | No Comments

Last week, Falafel released the new Dashboard Widgets for Sitefinity, allowing you to easily add 11 new widgets to the administration dashboard for Sitefinity 6.2+. The widgets are easy to use and provide valuable information at a glance. But did you know they’re also highly customizable? Because these widgets are built with ASP.NET MVC, you can modify the View templates of each individual widget to change the layout to suit the visual needs of your site. In this post we’ll take a look at how you can achieve this. In a later post, we’ll look at the technical details that…

Read More

Using Sitefinity’s Dynamic LINQ to filter classifications

By | Sitefinity | No Comments

What is Dynamic Linq anyway? Dynamic LINQ has been around in the .NET space for a while. To know more about what Dynamic Linq is and how to use it in general (out of Sitefinity) please head to Scott Gu’s post. Now lets learn about Dynamic Linq in Sitefinity’s context. Sitefinity has implemented its own version of Dyanmic Linq under Telerik.Sitefinity.Data.Linq.Dynamic namespace. In this post we will see how you, the reader, can you Sitefinity’s Dynamic Linq and filter List Items based on classification. Why would I need Dynamic Linq? Dynamic Linq as Scott Hanselman describes makes custom Linq expressions…

Read More

How to Read Toolbox Parameters for Sitefinity Widgets

By | Sitefinity | No Comments

When registering widgets into the Sitefinity toolbox, you’ll notice there is a parameters section. This allows you to add arbitrary key/value pairs of data. So how do you access these parameters? Through ToolboxConfig of course! //GET CONFIG using (var manager = Config.GetManager()) {     var config = manager.GetSection<ToolboxesConfig>();       //GET PAGE TOOLBOX     var pageControls = config.Toolboxes[“PageControls”];     var section = pageControls         .Sections         .Where<ToolboxSection>(tb => tb.Name == ToolboxesConfig.ContentToolboxSectionName)         .FirstOrDefault();       //GET CONTROL FROM TOOLBOX IF APPLICABLE     var controlType = typeof(ContentBlock); //THE TYPE OF WIDGET TO GET     var control = section.Tools.FirstOrDefault<ToolboxItem>(t => t.Name == controlType.Name);     if (control != null)     {         //PULL OUT PARAMETER FROM…

Read More

How to Upgrade Sitefinity… Properly

By | Sitefinity | One Comment

The Sitefinity Project Manager makes things very easy to install and upgrade. There is only one catch though: if you don’t have the slightest customization on your site! And I am talking about the slightest. Even if you have added a user control, a web service, or even a master page, you are out of luck with using the Sitefinity Project Manager for upgrades. Why? Because it completely wipes out your .csproj and web.config files back to vanilla. This means all your custom references, solution configurations, handlers, modules, etc. are erased. Those files are the blueprint to your solution so…

Read More

Using The “Hide Content” Feature in Sitefinity for Responsive Design

By | Sitefinity | No Comments

When working with responsive websites, one often needs to hide certain content depending on which device the site will be seen on. For example certain content may be accurately viewed on a laptop, but not on a tablet. Or content that looks good on a laptop and tablet, may not display correctly on a mobile device. Certain libraries like bootstrap handle these type of queries, but did you know this is also available in Sitefinity? It is pretty simple to set up. First make sure that your site is set up for responsive design through the Sitefinity admin, you can…

Read More

Control Designers for JavaScript Widgets in Sitefinity

By | Sitefinity | No Comments

We are excited to introduce a new feature in Falafel Tornado: control designers for your HTML5 / JavaScript widgets!! Take a fresh look at the control properties for widget blocks: There’s a lot more going on here than meets the eye. You still select the HTML5 / JavaScript widget to use as before, but what’s interesting is that you now get a whole bunch of other selectors. These selectors will feed the property values to your widget block to consume! For example, say you have an image carousel. It needs an album ID right? That way, it can slide through a…

Read More

Caching and compression of static content with Sitefinity 5

By | Sitefinity | No Comments

In a perfect world you aim for everything to be cached, except the actual page content to minimize the download time and speed up a visitors user experience. Some caching might take place on the server, or by the browser but ideally you want to end up with a picture that looks somewhat like this: And while you can control the caching of the page content itself from within Sitefinity (page>properties) there is no built in method to control static content like javascript, css or images. In order to achieve this optimum setup, we need to turn to our web.config…

Read More

Modular JavaScript Design with Sitefinity and RequireJS

By | Sitefinity | No Comments

What if I were to tell you that you can build modular client-side applications in Sitefinity and also not worry about JavaScript dependencies or conflicts? This should be music to your ears if you do any JavaScript development in Sitefinity. First thing is you need to have solid understanding of what the Asynchronous Module Definition (AMD) is. Essentially, it is a standard for defining self-contained modules that loads dependencies asynchronously on demand. I suggest you take 10 minutes to read my blog post about this with examples. This will permanently change the way you think about JavaScript development. Once it…

Read More

Falafel Releases Sitefinity 5 Nuts & Bolts

By | .NET, Sitefinity, Web | No Comments

Today, Falafel Software, the premier Consulting & Training company for Sitefinity worldwide, released a new version of its book “Sitefinity 5 Nuts & Bolts”.   The book is released for FREE for ALL of our current Sitefinity 4 Nuts & Bolts’ customers.  Just log into your account and download the new 5.0 book. For all new customers purchasing the new Sitefinity 5.0 book, you will receive the 4.0 book as well plus all the source code for all the samples, modules and widgets. Get your copy today and start enjoying the new Sitefinity 5 product while discovering many many new…

Read More

Falafel Blogs on Sitefinity 5 Released

By | Sitefinity | One Comment

Today, we are proud to announce that the final bits of the conversion of blog.falafel.com are finally in place and the blog site is better and faster than ever.  The final issue that stumped us for the last 10 days was the inability to use LiveWriter to publish blog posts to Sitefinity 5.  After serious GUID debugging, Fiddler and Wireshark sessions, we were able to pin point that the conversion from Sitefinity 3.7 to 5.0 caused a problem regarding the assignment of ONE of the Blogs (MINE ) as far as owner assignment between the OpenAccess37MembershipProvider and the Default one…

Read More

Using Sitefinity 5 Claims Authentication

By | Sitefinity, Telerik, Web | One Comment

Using Claims Authentication with Sitefinity 5, you no longer “hit the wall” when integrating your site within a larger security context. Prior to version 5.x, Sitefinity used Forms Authentication for verification of user credentials to allow access to Sitefinity applications. Forms Authentication retrieved the user’s name/password and checked it against data stored in the the database for that particular Sitefinity application. That works well enough for a single web site but comes up short in scenarios required by many organizations: “Single Sign On” (SSO) where you have several Sitefinity sites that should have only one login for the user. SSO allows you to show a…

Read More

Migrate Sitefinity from MySQL to SQL Server

By | Sitefinity | No Comments

Here is a technique to migrate Sitefinity from a MySQL database to a MSSQL database. I will be assuming the following things: You already have a Sitefinity DB hosted in MySQL You already have an empty Sitefinity DB created in MSSQL Here is what you need to do to move the data from MySQL to MSSQL. Download and install the MySQL ODBC Connector Configure a new ODBC System DSN with the connection info for your MySQL DB, specifying the following string for the initial statement: “set sql_mode=’ANSI_QUOTES’”. I found it convenient to specify and save the login credentials in the…

Read More

Sitefinity 4 Generic APIs vs Fluent APIs

By | Sitefinity | One Comment

I just released a new video demonstrating the power of the new APIs in Sitefinity 4.0 Beta that was just released last week by the Telerik team (CONGRATULATIONS! to the entire Telerik team worldwide). The essence of the video was to demonstrate the use of the regular APIs to create a new PAGE into the system using two different approaches: 1- The Regular API way that most core developers will use that require understanding of the architecture and the fundamental knowledge of how the Object hierarchy relates to the database layer behind Sitefinity 4.0 2- The FLUENT API way that…

Read More

Sitefinity WebUIEditors and Selectors

By | Sitefinity | No Comments

Still as of Sitefinity 3.7 SP3, it is still really hard to find out all the available WebUIEditors and Selectors available for Sitefinity properties during Custom Control Development. With some snooping around using .NET Reflector, you could see they are all over the place.  Most of them are undocumented so be careful 🙂 These are the 20 WebUIEditors and Selectors currently found in the shipping 3.7 SP3: Telerik.Blogs.WebControls.BlogsSelector Telerik.Cms.Engine.WebControls.Categories.CategoriesSelector Telerik.Cms.Engine.WebControls.ContentSelector Telerik.Cms.Engine.WebControls.HtmlContentEditor Telerik.Cms.Engine.WebControls.RssContentSelector Telerik.Cms.Engine.WebControls.Tags.TagSelector Telerik.Cms.Web.UI.CmsUrlWebEditor Telerik.Cms.Web.UI.DhlIdEditor Telerik.FileManager.UrlWebEditor Telerik.Libraries.WebControls.DocumentsSelector Telerik.Libraries.WebControls.DownloadListSelector Telerik.Libraries.WebControls.GallerySelector Telerik.Libraries.WebControls.ImageSelector Telerik.Libraries.WebControls.LibrarySelector Telerik.Lists.WebControls.ListSelector Telerik.News.WebControls.NewsSelector Telerik.Notifications.Newsletters.WebControl.GroupSelectionList Telerik.Polls.WebControls.PollBoxEditor Telerik.Rss.WebControls.RssFeedSelector Telerik.Search.WebControls.IndexingServicesPicker These are the class names with their full namespace that needs to be…

Read More

Telerik Sitefinity 4.0 and the public’s reaction

By | Sitefinity | No Comments

The week of November 8th 2010, Telerik conducted a great Webinar presented by my dear friend Gabe Sumner, Sitefinity’s Chief evangelist at Telerik. During the webinar, Gabe showed many features of the upcoming Release Candidate and also shared with the community, almost 1000 webinar attendees, the new pricing model, the new partners model and their new tiered approach. I have to admit, I have been working with Telerik for the last 6 years on all their products as a partner, consultant, trainer and most of all a friend of the company and a close friend to their management and lots…

Read More