FAQ Database Discussion Community


Sitecore ECM: Could not establish trust relationship for the SSL/TLS secure channel

ssl,sitecore,ssl-certificate,sitecore6,sitecore-ecm
I am getting the following error whenever I try to do a Test Connection in Email Campaign Manager. The underlying connection was closed: Could not establish trust relationship for the SSL/TLS secure channel. The following is the error which is recorded in the log ManagedPoolThread #11 11:41:08 INFO Job started:...

Sitecore ContentSearch by field and relevance

sitecore,sitecore-mvc
I'm using Sitecore 8 MVC .net 4.5. I have boolean field Is Sponsored and I need to order all items such as first with field Is Sponsored = true and by relevance. I found if I add order by Is_Sponsored I'm losing relevance order. So my question is: is there...

How to download Sitecore Images

sitecore,sitecore6
var database = Database.GetDatabase(“master”); var images = database.SelectItems(“/sitecore/media library/your image folder/descendant::*[@@templatekey=’jpeg’]”); foreach (var image in images) { var mediaItem = (MediaItem)image; var media = MediaManager.GetMedia(mediaItem); var stream = media.GetStream(); using (var targetStream = File.OpenWrite(Path.Combine(“your data path”, image.Name + “.jpeg” ))) { stream.CopyTo(targetStream); targetStream.Flush(); } } I'm new to Sitecore, can...

Sitecore Base Template

sitecore
I have template (A) and template (B). B template has base template (A). But, if I update layout presentation in template (A)'s standard values, it doesn't effect on template (B)'s standard values. Why???...

Sitecore Wrong Media File Path

sitecore,media-library
When I add an image through Media Library in RichTextEditor, the image path will be like this, <img src="~/media/A9DCE5769ED7445CA76F984FAF63A7D7.ashx?la=en" /> However, when I publish page item with this image, the image doesn't appear in Live. If I manually put slash ("/") in front of path, it works. <img src="/~/media/A9DCE5769ED7445CA76F984FAF63A7D7.ashx?la=en" />...

Is there a way in Sitecore to display a link to a media library item that the user does not have access to?

security,sitecore,sitecore7.5
I want to use Sitecore security to make access to certain documents on a site require registration/login. However the client would like to show links to these documents to anonymous users as a way to let them know that if they register/login then they will get access to these protected...

powershell script to remove all content items for french version in sitecore

