your link to better business solutions

Sitecore – Custom Provider to integrate External SQL Server data

Here is the solution I found to integrate external SQL data into Sitecore. Although the data loads into Sitecore, it is extremely slow. I ended up organizing the data alphabetically, which helped.

Follow the steps below:

  1. Download the NorthwindDataProvider source from HERE.
  2. Create a template for the external SQL data you are trying to use.
  3. Modify the NortwindDataProvider, by commenting ModifyBase(); in the constructor as shown below:
          #region ctor
    
          public NorthwindDataProvider(
           string connection,  // Connection string
           string table,       // Table name
           string fieldsNames,  // Fields name divided by pipe separator
           string idField,     // ID Field name (primary key)
           string nameField,   // Name field name (name for content editor)
           string filter,      // "Where" clause
           string templateID,// Template name
           string parentItemID, //Parent item ID
           string hostDatabase // Database into which we integrate
           )
          {
             prefix = this.ToString();
    
             this.connectionString = connection;
             this.table = table;
             this.fieldsNames = fieldsNames;
             this.idField = idField;
             this.nameField = nameField;
             this.filter = filter;
             this.templateID = templateID;
             this.parentItemID = parentItemID;
             this.fieldNames = StringUtil.Split(string.Concat(this.idField, ",", this.fieldsNames), ',', true);
             this.hostDatabase = hostDatabase;
             //ModifyBase();
             CacheOptions.DisableAll = true;
             countRecords = 0;
          }
    
          #endregion
  4. Add the following to the DataProviders section of the Web.Config:
     <dataProviders>
    ...
    <northwindDataProvider type="Sitecore.Data.DataProviders.NorthwindDataProvider, Sitecore.NorthwindDataProvider">
     <param desc="connection">server=SERVERNAME\SQLEXPRESS;User=abc123;password=1234;database=TestingDB</param>
     <param desc="table">ENTERTABLENAMEHERE</param>
     <param desc="fieldsNames">id,description,col3</param>
    <!-- list the columns corresponding with the template -->
     <param desc="idField">id</param>
     <!-- the name of the primary key field -->
     <param desc="nameField">description</param>
     <!-- the name of the field which will be used as the name of the node in Sitecore -->
     <param desc="filter"></param>
     <param desc="templateID">{3353B4C9-CD55-41DA-9A2E-140522E6185B}</param>
     <!-- the id of the template which was created to mimic the query/table -->
     <param desc="parentItemID">{AB466059-A6DE-4D3A-87CF-8FBB09680997}</param>
     <!-- the id of the folder/parent item where the data will be loaded -->
     <param desc="hostDatabase">master</param>
     </northwindDataProvider>
    ...
     </dataProviders>
  5. Add the DataProvider to the Database section:
    <database id="master" singleInstance="true" type="Sitecore.Data.Database, Sitecore.Kernel">
     <param desc="name">$(id)</param>
     <icon>People/16x16/cubes_blue.png</icon>
     <dataProviders hint="list:AddDataProvider">
     <dataProvider ref="dataProviders/northwindDataProvider"/>
     <dataProvider ref="dataProviders/main" param1="$(id)">
     <prefetch hint="raw:AddPrefetch">
     <sc.include file="/App_Config/Prefetch/Common.config" />
     <sc.include file="/App_Config/Prefetch/Master.config" />
     </prefetch>
     </dataProvider>
     </dataProviders>

Once all of this is done, you can restart the Sitecore server and client. Open the content editor and you will see the data loaded under the parent item. If you have any questions please feel free to get in touch with me at asura @ webdatamation . com

Sitecore support was helpful in guiding me. Here are a couple of useful links:

http://sdn.sitecore.net/Resources/Shared%20Source/Shared%20Source%205,-d-,3/Data%20Providers/SQL%20Data%20Provider/Downloads.aspx

http://sdn.sitecore.net/Developer/Integrating%20External%20Data%20Sources/Examples/Hello%20World.aspx

http://sdn5.sitecore.net/Articles/API/Creating%20a%20Composite%20Custom%20Field/Adding%20a%20Custom%20Field%20to%20Sitecore%20Client.aspx

http://sdn5.sitecore.net/faq/api/populate%20lookup%20field%20with%20field%20values.aspx

Some of the source in the above links might not work as intended or cause minor compiler errors.

Get More Results With Long Tailed Key Words

If you are like most businesses with an internet presence, you have already researched a few basic keywords that describe your site. Hopefully you’ve integrated those keywords into the copy on your website to optimize your site for high results in searches for those words.

But don’t let your SEO efforts stop there. Searchers on the internet are becoming more particular – they don’t want to comb through so many results. Many know that general keywords give them irrelevant returns. So searchers are using sentences, different phrases that have been used before, and more specific inquiries to try to get to the information they want.

