sitecore8

Sitecore View Rendering and Controller Rendering Helper

做~自己de王妃 提交于 2020-01-02 02:46:08
问题 I have a sitecore application that use this method : @Html.Sitecore().ViewRendering("Path to the View") @Html.Sitecore().Controller("Controller Name", "Controller Action") This works perfectly fine even without I create an item for that rendering in Sitecore CMS Then what is the difference between that method with simple ASP MVC method : @Html.Partial("Path to the View") @Html.Action("Controller Name", "Controller Action") Both same or not? I feel little confused here 回答1: @Html.Sitecore()

While Installing Sitecore Active Commerce-SC80 3.2, I get an error “Unable to load one or more requested types”

╄→гoц情女王★ 提交于 2019-12-25 09:15:46
问题 Following is stack trace: [ReflectionTypeLoadException: Unable to load one or more of the requested types. Retrieve the LoaderExceptions property for more information.] System.Reflection.RuntimeModule.GetTypes(RuntimeModule module) +0 System.Reflection.Assembly.GetTypes() +118 Glass.Mapper.Configuration.Attributes.AttributeConfigurationLoader.LoadFromAssembly(Assembly assembly) +172 [ConfigurationException: Failed to load types Could not load file or assembly 'Sitecore.Ecommerce.Apps, Version

How to bind link items to a Repeater in Sitecore

倖福魔咒の 提交于 2019-12-25 05:37:49
问题 The content tree is as follows: content -News Listing -Article1 -Article2 -Article3 Each of the Articles is of a Data Template - "News Article" which is as: News Article Article --(Field section) Related Articles --(Multilist - with datasource as '/content/News Listing') Each article has the other 2 articles as its 'Related Articles'. For eg: Article1 has related articles 2&3 and so on. Markup: <h3>Related articles</h3> <asp:Repeater ID="rpArticles" runat="server" ItemType="Sitecore.Data

How can I remove duplicated page events in Sitecore 8.1?

醉酒当歌 提交于 2019-12-23 20:26:57
问题 I have a processor in the <registerPageEvent> pipeline that checks whether an event is duplicated and removes it. It works well on 7.2, but I have to upgrade to 8.1 Update 3 and I can't find a way to remove an already added page event. Is this possible and how can I do that? Piece of code from 7.2: Tracker.Visitor.DataSet.PageEvents.Rows.RemoveAt(Tracker.Visitor.DataSet.PageEvents.Count - 1); 回答1: You cannot remove events via the API starting from Sitecore 7.5. (The only way around would be

In Sitecore 8, how can I add a new application to the Start Menu?

允我心安 提交于 2019-12-23 12:32:35
问题 We're using Sitecore 8.1 and would like to add a new app to the Start Menu: How can one do so? 回答1: The required steps are below: Switch to the 'core' database in the bottom-right selector Go to Sitecore → Content → Applications, and add a new application Go to Sitecore → Content → Documents and Settings → All Users → Start Menu, and add a new Shortcut to the Left or Right section Go to the new Shortcut, then switch to "Raw Values" mode (in the View tab) and add a link in the following format

Sitecore 8: Get Sublayout item when .ascx file is shared

允我心安 提交于 2019-12-13 21:37:14
问题 I have two sublayouts: Grid-1-2 and Grid-2-1. The two sublayouts are sharing a single ASCX file (not a good sitecore practice but i need it this way). The problem is that in the ASCX codebehind, i want to see if the current selected grid is Grid-1-2 or Grid-2-1 ?! I have tried using both Datasource and RenderingId techniques but to no effect. EDIT I was wondering if i can get the "Parameters" field from "Data" section of the sublayout. This would do the trick. All suggestions are welcomed.

Sitecore Experience Accelerator License Error – Sitecore.SXA Not Found

﹥>﹥吖頭↗ 提交于 2019-12-13 07:21:19
问题 Is Sitecore Experience Accelerator(SXA) a licensed module ? I Followed below official Site and install the SXA. Sitecore Experience Accelerator 1.0 Initial Release In above SXA official site not mentioned about licence. We are using Sitecore Experience Platform 8.2. Before install SXA, I installed package "Sitecore PowerShell Extensions-4.1 for Sitecore 8" ,after that I installed package "Sitecore Experience Accelerator for 8.2", successfully installed. I able to create "tenant folder" and

Sitecore GetQueryable Filter not returning any result for SOLR after switch from Lucene

丶灬走出姿态 提交于 2019-12-12 19:23:25
问题 I'm in process of switching the Sitecore Lucene Search provider to Solr. Cores have been configured and I can rebuild all the COREs with no problem. I also updated the computed index fields per Solr mapping requirements. However, for weird reason the query below isn't returning any results. using (var context = index.CreateSearchContext(SearchSecurityOptions.DisableSecurityCheck)) { var query = context.GetQueryable<ArticleSearchResultItem>().Filter(item => item.Category == categoryId); var

Sitecore MVC Ensure empty placeholder is selectable in experience editor

☆樱花仙子☆ 提交于 2019-12-12 18:16:48
问题 Is there some trick with placeholders in Sitecore MVC to ensure that they are always selectable in the page editor experience editor even when they don't contain any renderings? My controller rendering declares the placeholder in the cshtml view as follows: <div> <!-- some html markup and fields rendered here --> @Html.Sitecore().Placeholder("my-component-placeholder") </div> 回答1: To ensure placeholder visibility and selectability, you need to ensure the following: A placeholder settings item

Spoof an IP address to test GEOIP lookups with Sitecore 8

扶醉桌前 提交于 2019-12-12 16:55:47
问题 I am new to Sitecore. I'm trying to implement following process class to overwrite GeoIP values for testing purpose. I can't find in which namespace the class Tracker is situated. Please note that I am using Sitecore 8 hosted on localhost. Sitecore Blog: @sitecorejohn blog Can some one please help me to resolve this namespace issue. Thanks. namespace Sitecore.Sharedsource.Analytics.Pipelines.StartTracking { using System.Net; using Sitecore.Analytics; using Sitecore.Analytics.Pipelines