Sunday, April 30, 2017

Sitecore Version Pruner Command

Sitecore Version Pruner Command:

It is just a scheduled task that you can configure to remove old/unused versions from your content tree.

  • Install the appropriate Sitecore package
  • In Content Editor, navigate to: /sitecore/System/Tasks/Commands/Run Version Pruner
  • Set the "Root" field to the item from which to start pruning versions. Change other fields as required.
  • In Content Editor, navigate to: /sitecore/System/Tasks/Schedules/Version Pruner Schedule
  • Modify the "Schedule" field to your desired run scheduled. 

 




How to override Sitecore Version Pruner Command –
 


[Serializable]
    public class VersionPrunerCommand : Sitecore.SharedSource.VersionPruner.Tasks.VersionPrunerCommand
    {
        protected override void ProcessItemTree(Item item)
        {
            if (Sitecore.Context.Job != null)
            {
                Sitecore.Context.Job.Status.Processed++;
            }

            // Get the item in all languages
            foreach (var itemLanguage in item.Languages)
            {
                var languageItem = item.Database.GetItem(item.ID, itemLanguage);
                if (languageItem.Versions.Count > 0)
                {
                    Sitecore.Context.Job.Status.Messages.Add("processing: " + item.Paths.Path + ", " + item.Language.Name);

                    // Run item against the Item Filter rule(s)
                    var ruleContext = new RuleContext();
                    ruleContext.Item = languageItem;
                    this.ItemFilterRules.Run(ruleContext);

                    if (ruleContext.Parameters.ContainsKey("ItemValidForVersionRemoval"))
                    {
                        // Rule was passed, so this item's versions should be trimmed..
                        TrimItemVersions(languageItem);
                    }
                }
            }

            // Process all descendant items
            foreach (Item child in item.Children)
            {
                ProcessItemTree(child);
            }
        }
    }


I hope you like this. Stay tuned for more Sitecore related articles.

Happy Sitecoring :)

Please leave your comments or share this tip if it’s useful for you.

Tuesday, March 21, 2017

Enhance The Digital Customer Experience with Sitecore

In today’s complex IT world, the biggest challenge of any marketer is determining how to leverage and share information across multiple technologies in order to create a master profile of both anonymous and non-anonymous users.

Sitecore is a World Leading Website Content Management Software. It is a powerful technology platform which provides flexibility and scalability with its open API architecture to fulfill business needs.

Sitecore’s Content Management System (CMS) powers users with personalization and conversation management for managing content efficiently for the business.

According to Gartner, Digitalization strategies are driving new investments in WCM systems, enhancing their usage from presenting basic web pages to establishing interactive digital experiences.

WHY SITECORE CMS?

TOP 10 REASONS WHY A BUSINESS SHOULD SWITCH TO SITECORE CMS



1. Manage content, products and assets- all in one place.

Sitecore helps in managing content for each and every experience, also allows customize content as per user’s preferences. Sitecore CMS is the most prominent Content Management System (CMS) that gives solution to manage the enterprise level business efficiently and effectively at a single place.

2. Dynamic Personalization.

Sitecore delivers dynamic personalization and experience editing to users from the moment visitor enters the website, also allows users to keep content fresh and up-to-date.

This makes users in following activities:

  • Dynamic Personalization
  • Display rules and content as part of a single integrated process
  • Preview personalized user experiences and content variations right on the page
  • Assign detailed profiles to guide targeted content development

3. Development and design flexibility.

Sitecore offers a powerful environment to prototype, develop and test while leveraging the rich services and functionality that let users do more with less effort. Sitecore gives the tools and flexibility to create and optimize website design for a pixel-perfect visitor experience. Based on W3C standards, Sitecore natively supports cascading style sheets and conforms to .NET standards.

4. Seamless integration.

Sitecore is a rich and extensible platform allows out-of-the box integration with:
  •    Windows SharePoint Services
  •     Microsoft Dynamics CRM through Version 2011
  •     Microsoft Active Directory
  •     Sitecore solutions successfully incorporate technology Oracle,SAP SAP and many others.
  •     Digital Asset Management
  •     Content Delivery
  •     Security and Authentication
  •     Search
  •     Analytics

5. E-commerce services.

Sitecore turns the website into a business hub by leveraging following facility to the E-commerce business:
  •     Payment processing
  •     Shipping providers
  •     ERP & PIM
  •     Price & catalog management
  •     Order management

6. Optimized mobile experience.

Sitecore users can optimize the mobile experience in the context as per visitor’s unique goals.
It automatically detects and serves device specific content based on whether the visitor is using an iPhone,iPad, Blackberry, Android or other mobile devices.

Businesses can serve location specific offers in the context where visitor is located.
For example, using Geo-IP lookup, businesses can optimize location specific offers to the visitors.


7. Social Media engagement.

Sitecore allows plugging website into major social networks like Facebook, Twitter and LinkedIn   etc. Users can easily continue conversation across social media channels. It has multiple options for blogs, wikis, polls, surveys, forums, web forms and many more.

8. Eliminating complexity.

Sitecore’ next-generation interface is easy yet powerful capable of delivering right capabilities for marketing and business users. Its user interface is quite similar to Microsoft office which makes users feels immediately at home. The Sitecore media library provides native asset management for text, image, video or any other media files with a simple “drag and drop” upload.

9. Customer’s engagement.

Sitecore redefines how businesses and organizations engage with their customers and users by integrating mobile, email and social into a single centralized system. This helps businesses to manage customer engagement from a single and centralized network.
  
10. Security.

Sitecore CMS users adjust and modify look and feel in any aspect of the website. With the help of open API you can adapt the user interface UI to suit your needs. Sitecore integrates with the number of applications like Active Directory to leverage content management safety down to the component and element levels.