This creates an opportunity for you as a businesses. Although these longer keywords – or more correctly, keyword phrases don’t get the large number of hits individually, combined together, they now drive half of internet traffic. More than half of the searchers on the internet use three or more words to get what they want.

So as a marketer on the internet, look at your primary keywords and then begin creating phrases that include those words, but are more specific and unique to your business. Between 20 and 25 percent of Google’s searches are unique – they’ve never been searched in exactly that way before. So you want to grab whatever part of that search you can and attempt to make it relevant to your site.

As you become more specific, you have fewer pages competing for those longer phrases, and that means your site has a better chance of being seen.

Use the shorter keywords you’ve already established as being relevant, and interlink those words with longer phrases. If your site sells tulip bulbs, for example, you likely have already chosen the keywords “tulip bulbs” to market with SEO.

Now, optimize those keywords by building on them. Pick up more traffic by integrating such phrases as “authentic Holland tulip bulbs,” “biggest blossoms tulip bulbs,” “black tulip bulbs,” “how to plant tulip bulbs,” and “how do I find good tulip bulbs.”

Besides displaying your products for sale, consider building short (200 – 300 word) content pages answering queries, then also feature products on those pages. Have easy links to the rest of your site, and make an attractive landing page. Link to your related pages.

As with all SEO, you’ll need to do continual revisions and updates to stay ahead of the search game, but using long tailed keywords to help capture those millions of unique searches that may drive more hits to your site.

Keep SEO Ready for Google’s Caffeine

Microsoft made some major strides in the search engine world when it introduced Bing in June of this year, but Google is still the number one search engine in the world.

As we all know, Google is committed to retaining that top billing, and they have responded to Bing and created some innovations of their own. Bottom line for both search engines is more relevant results for their users, and that means that SEO – search engine optimization — is even more important than ever.

While details will be coming forward for the next many months, many bloggers and some other sites have noticed a drop in their SERP rankings with Caffeine and Bing. This doesn’t need to happen, however.

In fact, smaller websites actually have a better chance of raising their rankings, if they use carefully targeted SEO.

Relevant Content
Good content becomes even more important than it has been in the past. If your site can match more precisely what the user wants to find, then you have a better chance of a high ranking.

Be specific in your content pages, and they will have a better chance of rising to the top. Carefully choose your keywords; if anything, specific keywords have become more important.

Be sure to include long tail keywords that get specific about your offerings: red mardi gras beads for parties instead of mardi gras beads or party beads. Think about brands, too: Canon digital cameras instead of digital cameras.

The titles of your pages are important. Each page should have a unique title specifically matched to the content you’re featuring. And you don’t want to ignore the Meta descriptions, even though they still don’t figure into the SEO searches. But if your page lands high up on that SERP, then you want to have an engaging, accurate and catchy Meta description to encourage the click.

The bottom line – although it will take more months to really see how Caffeine and Bing are going to respond, SEO continues to be highly important to web design. Money spent on SEO is money well invested, with the new search engines as much as the old.

Firefox Mobile

Mozilla’s Firefox web browser is a serious competitor to Microsoft’s Internet Explorer, despite initial skepticism from techies that anyone could break the stranglehold Microsoft had developed on the browser business. Sure, it helps that Firefox is “partnered” with the mega-giant Google for some financial backing, but it takes a big shield to stop a big club.

Although only about 20 percent of internet users use the Firefox browser, many of those users are the serious internet surfers. Those in the industry almost universally prefer the open source app to the Microsoft browser.

So when Mozilla announced in 2008 that they would soon release a mobile version of their browser, they generated some buzz. There were some stutter steps with the first versions, but as with all Firefox products, the bugs get worked out pretty quickly.

The latest release is Fennec Alpha 1, and it has been revamped with a CSS user interface. What does this mean? Well, even though the browser only works on Windows Mobile Smart Phones like the HTC Touch Pro currently, the CSS interface means that it will be easily adapted to a wide range of different devices, unlike the original version.

So, if you have another operating system on your phone, no fear. Firefox is making use of  that CSS based interface to create mobile browsers for other systems. Recently, a Firefox official noted that Symbian phones make up nearly half of the smartphone sales, so Firefox will need to “have a presence on the Symbian platform.” So expect a Symbian version to be officially announced in the near future.

Still, there are plenty of other smartphone owners who prefer Firefox as a browser – will Fennec be coming soon to an iPhone near you? Probably not – and you android users need not hold your breath, either.

Firefox officials cite licensing and technical issues that prevent them from developing Fennec for iPhone, RIM and Android. Still, it will be great to see if all the things we love about the PC Firefox browser are integrated into Fennec quickly enough for them to gain a big market share.

Latest Android Phone at T-Mobile

