sitecore

how do you remove a language version of a sitecore item?

穿精又带淫゛_ 提交于 2019-12-08 16:38:07
问题 I think i could not make the question more explicit than what is in the title; on the content editor, you can click on the flag item and add a new language version, but no idea how to remove one on the versions ribbon, you can remove a version number, but it doesn't seem to allow you to pick a single language of the current version for removal 回答1: Select 'Versions' in a ribbon tag. Switch 'Language' to the language you want to remove version from. Click 'Remove' in the 'Versions' commands

Sitecore SIM Installation permission error

我只是一个虾纸丫 提交于 2019-12-08 16:35:17
问题 I am trying to install SIM version 13 rev 1404021 using Administrative priveleges When i click on Grant button it give me error that " you dont have neccessary permission set". Also i have given full permission to Network Service,IUSR, IIS_USR and network to the folder C:\Inetpub\wwwroot Kindly let me know whate else permission need to be given inorder to run sitecore instance manager succesfully. 回答1: It may be caused by bug in SIM that doesn't get actual SQL Server user account

How to render link with css class with Sitecore Glass Mapper

送分小仙女□ 提交于 2019-12-08 16:07:29
问题 I have the following link: <a class="btn btn-primary" href="#">View details »</a> How can I render the link with sitecore glass that it still keeps the css class? With the field renderer in sitecore you used to be able to pass the class along as additional parameters, how does this work with glass? This is what I have so far: @RenderLink(x => x.Link) This only renders the link without the class though. Any help appreciated. Thx. 回答1: You can also make a PageEditor enabled version like this

Check if items exist in the current language?

让人想犯罪 __ 提交于 2019-12-08 15:30:18
问题 I have a Sitecore solution where there are 3 different languages enabled. On top of the page, there is a link to each language. When you click this link, you get the current page you are standing on, in the selected language. But not all pages are translated into all languages. So if I am standing on page x in English language, and this page is only available in English and German but not Chinese, then the Chinese link should not be shown. So the question is - How do I check if the current

Sitecore - How to generate a sitemap xml [duplicate]

北城以北 提交于 2019-12-08 14:14:33
问题 This question already has answers here : How to build a sitemap using Sitecore (2 answers) Closed 6 years ago . I need to generate a sitemap xml for our sitecore project. I have seen it's done with Nicam example. How can I do this? (I have asked the same question in a previous post, sorry about the duplicate quesiton, I have removed that. That was a mistake) 回答1: This is a duplicate question. The same question has been asked yesterday also ;) If you're after a sitemap page to list the pages

Sitecore Analytics reports - Is this only for Analytics database, can I use master database to generate reports?

荒凉一梦 提交于 2019-12-08 13:17:16
问题 I was trying to create a report from master database in analytics reports. (Stimulsoft Report Designer) As it explains in the reports cookbook, I have created a "mrt file" (Report UI) and a report definition item in Engagement analytics. I have configured the datasource item as query item (/sitecore/system/Settings/Analytics/Reports SQL Queries/Visit Pages). It worked. But then I tried with a query using the master database, in the SQL query item I specifically mentioned the database as

Opening Rich Text Editor in custom field of Sitecore Content Editor

自作多情 提交于 2019-12-08 12:23:40
问题 I'm implementing a custom field in Sitecore for the Content Editor, and I need to be able to open the Rich Text editor and get the data from there. I'm not really sure where to look though, nor how to go about it. 回答1: Had to decompile the Sitecore.Kernel DLL in order to figure this out. First thing is to spin off a call from the Context.ClientPage object So, for my situation: switch (message.Name) { case "richtext:edit": Sitecore.Context.ClientPage.Start(this, "EditText"); break; } You will

Sitecore7 LinqHelper.CreateQuery Buggy?

守給你的承諾、 提交于 2019-12-08 12:11:22
问题 This is more of a clarification type question rather than actual problem regarding LinqHelper.CreateQuery method. So, This method has 3 overloads. The 2 in question here, are: 1. LinqHelper.CreateQuery<SearchResultItem>(searchContext, searchStringModel) 2. LinqHelper.CreateQuery<SearchResultItem>(searchContext, searchStringModel, startLocationItem) [I haven't used any additional context here so used the default null] Now, In order to search for items with in a specific location of the content

Sitecore Item Display Name is encoded automatically

耗尽温柔 提交于 2019-12-08 09:52:36
问题 When editing a Sitecore item that contains HTML in the Display Name (e.g. Title ), the HTML is encoded immediately. Editing Display Name a second time shows that <em>Title</em> has been converted to <em>Title</em> . We don't have any custom code that would do this; is there a configuration parameter or something that would control how display name is encoded? [EDIT] To clarify, if I edit an item's Display Name to add HTML, and then edit it a second time, the HTML contained in the Display Name

How can I apply GA download tracking with Sitecore?

和自甴很熟 提交于 2019-12-08 09:19:21
问题 I'm posting this question to Stackflow b/c after doing much research into an answer to this very question online, I did not come across a straight forward answer and had to do my own sleuthwork to resolve this. Basically, Sitecore uses a handler file .ASHX for all files uploaded to the Media Library. Since the 3rd party GA tracking tool I was using (entourage.js or gatags.js) does not recognize .ashx as a whitelisted download file, it was not adding the appropriate GA tracking syntax to the