Tag: Sitecore

How to know which container’s are item bucket in Sitecore

Items buckets are used in Sitecore to store millions of content items in one container but also to not load all those items in a content tree instead can be searched within the container. The items in bucket container are hidden and the parent-child relationship is lost once bucketed.

There is a lost to tell and discuss about bucket in Sitecore but to enable the content editor to know which container are item bucket can and Item bucket icon can be enabled in the Quick Action Bar to the left of the content tree in Content Editor.

To do this –

Right click on Quick Action Bar and select option Item Buckets

bucket1

This should show a icon on Quick Action Bar for a bucketed item, in this case Airlines item is a buckatable item.

bucket2

 

Hope this helps.

Sitecore project – Fix broken intellisense

IntelliSense provides code completions based on language semantics and an analysis of your source code.IntelliSense suggestions popup as you type. This might trouble you whilst setting up Sitecore new project. 

It comes with the following error-Error CS1061 ‘HtmlHelper<RenderingModel>’ does not contain a definition for ‘Sitecore’ and no extension method ‘Sitecore’ accepting a first argument of type ‘HtmlHelper<RenderingModel>’ could be found (are you missing a using directive or an assembly reference?)


Following can be checked if the Sitecore intellisense is not poping up-1. Check if Sitecore.Mvc namespace is added in web.config. Namespace should sit in  <pages pageBaseType=”System.Web.Mvc.WebViewPage”><namespaces>2. Check if web.config file is in View folder. If not, you might need to add this.3. Follow same as Point 1 for web.config file in View folder.4. Next you must have referenced Sitecore.Mvc dll in the project. Set the Copy Local to true.5. Rebuild solution and re-open the cshtml file(s).
The intellisense should now be working.