Tag

Sitefinity Archives - Falafel Software Blog

Lock Down Content Widgets with UrlKeyPrefix

By | MVC, Sitefinity | No Comments

When you’re working with your content in Sitefinity, a very common practice to display said content is to provide a list and details view. On the page (or pages) containing these views, it is often good to provide a sidebar to provide for additional navigation functionality when users are browsing your content. News articles, for example, can support Tags to help classify stories into various buckets. It’s also nice for users to see a concise list of stories on the sidebar in addition to the more fleshed-out list that the page primarily shows. To accomplish this in Sitefinity appears trivial…

Read More

Accessing Sitefinity Roles in Code

By | .NET, C#, Sitefinity | No Comments

When developing custom solutions in your Sitefinity application, you may need the ability to work with Sitefinity roles. As a developer, you would reach out to the RoleManager that Sitefinity provides, and access the roles from there. However, you may run into an issue where some roles, verified to be a part of your site, are not represented when working with the RoleManager. This post goes into this issue, and shows how to access all Sitefinity roles to work with. Basic Role Access Let’s say you want to list all available Sitefinity roles on your web site. The natural idea…

Read More
sitefinity-status-page-200

Sitefinity Status Page HTTP Response Codes

By | Sitefinity | No Comments

When working with the new Web Services module or WCF services in Sitefinity, you want to be able to allow the requesting clients to properly respond to and handle a failed request. This is generally simple enough, as a failed request would usually be accompanied by an HTTP status code that indicates something went wrong. The status can be reviewed by the client and handled appropriately based on the status code (such as 404 for not found or 500 for a server error). To demonstrate this let’s look at this sample code, which uses the Web Services module API to…

Read More

Customizing Search Result URLs in Sitefinity

By | .NET, C#, Sitefinity | No Comments

One of Sitefinity’s many features is its search capabilities. Using Lucene under the hood, Sitefinity indexes your site content, both built-in content types and dynamic content types, along with static HTML, and allows you to present organized results to the user. You can customized what is and isn’t indexed among other things. Most of the time, Sitefinity is smart enough to create search result URLs that take you directly to the content in question. If you have “/my-news” as your news page, for instance, a particular article URL might look something like “/my-news/2015/1/1/my-article-url”. The search indexer automatically takes the page…

Read More

Working with Hybrid Forms in Sitefinity Widgets

By | .NET, C#, MVC, Sitefinity | No Comments

Throughout the course of web development, you often find yourself in a situation where you need data input from your user. Scenarios range from a simple contact form, to something as complex as a multi-part job application. In either case, Sitefinity offers multiple solutions. The easiest solution, for the simpler forms such as the aforementioned contact form, is to use Sitefinity’s built-in Forms capabilities. Much like with their pages, Sitefinity Forms provide a very simple, powerful way to create and customize even more complex forms for your site. The resulting data is then stored in Sitefinity, and can be set…

Read More

Relating Data in Sitefinity Content

By | .NET, C#, Sitefinity | One Comment

In my previous post discussing properties on custom content, I delved into some of the more complex types that can be properties, including classifications and related media. This post will get into the most complex type to work with: Related Data. This is taking existing custom content types and allowing other content types to have a property that relates one to the other. Relating data can happen with built-in content types (e.g. News), extend across other module builder modules, and even be self-referential! On top of all that, you can even create a custom content type that is the parent…

Read More

Complex Custom Properties for Sitefinity Content

By | .NET, C#, Sitefinity | No Comments

In my previous post I talked about basic access of custom properties in Sitefinity. Namely, strings and numbers. Those alone cover a lot of what you’d use when it comes to custom fields on built-in content types and custom content types. In this post, however, we’re delving into some of the more complex custom properties that can be associated with Sitefinity content. Like in the previous post, we’ll cover both how to query by a complex property (where applicable) and how to fetch the content of the complex property. Classifications (Tags, Categories, Custom) Fetching Tags and Categories within Sitefinity are…

Read More
Sitefinity-Downloads-Page-Latest

Quick Links to Sitefinity Resources

By | Sitefinity | No Comments

