Rough notes for Sitefinity. And how to develop easily custom modules (see end of post).
http://www.sitefinitywatch.com/blog/09-05-04/Bullet_Proof_Guide_to_Installing_Sitefinity_3_x.aspx
Installing on Windows XP.. Had to use internet explorer to gefFt integrated authentication passing through properly:
http://localhost/telerik/sitefinity3.7/
getting the correct user for the database.. tried to add the aspnet user into the database as an admin.
this was a UI bug, just ran again F5 and it worked!
The crowd goes wild 
http://www.sitefinitywatch.com
http://www.sitefinity.com/
Deploying
http://www.sitefinity.com/support/kb/sitefinity-3-x/discount-asp-net-hosting-provider.aspx for shared hosting plan.
http://www.sitefinity.com/support/kb/sitefinity-3-x/godaddy-asp-net-hosting-provider.aspx
http://www.sitefinity.com/documents/InstallationGuide_3_7.pdf – install guide
cmstest.mateerit.co.nz
backed up database on live server
used SQL2008 Management Studio to do Create to Script and uploaded the database tables that way.
Live site worked with just changing the connection string in web.config
however the admin site won’t let me login.hmm if I changed the URL to:
http://cmstest.mateerit.co.nz/Sitefinity/Admin/Default.aspx
I then got a 404 error on editing a page,
Second, you need to turn off healthMonitoring:
<healthMonitoring enabled="false" heartbeatInterval="0">
I then got a 404 again.. hmmm

