sitecore

Azure SQL Azure AD Authentication Failure

半腔热情 提交于 2019-12-04 14:49:56
I am trying to connect to my Azure SQL Database that has a Azure Active Directory Database Contained User from my .NET Application (Sitecore). I have the adalsql.dll installed on the VM hosting the .NET Application. However, when I attempt to connect, I receive the following error: Failed to authenticate the user test@mytest.onmicrosoft.com in Active Directory (Authentication=ActiveDirectoryPassword). Error code 0xCAA20064; state 10 AADSTS50055: Force Change Password. Here is my connectionString: <add name="mydb" connectionString="Data Source=test.database.windows.net,1433;Initial Catalog=TEST

Considerations for Sitecore 6.4 architecture for multiple site, multiple language open ended solution?

自闭症网瘾萝莉.ら 提交于 2019-12-04 13:47:13
I'm looking at using the new cloning functionality of Sitecore 6.4 to help with reuse of components and content for a multiple site, multiple language solution. The basic idea is to create a central content repository within Sitecore (possibly in multiple languages) which could then be cloned to provide regional sites, each with their own selection of supported languages. The thinking behind this is to allow regions to easily replicate the content they require and take ownership of it. With cloning they would be able to edit the data where they required without affecting the source data,

Accessing Sitecore API from a CLI tool

风格不统一 提交于 2019-12-04 13:32:39
问题 I would like to access the Sitecore API from within a command line tool (with a goal of exporting some information about users in the database), however I haven't been able to get a simple CLI program connected. To give a simple example using Sitecore; using Sitecore.Configuration; using Sitecore.Data; using Sitecore.Data.Items; ... static void Main(string[] args) { Sitecore.Data.Database master = Sitecore.Configuration.Factory.GetDatabase("master"); Console.WriteLine(master.Items.ToString())

Webforms for marketers form fields conditional visibility dynamically

你离开我真会死。 提交于 2019-12-04 12:23:55
问题 We are using WFFM for our landing pages creation. It is very easy for our marketing guys to use that. Now, we are looking at customizing them. For instance, we have the following requirement. On our form, we display country of residence, but when you select some countries, we want to display one more dropdown called state/province with the states. When user selects other countries, we have to hide the state/provice field. I am banging my head, how can I start implementing this. Can anyone of

How to remove broken links in Sitecore

让人想犯罪 __ 提交于 2019-12-04 11:08:04
问题 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 the missing item is already gone. What's the best way to remove broken links in this case? Thanks. 回答1: There is Sitecore admin page that allows removing broken links. You can find it here: http://localhost/sitecore/admin/RemoveBrokenLinks

How to implement Solr into Sitecore

左心房为你撑大大i 提交于 2019-12-04 10:54:17
问题 I have to implement Solr index into Sitecore and I would like to know what is the best approach? I looked at following approaches: Capture publish end event (or other events) and then push item to solr index Implement custom database crawler and get all changes from history table. Then using custom index push data to solr. Second approach sounds like a way to go (in my opinion). In this case do I need to create a new search index, or search manager? If anyone's done it before, can you point

Sitecore Database and App_Data Size

落爺英雄遲暮 提交于 2019-12-04 10:07:31
We have 5 relatively small sites running on top of Sitecore. The oldest has been hosted within the environment for 3 years. Currently both the master and web databases are roughly 8 GB a piece - surprising in size but also that they are nearly identical in size (I would expect the web database to be much smaller). Also surprising is the App_Data is over 50 GB in size (MediaCache is 15 GB and MediaFiles is 37 GB). Any ideas or suggestions on ways to reduce files on disc - even temporarily? Media Files - media items stored on disk (keep this folder) Media Cache - is where sitecore caches image

Has anyone run into Sitecore removing JavaScript from the page editor?

落爺英雄遲暮 提交于 2019-12-04 05:45:42
I've been working on a custom page in Sitecore over the holidays, and I've noticed an issue where Sitecore removes JavaScript lines from the editor. Here's an overview of my current scenario: I add Javascript to the page. I save, check in, and publish. Changes are there, and everything is working. I work on it later and those changes are no longer there. I'm the only one who's edited this page, and it is publishing the current/correct version. It doesn't matter if I add the script through the "Show Editor" or "Edit HTML" features of the content editor. It only removes the JavaScript though;

stop words in sitecore

烂漫一生 提交于 2019-12-04 05:07:05
We are using Lucene for text search as part of sitecore. Is there any method to ignore stop words (like a,an,the...) in the sitecore search? By default, Sitecore uses Lucene standard analyzer - Lucene.Net.Analysis.Standard.StandardAnalyzer . You can see this is defined in /configuration/sitecore/search/analyzer element of web.config file. One of the constructors of StandardAnalyzer class accepts the array of strings it will consider stop words. By default it uses the hardcoded list of stop words which include: "a", "an", "and", "are", "as", "at", "be", "but", "by", "for", "if", "in", "into",

Can I programmatically escape dashes in Sitecore queries using FullPath?

冷暖自知 提交于 2019-12-04 04:45:46
I'm attempting to expand upon a custom Sitecore command to determine if the current item has a parent item matching a certain template id. I know the query should ideally be as simple as ./ancestor::*[@@templateid='{26710865-F082-4714-876B-D5E1F386792F}'] if the item is the context, or /sitecore/content/home/full/path/to/the-item/ancestor::*[@@templateid='{26710865-F082-4714-876B-D5E1F386792F}'] Unfortunately the item path includes dashes which need to be escaped like /sitecore/content/home/full/path/to/#the-item#/ancestor::*[@@templateid='{26710865-F082-4714-876B-D5E1F386792F}'] . However,