Whether you’re setting up your very first Sitefinity website or upgrading to the latest version, at some point you’re probably going to need to hunt down one or more of these items. Hopefully this post can serve as a quick guide (or reminder!) to where you can find these important Sitefinity Resources. Note: Things change so if any of this becomes out of date please let me know and I will update it as time goes on! Sitefinity Project Manager Direct Link: http://www.telerik.com/account/your-products/download-list.aspx?skucid=21 The Sitefinity Project Manager is the tool used to create new Sitefinity sites, as well as performing…

Read More

Retrieving Simple Custom Properties from Sitefinity Content Items

By | .NET, C#, Sitefinity | No Comments

Sitefinity offers many extension points to its core content types, as well as letting you create completely customized content types of your own via the Module Builder. You can add custom fields to existing types like News and Events, or add as many fields as you like to custom content types. Working with these custom properties in code can seem a little daunting at first: How do you do it? What data types do you work with? Which methods do you call on your objects? There are several ways of accessing certain kinds of properties, while others you have to…

Read More

How to Upload Files to your Sitefinity Document Library Asynchronously

By | .NET, ASP.NET, C#, JavaScript, Sitefinity, Web API | 2 Comments

Sometimes, it is necessary for users of your site to be able to upload files to Document Libraries in an asynchronous manner. They could be creating user-generated content and require a space to upload a file to reference in their content, for instance. Using some JavaScript and an ASP.NET WebAPI controller, we can accomplish this fairly simply. The HTML The first thing we’ll need is an input that allows users to select a file. This’ll be a simple HTML input the “file” type. You can put this HTML (along with the associated JavaScript) anywhere on the page, either via Content…

Read More

Storing Sitefinity Sites In Source Control

By | .NET, ASP.NET, C#, Sitefinity | 5 Comments

Issues with Content Management Systems and Source Control When developing a Sitefinity web site, you run into some challenges when it comes to properly storing your work in source control. Out of the box from its project manager, Sitefinity houses its references in the bin directory of the application so that a project build is not required to get it up and running. Being a content management system, a lot of changes occur in the site’s database. When developers want to put their Sitefinity site in source control and wish to collaborate, these sorts of issues can be difficult to…

Read More

Falafel Software and Mammoth Mountain named a 2014 Telerik Sitefinity Website of the Year

By | News, Sitefinity, Telerik | No Comments

Every year Telerik, a Progress Company, honors those websites that have gone above and beyond to create an innovative and unique web experience using the Telerik Sitefinity CMS. This year we are thrilled to announce that Falafel Software and Mammoth Mountain have been named as one of the 2014 Telerik Sitefinity Website of the Year award winners for the “Multi-site” category. In 2014 Mammoth Mountain came to the Falafel team to help them unify the over nine sister websites that showcase the premiere 4-season resorts large selection of amenities and services. Our team rose to the challenge and worked side-by-side…

Read More

Sitefinity 8.0 has arrived at Falafel.com

By | Sitefinity | 3 Comments

Telerik recently released Sitefinity 8.0, adding a whole lot of great features to the already powerful CMS. We were so excited for Sitefinity 8.0 that the same day it came out, we offered classes on this specific release. We also upgraded our own website, Falafel.com, to 8.0 and know that you will enjoy it as much as we have been. Some of the new features of this latest Sitefinity release include improved multi-site capabilities, site-sync and taxonomy support. With this latest release also came the brand new Sitefinity Digital Experience Cloud (DEC), which will take your Marketing team’s potential to…

Read More

Free Webinar: SharePoint & Sitefinity, the Perfect Match

By | Microsoft, Sitefinity, Tools | One Comment

Much like the perfect union of peanut butter and jelly, some development tools — like Microsoft SharePoint and Telerik Sitefinity CMS — are a match made in heaven.  The perfect complement of functionality between Sitefinity and SharePoint allows you to make sure your project is flawless. In this webinar, Falafel’s CEO Lino Tadros and Telerik’s Director of Sitefinity Product Marketing Robert Mattson will share the pros and cons of the two solutions and how they can work for you and your project. Webinar: Microsoft SharePoint and Telerik Sitefinity: The Right Tool. The Right Job. Date: February 25, 2015 Time: 11am…

