(828) 862-6667

Sitefinity Blogs


  • Little known Sitefinity configuration settings
  • More detailed examples for Sitefinity component usage
  • Work-arounds for Sitefinity limitations
  • Discoveries and Ah-Ha moments 

How to programmatically create a Sitefinity Library

by Rich Winslow | Jul 10, 2010

If you'd like to create a Sitefinity CMS library in code, you reference the Telerik.Libraries DLL and work with the Telerik.Libraries.LibraryManager. In the example below, we check for the existence of the library and if it doesn't already exist, then we create a new library, apply property settings, then with the Library Manager, we save the library to commit it.

   Dim libThumbnail As Telerik.Libraries.ILibrary
   Dim mgrLibrary As New Telerik.Libraries.LibraryManager()
   Dim strLibraryName As String = "Thumbnail"

   libThumbnail = mgrLibrary.GetLibrary(strLibraryName)

   If IsNothing(libThumbnail) Then
       libThumbnail = mgrLibrary.CreateLibrary() 
       With libThumbnail
            .Name = strLibraryName
            .TypeName = "Image"
            .Expiration.Value = 0
       End With

       mgrLibrary.SaveLibrary(libThumbnail)
   End If

3 Comments

  1. 1 louboutin pas cher 11 May
    Escarpins Louboutin concerning other stuff, Christian Louboutin Prix what Louboutin Moins Cher amount of moments Christian Louboutin Paris them became Louboutin Discount (and complied with) administration tickets to check out users details and also clear away hurtful subject material. Its an Louboutin Paris example...
  2. 2 jordan retro 11 02 May
    <b><a href="http://www.louisvuitton17.com/louis-vuitton-wallet-C25.html">louis vuitton wallet men</a></b>  <b><a href="http://www.louisvuitton17.com/louis-vuitton-wallet-C25.html">louis vuitton eugenie wallet</a></b> and in <b><a href="http://www.louisvuitton17.com/louis-vuitton-new-style-C2.html">louis vuitton handbags new</a></b> the <b><a href="http://www.louisvuitton17.com/louis-vuitton-wallet-C25.html">louis vuitton emilie wallet</a></b>  cat  and  dog  Town  <b><a href="http://www.louisvuitton17.com/">louis vuitton mens wallet</a></b>  Street  Street  posted <b><a href="http://www.louisvuitton17.com/louis-vuitton-wallet-C25.html">mens louis vuitton wallet</a></b>  posters.
  3. 3 air jordans 26 Apr
    open-minded, love life, career, <b><a href="http://www.louisvuittonbag1854.com/ailleurs-C30.html">louis vuitton ailleurs bag</a></b> <b><a href="http://www.louisvuittonbag1854.com/nomade-leather-C26.html">lv nomade leather</a></b> love and pondering <b><a href="http://www.louisvuittonbag1854.com/nomade-leather-C26.html">nomade louis vuitton</a></b> the <b><a href="http://www.louisvuittonbag1854.com/nomade-leather-C26.html">nomade lv</a></b> meaning of life.  <b><a href="http://www.louisvuittonbag1854.com/">lv belt</a></b> Her colleagues, in particular, <b><a href="http://www.louisvuittonbag1854.com/ailleurs-C30.html">louis vuitton ailleurs handbags</a></b> liked the Orioles is a.

Comment

  1.    
     
     
      
       

Why Give Our Secrets Away?

I often get asked why I'm willing to journal all of my Sitefinity discoveries. People think I'm insane to give away for free what I labored over at some point.

Let me answer that in 2 parts:

  • Why journal my discoveries?

    Because I forget and I want to a library of knowledge to refer back to. Oh but it is far worse than that... THREE TIMES now, I've gone to Google and searched for a solution to a problem, only to find MY OWN BLOG entry is #1 in Google and viola! there's the solution!
  • Why give it away for free?

    Because others have been kind enough to do it for us; what goes around, comes around.

    There are all levels of experience, thus someone with less experience may defer to us when needed.

    The lines of 'competition' are very much blurred; in our minds competition is a potential customer or partnership in the right situation.

    We maintain healthy partnerships with one of our competitors; they come to us when they need help and visa versa.

    There is plenty of work out there for everyone if you are putting out quality work and you are straightforward with clients and competition.

Talk to us about how we can help YOU!

 


Don't miss out!

Keep up with our Sitefinity discoveries!
Click on the RSS feed icon below or sign up for our newsletter.


Email Address:
     















Company Info  |   Contact Us  |   Site Map  |   Terms  |   Privacy Policy  |  

Automated Results Computer Consulting LLC, 222 South Caldwell Street, Brevard, NC 28712 (828) 862-6667