[done]Licensing
They have just turned off the Community Edition.
Get going in visual studio – see support and live documentation.
get going live on openhost – have sent an email.
look at documents on the web showing how to do stuff in Sitefinity and case studies.
how to embed controls and pages in SF – tutorial webcast?
Changing the order of menu items
properties of pages (ie whether they are listed in the menus)
adding in images into pages
permissions on pages
Services
eg RSS, Search…These are applications that other modules can use
Modules
Generic Content – text and images
News
publishing news
pub date, expiration
Blogs
category, comments (shared with news and generic too)
Lists
FAQ’s
List of people in a company
Polls
Polls, surverys – multi
Forums
Images and Documents
Files?
Events
Newsletter
Wikis
Added in 3.7
strange renderiing issue.
Generic Content
can share content across the site.
News
Categories – these are hierarchial.. these are different categories to other modules.
Tags – these are flat level
Permissions – who can do what.
6:00 in and video died
CntCatID ** didn’t work well
Polls
Works fine.
Master Page and Theming Video
making a new master page and theme
User Controls
made an ascx using the Telerik RadTextBox
created it in MyControls, then uploaded, which SF put in UserControls:
Upload was at the bottom here, and it was put into Misc:
Creating Custom Modules - Contacts
Video here:
http://www.sitefinity.com/support/video-tutorials/extending-sitefinity/adding-complex-functionality-through-custom-modules.aspx
code here":
http://www.sitefinity.com/blogs/ivan/posts/09-02-26/sample_pluggable_module_contacts_pluggable_module.aspx
nolics.Engine.v4.2 dal
references to Telerik.Cms.Web.UI – has exclamation mark
also Telerik.Web.UI.. versioning? Deleted the reference, and added in the new one, and it seems to work.
Here is the management interface for the new contacts module:
and the front end:
and the full page:
Working With SiteFinity API
Simple User Control – blog form.
News, Pages
A custom page which programatically calls
so we created a demo blog programatically through the SF API.
User Management, Permissions and Workflow
setting permissions for the news module for John (who is in the role News Role Special)
And for Pages:
Turning on Workflow:
Made a page and now it is for approval by an admin:
Adding Custom Fields
Here he added in a price to an event, then hooked it up to a Google Checkout link.
Other videos
http://vimeo.com/channels/sitefinity#9986165 – Falafel
http://stackoverflow.com/questions/213719/how-do-you-create-a-visual-studio-solution-file-sln-in-the-same-directory-as-t – solution file
** am here http://cdn-static.viddler.com/flash/simple_publisher.swf?key=a83a6fef
Tricks with the SF API Video
how to get solution coming up in explorer window?
ICMSPage
http://www.falafel.com/training/Sitefinity/sitefinityfaq.aspx
try dragging in Telerik.Web.UII.dll into VS to use the controls.
Look at Linq contacts example.
Modules – if need front end and back end
User Control or Custom Control – if only need front end
Tool – if only need back end.
Custom Modules – Contacts
http://www.sitefinity.com/blogs/ivan/posts/09-02-26/sample_pluggable_module_contacts_pluggable_module.aspx – 26th Feb 2009. 3.6 Arch.
this has 2projects in it:
intra site module if don’t need the module across many implementations of SF
Installed an older version of Contacts from 2007: http://www.sitefinity.com/blogs/ivan/posts/07-12-20/sitefinity_intra-site_modules_the_unbearable_lightness_of_development.aspx
no**how it accesses data?
created 2 new tables in the db – smplt_Contacts and smpl_Departments
added in some files:
App_Code\Contacts
So now have:
and can add/edit/delete from here:
and data is going where we expect it:
and wired up on the front end:
and how to link to a details page:
Intra Site Module 3.6 Version of Contacts using Nolics
http://www.sitefinity.com/blogs/ivan/posts/09-02-26/sample_pluggable_module_contacts_pluggable_module.aspx
http://www.sitefinity.com/support/video-tutorials/extending-sitefinity/adding-complex-functionality-through-custom-modules.aspx – see telerik video_551pro.flv
This is the easier and faster way to develop modules.
ContactsModule is the central class which inherits from SecuredModule.
Admin / ContactsCommandPanel (smaller panel on left
Admin / ContactsControlPanel (larger control on the right)

ContactsManager – middle man between presentation and data layer… so can put in another provicer eg for xml instead of database
ContactProvider – abstract class.. sort of interface
DAL.Contact.dbclass – nolics definition
DAL.DefaultProvider – inherts the ContactsPRovider abstract class. where stuff gets saved to orm.
front end.web.config
put in a custom module
register module with SF
declare a module section and declare the providers we will be using in that module.
Intra Site Module Contacts – LINQ Provider (pre 3.6)
highly recommended to use the new style of architecture.
Contacts Intrasite (3.6) – ie not a pluggable module
this doesn’t have the 3 projects..just simple code!
create new SF website – yellow
move virtual directory to c:\code\sitefinity\yellow
load in a new solution in VS
add into git.
add in contacts module.
create 2 new tables in the database… smpl_Contacts and smpl_Departments
App_Code
ContactsModule is the central class which inherits from SecuredModule.
ContactsManager – middle man between presentation and data layer… so can put in another provicer eg for xml instead of database
then in the web.config search for toolboxControls and add in after the <clear />
<add name="Contacts List" section="Contacts" url="~/Modules/Contacts/Views/Frontend/ContactsListView.ascx" />
<add name="Single Contact" section="Contacts" url="~/Modules/Contacts/Views/Frontend/SingleContactView.ascx" />
Figure out how it works – front end first
the user view simply has a SqlDataSource in it with SQL embedded in the page.
Books Module (3.6)
Also there is a books example based of the 3.6 new architecture:
http://www.sitefinity.com/blogs/ivan/posts/09-01-25/sitefinity_3_6_beta_-_sample_bare_bones_module_on_the_new_backend_architecture.aspx
hmm – not quite the same format as contacts.
Contacts Module LINQ (pre 3.6)
**also need to look at the LINQ provider example in downloads – loos like same contacts example but using linq.
Products Module (looks like 3.6) – pluggable module?
asdf
RSS Service Module – 17th July 2009
http://www.sitefinity.com/blogs/dilyanrusev/dilyanposts/09-07-17/implementing_rss_a_simple_rss_bare-bones_rss_module.aspx
Video on Intra Site Module Creation _451
Notes here: http://sitefinitywatch.com/notes/09-04-16/Introduction_to_Sitefinity_Intra-Site_Module_Creation.aspx
April 16th 2009
Intra-Site module – code is stored in App_Code
Uses LINQ
To Create a new module all we need is: in App_Code\Contacts\ContactsModule.cs
Command panel – left
Control panel – right
Wired Up control panel to an ascx
sw_contacts
sw_departments
Problem with Linq not recognising the FK Relationship. Went into the diagram explorer in Sql server and it worked fine.
Changed names to Department and Contact. Set ID’s to be Auto Generated.
Generic content - can take care of persisting the data for you in SF
Here we are handing our data manually.
problem referencing RAD Grid from telerik
: 16min into video
http://www.telerik.com/community/forums/aspnet/general-discussions/error-creating-template-groups-for-all-controls.aspx
My toolbox is referencing 2010.1.309.35
http://blogs.telerik.com/kevinbabcock/posts/08-12-23/visual_studio_ldquo_error_creating_control_rdquo.aspx
tried deleting the project assemblies:
C:\Documents and Settings\[username]\Local Settings\Application Data\Microsoft\VisualStudio\9.0\ProjectAssemblies (Windows XP)
trying to delete C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files
This worked!!!
http://www.telerik.com/community/forums/aspnet-ajax/general-discussions/ajax-2-9-q2-release-giving-me-gray-hair.aspx
Using RADGrid. 2 LINQ Data Sources. The first which is bound is to Contacts (which has crud working). The second is to departments which is read only.
putting in a DridDropDownColumn:
The crowd goes wild.
Doing the insert:
So we can now create read update and delete to the contacts table via the backend of SF..we can read from another linked table too (department). Using Linq to SQL so have written no SQL. SF includes authentication.
How to Manage Departments?
Here we are using an asp:MultiView, a link button and
However this method can get complex really quickly.. so going to look at 3.6 features:
3.6 Views
We have deleted the user control which was in Contacts called ControlPanel.ascx and made 4 more granular ones.
changed the ContactsModule from
return parent.LoadControl("~/Custom/Modules/Contacts/ControlPanel.ascx");
to
return new ContactsControlPanel();
which is a new class which loads up the more granular ones
The user controls need to inherit from: ViewModeUserControl<ContactsControlPanel>
This is a new concept in 3.6
However we want slightly different views so:
Create ContactsView and DepartmentsView which hold 2 children each.
Make it look nicer:
<MasterTableView CommandItemDisplay="Top" DataKeyNames="Id" CssClass="listItems" width="98%"
added some divs:
<div class="workArea">
<div id="gridPlaceholder">
Wiring up Add Button which is just an asp hyperlink.
Added in Linq code for add and edit.
Added in a new view so when go to Add new Contact, it displays a nice breadcrumb. Even though it actually goes to the edit view!
Front end displaying the data.
Controls
User Controls – Simplest way to bring in business logic. inherit from System.Web.UI.UserControl.
making the Control Title property editable by the back end.
making the bulleted list editable (how it looks)
Towards the end of the examples in the docs, it does persist data.
**Ivans blogs on Control Designers?
LinqCommere and Free Templates
http://www.josephmanderson.com/technology/OpenSourceCommunity/templates.aspx
**review rest of flv videos
How To Deploy Easily?
This is a ‘Web Site’ and not a ‘Web Application Project’
http://www.microsoft.com/downloads/details.aspx?FamilyId=0AA30AE8-C73B-4BDD-BB1B-FE697256C459&displaylang=en
I usually do the pre build events in Projects to change my db connection stri9ng.
**Look in the forums on SF site
** keep watching videos.
**look on youtube for sitefinity
**how to develop in SF – environemtn.. change to Web Application Project?
read this sometime: http://logisolve.blogspot.com/2009/02/aspnet-and-content-management-teleriks.html
### It is fairly easy to develop a back end intra site module that does admin stuff. Custom. I went on to look at Telerik RAD Controls before writing this up. There should be a good example sln. There was a video which was excellent on intra site stuff.