T-Mobile users will be glad to know that they can now get the long-promised myTouchG3 phone. In fact, those who pre-ordered should have already received the sleek touchscreen smartphone, and those want to grab one can go to the T-Mobile retailer near them and snag a new one for $199 and a two-year contract.

This model mirrors the HTC Magic found outside the U.S., with a 3.2 inch touchscreen display and a virtual keyboard.

Reviewers say the phone, which has gone through several name changes on its way to market, is an improvement on the first T-Mobile G1 in nearly every category, and is smaller as well.

While some will regretfully note the lack of a hardware keyboard, others point out that most of the new smartphones at this pricepoint have virtual, not physical, keyboards. While users may be used to this feature (or lack of a feature) some would prefer the physical keyboard.

The Bluetooth stereo support is standard on the new phone, and it has an adequate video and still camera, at 3.2 megapixels.

It accepts a micro SD memory card, although you have to open the battery cover to find it. The autofill choices are more numerous on the G2, and the dictionary seems to do a better job of finding the word you’re after, making typing go more quickly.

The OS is still Android 1.5, and there are a growing number of apps for the system.

This new offering fully committed to Google’s Android operating system only reinforces the fact that Android will be supported in the future and continue to be stronger.  Apps like Webdatamation’s FileDroid, will continue to provide an avenue for businesses to reach new customers and provide useful services to the smartphone community.

Ask about Android development next time to speak to one of our staff.

Business Updates Through iGoogle

If you use iGoogle as your home page, either on a computer or on a smartphone, you may be interested in some great gadgets that can help you track business finance info easily and quickly. iGoogle is optimized for some of the smartphones, making it work more effectively on some than on others.

If you don’t use iGoogle, you may want to consider it, particularly if this financial information is as crucial to you as it is to many in the business world.

iGoogle is the customizable homepage from Google. It has a Google search bar across the top, then you can customize the page with any of a number of Google gadgets that allow you to check your email, get news feeds you select and a variety of other tasks.

There are a number of great gadgets that provide pertinent and updated financial information as well.

Some of the best are:

Commodities Market. So many businesses are affected by the price of commodities (thinking oil, here). Catch each price change through the day with the shifting conditions by using the Commodities Market gadget.

Company Overview. Hear a bit of news about a company and want to see how that news is affecting stock prices, company officers, or financial ratios? Hear about a new company and want to get some info about company news or key management figures?

With the Company Overview Gadget, all you need to do is type in the ticker symbol for any listed company and you’ll snag all that information and more about any publicly held company. You will even find the means to join quarterly earnings calls for any company you’re interested in.

Track all your stocks right on your home page with the Google Finance Portfolios. Get summaries for all the major indexes, then add each of your own stocks to the gadget. As soon as you open your home page, the info is updated, and you get the latest ion your companies. If you want more details on any company at any time, just click on that company to go to the Google Finance page.

There are many other financial gadgets: Currency Converter if you travel often, Latest Bulls keeping you up on what’s hottest in the market, Dow Jones and Live Gold, just to name a few.

Let iGoogle make it simple for you to keep up with your finances whenever you open your browser.

Appcelerator: the Latest Big News From Android

In the past months since Webdatamation released FileDroid, our Android-based file management system, the phones, applications and interest in the Android operating system have exploded.

The latest development in Appcelerator Titanium development software in Beta version takes the next huge step forward in cementing Android as a mobile software platform for the future.

Once this development is complete, both Android and iPhone development will explode as well, as users with not special programming expertise will be able to develop complex applications for both mobile platforms.

The beta version already allows developers to take whatever online and web knowledge and abilities they already have and use them to develop interesting applications for either Android or iPhone platforms.

The use of smartphones has exploded, and it’s no longer just the early adopters who are sporting the devices. They’ve gone mainstream, and soon application development will be mainstream as well.

Titanium delivers a single platform where users can complete mobile, desktop and web development tasks in one platform. Applications for different mobile platforms can be easily completed, tested thoroughly, packaged for delivery, distributed to customers, and and analyzed post release, and all within the Appcelerator Network.

In other words, Titanium beta overcomes one of the primary drawbacks that Android and iPhone development pose – the lack of knowledge in Java for iPhone or Objective-C for Android languages for programming.

With Titanium, developers can write applications with whatever programming knowledge they have (or don’t have) and feel that they’re in a completely comfortable environment.  Titanium gives them native access to every part of the mobile dedvice including the memory and storage, the GPS and all the multimedia functions.

By taking the giant leap of using an open source and open standards, Appcelerator democratizes the mobile application business.

How does that affect you? You need to have a voice in this expanding mobile device market. Bring your ideas to Webdatamation, and we will show you how to make them a reality. You are able to get your company name established now, before the next huge explosion of multiple apps for all the latest mobile devices.