Read More

Live On-Site Sitefinity Training with Lino Tadros Announced

By | News | No Comments

Falafel is offering four days of training comprised of training for your entire web team. Day one: Dedicated to business users Day two: Focused on designers and admins Day three and Four: Two full 8 hours days of training for developers Choose to bundle them together or purchase the training right for you.   Lino Tadros is a Certified Sitefinity Developer, and both worked on and overseen the development of over 350 Sitefinity projects. He has been awarded Microsoft MVP status twelve years in a row for his numerous contributions to the C# community and is an expert in .NET,…

Read More

Fix for Sitefinity Backend Search Bug when Removing Fields from Dynamic Content Types

By | Sitefinity | No Comments

I ran into an issue in Sitefinity recently, where removing a field from a custom content type caused made the backend search on that type fail. I reproduced this issue on a fresh Sitefinity site, to rule out any potential customizations or changes made in the project I discovered this bug in. Reproducing the Bug In a fresh 7.0.5100 Sitefinity install, I created a Speakers module, and a Speaker content type within that module: Then I created a couple Speakers, so I had something to search for. Searching for John Doe by email address (“example” in this case) yields the…

Read More
Page Selector

Sitefinity: Page Selector Field for Multisite

By | .NET, C#, News, Sitefinity | No Comments

Multisite is a great feature in the Sitefinity, which helps you centrally manage multiple sites using one administration panel. Few days ago I was working in a same environment where I needed to add a Page Selector field to a custom module built using Module Builder. But we needed to make Page Selector field to show pages from the current site. As it takes a rootNodeId (GUID for root page node) so it shows same pages under provided id. So, we needed to make it dynamic so that it would load pages from the current site.

Read More
Sitefinity

Sitefinity Feather an Introduction – FalafelCON slides and resources

By | Sitefinity | One Comment

I had a wonderful opportunity to talk about Sitefinity Feather at FalafelCON 2014. If you attended my talk and are looking for slides and code for the samples we covered in the talk, here they are PPT and CODE If you want to run the sample application locally: Please restore the database(FeatherDb.bak), upload your Sitefinity license file using the backend. And the credentials to get to Sitefinity’s backend for the sample app is admin / password . Venkata

Read More

Using AngularJS with Sitefinity – FalafelCON slides and resources

By | AngularJS, Sitefinity | No Comments

I had a blast at FalafelCON. I met some wonderful developers who are using Sitefinity and had very in-depth talks with most of them. I also had the privilege to talk about Using AngularJS with Sitefinity If you attended my talk and are looking for slides and code that we used in the talk to build a conference web and mobile app, here they are PPT and CODE If you want to run the sample application locally: Please restore the database (AngularDb.bak), upload your Sitefinity license file using the backend. And the credentials to get to Sitefinity’s backend for the sample app is admin…

Read More
Adding Document Selector Field

Document Selector Field in Sitefinity

By | .NET, C#, Sitefinity, Web | No Comments

Sitefinity Thunder lets you create field controls very easily which can be added to custom modules. However some work is required particularly when you need to have a selector field. Recently I built a Document Selector field control so I thought to share it. The purpose of this selector is to allow single document selection and be added as a text field (localizable).

Read More

Add Namespaces to Sitefinity RSS Feed

By | .NET, C#, Sitefinity, Web | No Comments

Alternative Publishing is a useful feature of Sitefinity. I’ve been using it since a long time but recently I had a situation where I needed to add Dublin Core Metadata Element Set elements like and . So I tried to figure out how to include http://purl.org/dc/elements/1.1/ namespace in the feed Sitefinity generates, and here’s the solution. When you override RSSOutboundPipe class, override BuildSyndicationFeed method to add namespaces.

Read More

How to Customize Sitefinity Search Templates

By | Sitefinity | No Comments

If you ever tried customizing Sitefinity search templates, you quickly realize there isn’t a way to do it through the search widget. Almost all other widgets have an option to update the template or update the path to a custom layout file. In this post, we will gain full control by using pure HTML to create our search widget and JavaScript to wire it all together.

Read More