powershell,sitecore
I wanna use this script to remove all content items for french version and leave the English version in sitecore but wanna make sure it looks good before excuting it :( cd 'master:/sitecore/content' function FilterItemsToProcess($item) { Get-Item $item.ProviderPath -Language "fr-CA" } $list = [System.Collections.ArrayList]@() $itemsToProcess = Get-ChildItem -Recurse . |...

Limiting Bucket Search using QueryBuilder field type in Sitecore

sitecore,query-builder,buckets,sitecore8
In our Sitecore application, we have a template called NewsArticleSlide which renders a news article on a carousel slide. This template has a field called "News article" which contains the ID of the news article being rendered. The type of this field up to now has been droplink, which has...

Sitecore - Require login

asp.net,sitecore
So for my Sitecore site I am trying to make it so the user is logged in and can not use the extranet\Annoymous account. I have read and tried Implementing Sitecore Extranet login on a website But I missed something, the asp forms authentication has side issues that it returns...

How to get an array of Sitecore Sibling Items?

asp.net,sitecore,sitecore6
I want to get an array of all the sibling items of the current item so that I can display the thumbnails in them. how can I achieve this? Thanks in advance....

Membership for external users in Sitecore 8

asp.net-mvc-5,sitecore,asp.net-membership,sitecore8
I want to build a user registration store for Sitecore 8 website. The users will go in an external database. Sitecore.NET 8.0 (rev. 150223) .NET Framework 4.0.30319.18052 Razor Version=3.0.0.0 MVC 5.2.3.0 Asp.net MVC comes with the membership built in (AccountController, views, etc). I wanted to port this to my Sitecore...

Sitecore installation wizard freeze

installation,sitecore,wizard
I need to install a package on my sitecore instance but for some reason when I click on upload button in the Intallation wizard the whole UI greys out and I can't even upload my package. Its blocking me from moving forward...

Sitecore: The layout for the requested document was not found

sitecore,sitecore7
Only when I go to preview an item from the Content editor I get an error message The layout for the requested document was not found. I get redirected to http:///?item=%2f&layout=%7b00000000-0000-0000-0000-000000000000%7d&device=Default However, if I take the url and type it in directly or cut and paste like http:///?sc_itemid=%7BDA4BABB2-2605-46C5-8BA6-52215A826154%7D&sc_mode=preview&sc_lang=en Preview works....

Sitecore WFFM error Unknown connection string. Name: 'wfm'

sitecore
I am new in Sitecore, i have created form using WFFM and i want to save form in sqlServer, so i have installed SaveToDatabase from here, trying to save from in database but it is giving error: 4184 20:12:45 INFO HttpModule is being initialized 4184 20:12:46 ERROR Save To Database...

Sitecore: reference item in other database ( source field )

c#,sitecore
I'm using Sitecore 8 Update 2. I've added extra fields to the user profile and have some static items that i would like to use to fill up droplist fields. The template for the user profiles however is in the core database and the items i want to use to...

Is @Html.Sitecore().VisitorIdentification() required with Sitecore 8 MVC?

sitecore,sitecore-mvc,sitecore8
Is the following call to VistorIndentification() still required within Sitecore 8 MVC layouts / views? @using Sitecore.Mvc.Analytics.Extensions @Html.Sitecore().VisitorIdentification() Even without it, page visits appeared to be tracked in Tracker.Current.Contact.System.VisitCount and within the Experience Profile information. What feature or tracking ability is dependant on this?...

How to attach Sitecore context for controller action mappled to route robots.txt?

sitecore,robots.txt,sitecore-mvc,sitecore8
In Sitecore I'm trying to set up a way for our client to modify the robots.txt file from the content tree. I am attempting to set up a MVC controller action that is mappled to route "robots.txt" and will return the file contents. My controller looks like this: public class...

set media url in sitecore 7.x

sitecore,sitecore7,media-url
We have plugin for sitecore that allows content translation. When page is selected to be translated to different language new version of the target language is created and fields are updated with the translated content. We also translate images therefore we have to change image path in the target item...

How can I cancel a running Sitecore Job?

sitecore
How can I cancel a running Sitecore Job? There doesn't seem to be a method for this other than JobManager.RemoveJob(), and that doesn't seem to do anything other than remove it from the list of actively running jobs. It doesn't seem to actively cancel anything. Am I missing something here?...

Sitecore How to Get Control's Data Source Value

sitecore,datasource
Is it possible to get __Rendering control's template field value on content item? Especially, I'd like to get "Data Source" field value defined in control on page item, like below screenshot. As shown in screenshot, I have some controls in page item and I'd like to get control's "Data Source"...

Update Sitecore and SIP together?

sitecore,sip
I currently have the task of updating a Sitecore Instance 6.6 with SIP 3.2. The target is reaching Sitecore 7.0, so we can use Item Buckets. The problem is when I update Sitecore to 7.0, it doesn't work with SIP 3.2, because assembly references doesn't match anymore and Sitecore 7.0...

Sitecore 404 page from item

sitecore,sitecore7,sitecore7.2
Getting Sitecore to respond with a 404 error code, this blog seems to be the most referenced, where a processor is added to the httpRequestBegin pipeline and the StatusCode is set to 404 while the response is written from the results of a separate request. Like so: // Request the...

Difference between Sitecore solr index rebuild and refresh

indexing,solr,sitecore,sitecore7.2
we would like to know what is the difference between Sitecore full index rebuild and index refresh. When we want to refresh item in index it took ~2 min. Full rebuild of master index took ~10min. Why index refresh is so time consuming? We are refreshing item using this code:...

Sitecore 7: “Clear on Index Update” not working?

caching,sitecore,sitecore7,sitecore7.2
Refer to this post for a description of the feature. My HTML cache is enabled, and I have turned on "Clear on Index Update" for one of my Renderings. However, the entry for my Rendering is NOT marked with any special token in the cache - I verified the cache...

Sitecore reindexing fails with no error/log after SC7 upgrade

lucene,sitecore
I've spent a few days working on our SC7 upgrade (from Sitecore 6.6) and I'm running into an issue rebuilding the indexes (Sitecore desktop > control panel > indexing > indexing manager > web > rebuild). I've stopped our various scheduled tasks and am using a private instance of SC,...

How to remove broken links in Sitecore

sitecore
We've got a Sitecore site where several items have broken links to an old workflow state that is no longer with us. I know that you can remove links when you delete an item, but I'm not seeing an interface to simple remove a broken link on an item, when...

Sitecore Auto-Save If Sublayout Added on the Page

save,sitecore,components,sublayout
Is there anyway to make auto-save once I added a sublayout component? I created one sublayout and if I add it on the page in page editor, it doesn't appear on that time. By saving the item, it appears on the page editor. So, I'd like to make if sublayouts...

Sitecore How to Get Item's Parent DataSource for Specific Control

inheritance,sitecore,datasource
I have a template with navigation control with EMPTY datasource in layout detail. Based on this template, I created a item (A) and updated Nav's datasource in the item's (A) layout detail. If I create an sub-item (B) under the item (A), is it possible to get its parent's Nav...

Sitecore 7.5 MVC and HttpContext.Session.Timeout set to 1 min

asp.net-mvc,session,sitecore,sitecore7,sitecore7.5
I have the session timeout set to 20min but when I try to access this value from action I'm getting 1min instead. Web.Config settings are: <sessionState mode="InProc" cookieless="false" timeout="20"> <authentication mode="None"> <forms name=".ASPXAUTH" cookieless="UseCookies" timeout="20" /> </authentication> In Global.asax.cs in Session_Start value of timeout is 20min: HttpContext.Current.Session.Timeout But in action...

Sitecore Show parent and child items correctly using Nested Repeater

c#,asp.net,sitecore
In the sitecore I have following structure: Europe Germany France Sweden Asia China Thailand Middle East U.A.E Iran I am using Nested repeater to show this structure in Asp.net <asp:Repeater runat="server" ID="repSubsidiaryList"> <ItemTemplate> <li> <%# Helper.Field(Container.DataItem as Item, "Short Title)%> <asp:Repeater ID="InnerRepeater" runat="server"> <ItemTemplate> <li> <%# Helper.Field(Container.DataItem as Item, "Name")%>...

Items not moving back to Draft when edited in Sitecore

sitecore,sitecore-workflow
We have a site with a very basic workflow for items. It's Draft > Queue for publish (action) > Ready for publish. Authors work on and item, then click "Queue for publish", thus moving the item in to the final "Ready for publish state. We have an agent that is...

Sitecore Content Editor - Adds Styling

c#,html,css,sitecore
Whenever a picture is edited (Even if no height or width has been touched) then it adds: style="height: 123px; width: 123px;" Before edit: <p><img alt="" height="123" width="123" src="~/media/123" /></p> After edit: <p><img alt="" src="~/media/123;h=123&amp;w=123" style="height: 123px; width: 123px;" /></p> The problem is that the style height and width added by...

Is Sitecore 6.6 compatible with Web Server running on Windows Server 2012 OS?

sitecore,sitecore6,sitecore7
I am currently running a Sitecore 6.6(rev. 121015) on Windows Server 2008 R2 web server and I am trying to migrate it to the web server running on Windows Server 2012 OS. When I did I am getting dependency errors for my project dlls. I found an article that says...

Update the standard font style for the /ja-jp/ website to Microsoft's Meiryo font

javascript,html,css,fonts,sitecore
In my sitecore website there is some enhancement requested from client. They want me to update the standard font style for the /ja-jp/ website to Microsoft's Meiryo font. This includes updating all HTML-based stylesheets related to all templates and sublayouts. I have limited time so want to start with best...

Get the all the childrens from Sitecore item in a parent child relation

sitecore
The following code will return all the childrens and SubChildrens in a list. But it's not keeping the ordering of Parent/Child relation. It will first return all the Parents Items and then all the child Items. Is it possible some how to keep the items in order and get them...

Serious Sitecore MVC/Glassmapper issue

asp.net-mvc,sitecore,glass-mapper
We have a Sitecore site for a client that is throwing an error that seems related to MVC and/or Glassmapper. It happening on the content delivery server when under some load during load testing (not massive). It appears to happen when the site is first compiling. Prior to this event,...

Moving sublayout that contains another sublayout from one placeholder to another

sitecore,sitecore7.2
I have an issue in the Page Editor where i have created a sublayout in a placeholder, and add another sublayout inside that sublayout (nested sublayout). And when i moved the parent sublayout to another placeholder (still using Page Editor), I am only moving the parent sublayout, but not...

Sitecore Changing Template

inheritance,sitecore,placeholder
I have old template and new template. Both templates have standard value for controls and placeholder key names are different. But, as shown in the screenshot, manually added controls (not from standard values) in page item (old template) don't reflect in the page item (new template) after changing the old...

Sitecore 8 - Mongo automation DB

sitecore,sitecore8
I am setting up Sitecore 8 and a few of the blogs mention the “automation.live”, “automation.history” DBs. Example But in the official documentation there is no mention of these Does anyone know what “automation.live” & "“automation.history” are for, and if they are required?...

Missing InstanceContext when upgrading from Glass.Mapper.Sitecore to Glass.Mapper.Sc

c#,sitecore,glass-mapper
I'm upgrading a project from Glass Mapper v2 (Glass.Mapper.Sitecore) to v4 (Glass.Mapper.Sc) and I ran into an issue where our solution was using the InstanceContext object to get classes by template Id. I couldn't find that InstanceObject or a similar class in the new Glass Mapper. Here's a snippet of...

Not able to deploy existing azure DB through sitecore azure module

sitecore,sitecore-azure
I am doing some azure based deployment of my custom sitecore solution which has the custom databases, I am able to deploy already CE or content editing farm in staging mode, but while deploying to CD farm I am getting following error. I have followed KB article and tried every...

Sitecore WFFM checkbox values on Create Item

sitecore
I'm using the Create Item save action in a web form. I have a checkbox list that points to a folder containing category items. This is mapped to a Multilist field on the item template that it will create when the user submits the form. But it's passing the checkbox...

Sitecore 8 error SPEAK error after upgrade

asp.net-mvc,authorization,sitecore,sitecore8,sitecore-speak-ui
I just did a test upgrade on a Sitecore 7.5 site. The upgrade process went off without a hitch. I navigated to /sitecore and saw the fancy new 8 login screen. I entered my admin creds and was then presented with a .net error: Could not get pipeline: speak.client.initialize.layout (domain:...

Sitecore Domain Access View

sitecore
Suppose that I created "newDomain" in Sitecore and there are many users such as newDomain/author1, newDomain/author2, newDomain/developer1 and so on. Also, there are other domains to make users separate in Sitecore, based on their domain. That means Domain1 group can only access page1 item and Domain2 group can only access...

Sitecore Linkmanager always links to Web Database link even from page editor

sitecore,page-editor
Hi am trying this code public String GetItemUrl(Item item) { Sitecore.Links.UrlOptions urlOptions = (Sitecore.Links.UrlOptions)Sitecore.Links.UrlOptions.DefaultOptions.Clone(); urlOptions.SiteResolving = true; return Sitecore.Links.LinkManager.GetItemUrl(item,urlOptions); } ViewBag.thisurl = GetItemUrl(item) and then from cshtml a href="@ViewBag.thisURL" ..... When I click on the link, this will always point to CD database and I am not able to edit...

Determine which role is restricting access in Sitecore

sitecore,sitecore7,sitecore7.2
I've got a Sitecore Multilist that has several pre-selected items on it. Certain users aren't able to see the items on the list, because they don't have read access to the items. The problem I've run into is that these users have some 12 roles and I can't figure out...

Sitecore logs full with WARN Datakey length bigger then 100 chars, and was trimmed

sitecore,sitecore-dms
We are having some problems with the following line in the log files of Sitecore: WARN Datakey length bigger then 100 chars, and was trimmed It's not really a massive problem, but it is logging this up to 2000 times in one day. If I have investigated further: probably it...

Sitecore HOWTO: Search item bucket for items with specific values

search,sitecore,sitecore7,bucket,sitecore7.5
I have an item bucket with more then 30 000 items inside. What I need is to quickly search items that have particular field set to particular value, or even better is to make something like SELECT WHERE fieldValue IN (1,2,3,4) statement. Are there any ready solutions? I searched the...

Sitecore webforms for marketers datetime issues

c#,asp.net,sqlite,sitecore,web-forms-for-marketers
We are in the process of upgrading sitecore from 6.5 tot 7.2, and the webforms for marketers module from 2.3 to 2.4 If I submit a form, for example on 0900, log in to the sitecore admin, and open the Forms Report, everything is inserted correctly, except for the "Created"...

Setting Publishing target in Sitecore

sitecore,sitecore6,sitecore7,sitecore7.2
I'm trying add the remote server in my publishing targets. I have followed the procedure explained by the Dheer rajpoot. After updating the web.config, when i tried to load Sitecore, its showing me following error Unknown connection string. Name: 'SITtest' In Sitecore I have created the publishing target as they...

Sitecore: efficient way to use LINQ to compare against an ID

c#,linq,sitecore,glass-mapper
I have a LINQ query retrieving a list of , such as this: var results = SearchContext.GetQueryable<Person>() .Where(i => i.Enabled) .Where(i => i.TemplateName == "Person") .Random(6); Each object of type "Person" has a "Location" field which is also a Glass mapped item, and hence has an ID; I would like...

Where to create the Articles in Sitecore?

sitecore,bucket
I'm trying to understand the best approach to create article items in my sitecore 7.2 project. Basically I'm considering 2 options: 1 - Create an article as a page; 2 - Create an article as a Site Data Item. 1 - Create article pages under a given page (i.e. My...

Sitecore 7.2 and SOLR: exclude clones from web index

solr,sitecore,sitecore7,sitecore7.2
I'm trying to exclude all clones from Sitecore's web index. I've created a custom crawler inheriting from Sitecore.ContentSearch.SitecoreItemCrawler overriding the IsExcludedFromIndex method with the following code: protected override bool IsExcludedFromIndex(SitecoreIndexableItem indexable, bool checkLocation) { if (indexable.Item["Hide from Search"] == "1") return true; if (indexable.Item.IsClone) return true; return base.IsExcludedFromIndex(indexable, checkLocation); }...

Sitecore ECM: User unsubscribing newsletter receives no confirmation email

email,sitecore,unsubscribe,confirmation-email,sitecore-ecm
My unsubscribe-link does not work properly. The user IS moved from Opt-in into Opt-out, but receives no confirmation email. Do I have to do anything to make that happen? Note that I have not altered anything in /sitecore/content/ECM/[MyTarget Audience]/Standard Messages/Self-Service Subscription/Unsubscribe Notification. In my footer I link to a existing...

Glass Mapper V4 Language Item Fallback

sitecore,glass-mapper
I am using Glass Mapper v4 with Autofac and cant figure out how to make it work with the Language Item Fall back module. There are examples of creating a class that implements IObjectConstructionTask (see below) public class FallbackCheckTask : IObjectConstructionTask { public void Execute(ObjectConstructionArgs args) { if (args.Result ==...

argument type object is not assignable to parameter type 'Sitecore.Data.Items.Item'

asp.net,sitecore
I want to bind sitecore data (child Items) to repeater. In the Markup Code I am getting the error mentioned in title of this question. I am getting error basically on this line: <sc:Text runat="server" ID="Title" Item="<%# Container.DataItem %>"/> Here is the Mark up code: <asp:Repeater ID="RepeaterExample" runat="server"> <ItemTemplate> <h3>...

Is there an easy way to fake a Sitecore Device for testing?

sitecore
We have a custom device set-up in a Sitecore installation. Is there an easy way to get my desktop to render that? I'd imagine there should be a nice parameter sc_device= we can tag onto the url, but it doesn't seem so...

Posting back to current page in Sitecore

c#,asp.net-mvc,sitecore
I am trying to create a few post methods on my page using Sitecore 7.2, unfortunately they are not working correctly and I can't seem to find out the best way to handle it. I have two methods [HttpGet] public ActionResult ViewApplicationsPage(){ //do stuff } [HttpPost] public ActionResult ViewApplicationsPage(ApplicationPageViewModel model,...

How should I start a Sitecore campaign when the entrance page is an alias?

sitecore,sitecore7.2,sitecore-dms
We have a site with extensive use of product specific contact forms (Web forms for marketers module), so that almost any page can be considered a landing page. We want to run campaigns that make use of existing pages/forms instead of creating new pages specific to the campaign. As we...

Sitecore 8 Installation Wizard in Development tools not working

sitecore,sitecore8
After I installed sitecore 8, looks like I cant access installation wizard on development tools. All I can see is blank popup on all the browsers. I checked the log files and could not find anything related. Any suggestions will be appreciated....

Sitecore Search Orderby

sitecore,sitecore7
I am seeing a very strange behaviour from the Sitecore 7.1 Search when ordering by a string field. The code is something like this: var indexableItem = new SitecoreIndexableItem(Sitecore.Context.Item); var searchIndex = ContentSearchManager.GetIndex(indexableItem); var context = searchIndex.CreateSearchContext(); var results = new List<Item>(); var count = 0; var totalSearchResults = 0;...

Server error in '/' application on selecting any country list from dropdown list in sitecore

asp.net,validation,sitecore
I have sucessfully redirect one of my page to 404 error page using redirection in sitecore. Problem is when i am selecting any country from dropdown list i am getting below error : "Invalid postback or callback argument. Event validation is enabled using in configuration or <%@ Page EnableEventValidation="true" %>...

Sitecore.Placeholder(“content”) searching in wrong location for partial view

asp.net-mvc-5,sitecore
I have an MVC 5 application set up and it deploys to a Sitecore 8.0 Website. I have the Sitecore home item set up to render two "controls" - a PartialView Rendering called PageHeader and a Controller called HelloWorldController. I am invoking these on a Layout which is assigned to...

Two URLs that you can use to hit the homepage

redirect,seo,sitecore
Having a sitecore website. Situation is for every country, there are two URLs that you can use to hit the homepage. www.abc.com/en/home and www.abc.com/en We only want one - this is bad for both SEO and analytics. I want to retire www.abc.com/en/home and want www.abc.com/en to only work. I already...

Sitecore: InvalidOperationException: The asynchronous action method 'Search' cannot be executed synchronously

asp.net-mvc-4,asynchronous,.net-4.0,sitecore,sitecore6
We are using Sitecore 6.6 under .NET 4.0 and using MVC 4 with it. we are trying to implement an asyncontroller and async action within it. We call this action using an ajax request. we have set up a route to the action and also added that route to the...

Sitecore “personalize” button access for non Admin users

permissions,sitecore,personalization
Our CMS content editors are not configured as Sitecore Admin users. The content editors don't have access to the "Personalize" button in the Device editor. The users are added to a custom sitecore role which are inherited from these Sitecore roles : Sitecore\Designer Sitecore\Author Sitecore\Sitecore Client Authoring Is there any...

Forward-Slash missing from string in Sitecore Sublayout

c#,html,sitecore,forward-slash
I have a function in the C# code behind of a Sitecore sublayout that returns a string that looks like this: public string getProductTitle() { Item productItem = itemHelper.GetItemByPath(currentItemPath); Sitecore.Data.Fields.ImageField imgField = ((Sitecore.Data.Fields.ImageField)productItem.Fields["Logo"]); if (imgField.Value != "") { return "<sc:Image CssClass=\"product-image ng-scope\" Field=\"Logo\" runat=\"server\" />"; } string productTitle = "";...

How to Optimize the Sitecore Images

sitecore,sitecore6
I would like to Optimize the Sitecore Images and I found a documentation but I struck out on the first line itself Install the packages with the /sitecore/admin/UpdateInstallationWizard.aspx I found the path but could not find UpdateInstallationWizard.aspx,may I know what should I do to get that aspx page...

Adding Sitecore 7.5 to existing solution

asp.net-mvc,sitecore,sitecore7.5
I am trying to add the Sitecore as a separate project to an existing .Net MVC project which is built in .net framework 4.5.1.I followed the below steps to do so. Copied Images,Assets,Scripts,Fonts folders from the existing Sample.Web project in to the sitecore project (now the sitecore project is the...

WFFM Overriding the FormID chosen in the Presentation Details

sitecore,web-forms-for-marketers
In a certain scenario I need to programmatically change the WFFM Form presented in the Form Renderer. The Form Renderer itself is added to a Placeholder via the Presentation Details. I am able to access the Form Render and set the FormID and update its parameters to the ID of...

What does the Sitecore CheckSize Pipeline do?

sitecore,pipeline,sitecore7
Looking through the web.config of a Sitecore project that we have I can see that there is a Pipeline in the <uiUpload> section of the code which is called CheckSize. I am hoping that I can use this to check the size of an item that is being uploaded to...

Get Sitecore User from within WebMethod?

sitecore
I want to make some Sitecore data available to a non-Sitecore page. The data will be requested by JQuery and should be in JSON format. We will also need to update items, execute workflow actions, etc. We are on Sitecore 6.4 so, as I understand it, we don't have ItemWebAPI...

Can't set workflow and workflow state properties on sitecore items

powershell,workflow,sitecore,sitecore7.2
I am currently working on a project that requires me to set up a very simple sitecore workflow. I am running into some difficulties when modifying the existing items to use my new workflow. This is what i did: The workflow creates a new version when a contentmanager starts editing...

Sitecore MVC Model.Item

model-view-controller,sitecore
I'm using MVC in Sitecore and added below code to get last updated date. I fellow one of example for this code, they said that Model.Item is to track the field of context item as datasource. But, I don't clearly understand what Model.Item works for because if I remove the...

Sitecore 6.6 - Setting up a Lucene index

lucene,sitecore,sitecore6
I'm working on learning how to setup and configure a Lucene search index for Sitecore 6.6. I've pieced together a base config file that indexes all items that are of type "Article" template starting at my desired location in the tree and am able to pull all the items out...

How to get connect to core database in sitecore

c#,asp.net,sitecore
How to get connect to core database in sitecore How to get values of item from core database in sitecore. Sitecore.Data.Database coredb = Sitecore.Configuration.Factory.GetDatabase("core"); I'm working with the above mentioned code but I'm unable to get the values ...

Searching empty date fields in index

sitecore,sitecore8
Somewhere between Sitecore 7.2 and 8.0 the logic for how empty date fields (i.e. date fields for which the content editor has not selected a value) are stored changed. They used to be be stored as DateTime.MinValue (i.e. 00010101); however, now they are stored as an empty string. Under Sitecore...

Sitecore Multiple nodes for rendering datasource

c#,xpath,sitecore,rendering,sitecore7.2
I am using Sitecore 7.2(rev. 140228), I have multiple sites & all of them have their own content store or meta-data. Now I wants to give them choice to select datasource either from own meta-data of other site. Although I know another option to make meta-data global outside of all...

Sitecore sc:image tag produces a URL that gives a 404

iis,sitecore
I'm using an sc:image field renderer tag in Sitecore and when that field gets generated it produces this tag in the front end: <img src="/~/media/81907AC0172D4B93B5DF05E47B625F09.png" class="homepage_circle_icons" alt="Attract Customers" width="66" height="60"> In the url, it has .png at the end. On my localhost, this works perfectly, but when I deploy to...

Sitecore 6.6 Item Buckets Module: Inactive Bucket Button

sitecore,sitecore6,bucket
I have Sitecore 6.6 with SIP 3.2 running and want to use Item Buckets (updating to Sitecore 7 doesn't work for us in this case). So I installed (the Module) and got the new menus icons to show in Sitecore. The problem is that when I select an item in...

Sitecore package uninstall

sitecore
What is the best way to uninstall a package or a module in Sitecore? I've seen suggestions to do it manually, but it is not very convenient way, especially when there were many templates, items, layouts, renderings and static files....

Sitecore Treelist validation for items with a layout

validation,sitecore,sitecore7.2,treelist
I'm trying to find a way to have the selectable items in a treelist to be items with a layout. Since items without a layout are not visible, it must be impossible to select these. Do i have to write a custom validation? If yes, how can i check if...

Glass.Mapper.Sc set inferType to true by default globally

c#,sitecore,glass-mapper
In Glass.Mapper.Sc v 4.0.1.5 ISitecoreService and ISitecoreContext have all their method signatures with inferType default to false. I'm looking for a way to override that and default to true without changing the method calls all over the site. I created another interface to override those just to modify the inferType...

Value cannot be null. Parameter name: virtualPath - Sitecore

xml,sitecore,sitecore7.1
I have created a new site in sitecore site config section: <site name="site2" hostName="website.local" virtualFolder="/oscar-dresses" physicalFolder="/" rootPath="/sitecore/content" targetHostName="website.local" startItem="/Oscar Dresses" database="web" domain="extranet" allowDebug="true" cacheHtml="true" htmlCacheSize="10MB" registryCacheSize="0" viewStateCacheSize="0" xslCacheSize="5MB" filteredItemsCacheSize="2MB" enablePreview="true" enableWebEdit="true" enableDebugger="true" disableClientData="false" /> <site...

Bundling with sitecore MVC

sitecore,sitecore-mvc,sitecore8
I implemented the code here: http://jockstothecore.com/bundling-with-sitecore-mvc/comment-page-1/#comment-6521 It is working perfectly. I just have a few questions. I want to know if there is a performance penalty in the code above since the code is using Sitecore.Mvc.Pipelines.Loader.InitializeGlobalFilters. When does the InitializeGlobalFilters triggered? Is it triggered every time the page loads? Or...

Clearing .NET Cache for Sitecore

c#,.net,sitecore
I need to clear a Cache which is being used for a custom module in Sitecore, what's the best practice to clear it? We're currently adding keys to the cache with System.Web.HttpContext.Current.Cache.Add(key, obj, dependencyKey, DatTime.MaxValue); This cache does not get cleared out on publish though and I need to clear...

Sitecore DataSource Query in Template

sitecore,datasource,sitecore7
How to write a query in template's DataSource to generate the path of item? If I write a query in DataSource field and a page uses the template, the datasource value will be the item's path as dynamic datasource, like the screenshot. ...

How to create a Sitecore Analytics Reporting DB

sitecore,sitecore7,sitecore7.5
We've got a Sitecore 7.5 installation where we did not deploy any xDB features. There's no Mongo DB or Analytics reporting DBs. We're now exploring upgrading to 8 and turning on these features. I'm doing a test upgrade on a dev server. I've got the Mongo DB set up, but...

How can access sublayout control from another sublayout in Sitecore?

asp.net,sitecore
I have master layout and three sublayout header, content, footer. In header sublayout I have search textbox and search button, On click of search button result will display on content sublayout, On content sublayout I have repeater but I am not able to access repeater control in header sublayout. ...

How to send a mail to user by using Sitecore Rules

c#,sitecore
I am trying to send a mail to user by using Sitecore rules. I created a rule in Item Saved event in Rules. My Rule is like this "where user profile Fullname field is not empty send Newsletter Message 10T023615 e-mail" but it doesn't make any sense.Please can anyone explain...

Sitecore item deletes image on save

image,sitecore,sitecore7,items,sitecore7.2
We have a pretty large website running on sitecore 7.2. On a couple of items we noticed a certain problem. Everytime we link a picture to the item and we save it, the item is saved without the image. The items are of the same template of 900 other items,...

Correct Place To Specify A Site's Caching Parameters In Sitecore?

sitecore,sitecore8
An "out-of-the-box" installation of Sitecore creates the following lines in the web.config file: <sites> <site name="shell" virtualFolder="/sitecore/shell" physicalFolder="/sitecore/shell" rootPath="/sitecore/content" startItem="/home" language="en" database="core" domain="sitecore" loginPage="/sitecore/login" content="master" contentStartItem="/Home" enableWorkflow="true" enableAnalytics="false" analyticsDefinitions="content" xmlControlPage="/sitecore/shell/default.aspx" browserTitle="Sitecore" htmlCacheSize="10MB"...

How can I wrap the Sitecore 8 itemWebApi to apply custom business logic to API responses?

sitecore,sitecore8
I have a requirement to build a service endpoint to provide specific Sitecore 8.0 items (containing a given field value in a given branch of the content tree) to requesting mobile app clients. Encapsulating this logic (and perhaps some other calculations, etc) means the out-of-the-box API is not suitable. I'd...

Sitecore Multiple RTE Class Styles

css,sitecore
I can add CSS style path for RichTextEditor(RTE) like below and I can select defined style in RTE. <configuration xmlns:patch="http://www.sitecore.net/xmlconfig/"> <sitecore> <settings> <setting name="WebStylesheet"> <patch:attribute name="value">/resources/customCSS.css</patch:attribute> </setting> </settings> </sitecore> </configuration> But, there should be two or more types of CSS. For example, the users in Role-A will be able to...

301 Redirect Regex Pattern - Sitecore Redirect module

regex,redirect,sitecore,url-redirection
I apologize if this seems like a rudimentary question, but I'm trying to setup a redirect pattern for the 301 module in Sitecore and am having a hard time with the proper pattern. I need to have the following path: http://www.example.com/some-path/videos/2014/08/08/15/20/some-item-title converted to: http://www.example.com/some-path/videos/some-item-title Basically strip the numerical folders out....

Running code on Page Editor load in Sitecore

sitecore
I need to run code on load of Page Editor. What I want to do is check the current version that is being loaded and if it's not the latest version, make it not editable. I've looked at various http piplines, but it's not clear how I get the current...

Trouble With Sitecore Web.config Patch File

sitecore
I am trying to "patch" a Sitecore web.config but am getting confused at how to add new items to the file. The file below loads fine until it gets to the httpErrors line. There, I get: System.Xml.XmlException: 'Element' is an invalid XmlNodeType. <configuration xmlns:patch="http://www.sitecore.net/xmlconfig/" xmlns:set="http://www.sitecore.net/xmlconfig/set/"> <sitecore> <settings> <setting name="DisableBrowserCaching"> <patch:attribute...

Sitecore Media Library & Azure CDN

azure,sitecore,cdn,sitecore-media-library
I am planning to use Azure CDN on the top of Sitecore Media library, from my understanding, Azure CDN does not support lazy loading and the only easy way is the root described in the Sitecore Azure CDN connector (basically creating MediaLibrary folder structure and files on the publish event)...

uCommerce Product Appears on Sitecore site without publishing

sitecore,sitecore8
Just started doing some development with uCommerce and Sitecore but the way products start to appear on a site seems odd. In the Avenue Clothing demo site if you create a new product within the uCommerce admin it immediately starts to appear in the product listings, but if you click...

Sitecore CustomValidator does not fire on WFFM custom field

asp.net,sitecore,sitecore7.2,web-forms-for-marketers
I've try to extend SingleLineText field on WFFM on Sitecore. This field will have CustomValidator. But ServerValidate event does not fire when page postbacked. The snipped code below. public class SingleLineText : Sitecore.Form.Web.UI.Controls.SingleLineText { protected override void OnInit(EventArgs e) { base.OnInit(e); var validator = new CustomValidator() { Display = ValidatorDisplay.None...