sitecore8

Implementing Breadcrumbs on Sitecore

半世苍凉 提交于 2020-04-19 06:18:30
问题 I just wanna ask if there is someone here that have already made a breadcrumbs in Sitecore. I'm currently doing a Sitecore 8 MVC project that needs to have a breadcrumbs. Currently I saw this website http://blog.ryanbailey.co.nz/2015/05/breadcrumbs-for-pages-in-sitecore.html. But It doesn't work for me yet because I don't know what to reference. I just need to know how to get every item in the path of my current page I can handle it already. Thanks 回答1: Something like this should do it:

Sitecore Lucene Exclude Item From Index

你说的曾经没有我的故事 提交于 2020-01-24 13:59:28
问题 I'm trying to allow a content editor to have the option to exclude items from a search page. There is a checkbox on the template being searched which indicates whether or not it should show up or not. I've seen a few answer that involve inheriting from Sitecore.Search.Crawlers.DatabaseCrawler and overriding the AddItem method (Excluding items selectively from Sitecore's Lucene search index - works when rebuilding with IndexViewer, but not when using Sitecore's built-in tools). This does not

Sitecore Lucene Exclude Item From Index

送分小仙女□ 提交于 2020-01-24 13:58:00
问题 I'm trying to allow a content editor to have the option to exclude items from a search page. There is a checkbox on the template being searched which indicates whether or not it should show up or not. I've seen a few answer that involve inheriting from Sitecore.Search.Crawlers.DatabaseCrawler and overriding the AddItem method (Excluding items selectively from Sitecore's Lucene search index - works when rebuilding with IndexViewer, but not when using Sitecore's built-in tools). This does not

How to include html inside anchor tag in Sitecore

孤人 提交于 2020-01-16 04:35:50
问题 I have a situation where there is HTML inside an anchor tag. And the author should be able to edit both the anchor (href) & other fields. aspx: <asp:Repeater ID="rpEvents" runat="server" ItemType="Sitecore.Data.Items.Item"> <HeaderTemplate> <div class="col-md-3"> </HeaderTemplate> <ItemTemplate> <a href="offers/spring.html"> <sc:Image runat="server" Field="offer image" Item=<%#Container.DataItem%> /> <h3><sc:Text runat="server" Field="Offer Title" Item=<%#Container.DataItem%> /></h3> </a> <

Redirect module in Sitecore

夙愿已清 提交于 2020-01-14 12:20:23
问题 I have installed Redirect module in sitecore. Inside modules I have created "Redirect Url". In Redirect Url I wrote Requested Url "http://domainname/pagename" and selected Redirect To from content. But it is not working. Can anyone tell me what is wrong I am doing? I have created redirect pattern. 回答1: It all depends on which module implementation you are using. I have heard multiple complaints on functional of original one (seems it is discontinued at all), so people are doing their own

Redirect module in Sitecore

旧巷老猫 提交于 2020-01-14 12:18:54
问题 I have installed Redirect module in sitecore. Inside modules I have created "Redirect Url". In Redirect Url I wrote Requested Url "http://domainname/pagename" and selected Redirect To from content. But it is not working. Can anyone tell me what is wrong I am doing? I have created redirect pattern. 回答1: It all depends on which module implementation you are using. I have heard multiple complaints on functional of original one (seems it is discontinued at all), so people are doing their own

Sitecore Glass Mapper (v4): Add custom query string parameter via RenderImage

◇◆丶佛笑我妖孽 提交于 2020-01-14 06:03:49
问题 Using Glass Mapper for Sitecore version 4 (MVC), I need the following method call: @Html.Glass().RenderImage(Model, x => x.PhotoField, new {cropregion = xmlValue.GetCropRegion()}, true, true) to result in: <img src="/sitecore/shell/-/media/Default-Website/cover.jpg?h=550&w=1600&la=en&hash=2986CA8291803D4A8EAC3B5A1C276E27D4877DCC&cropregion=534,11,1348,548" width="1600" height="550" /> Currently, the RenderImage call will result in the cropimage being added as an attribute rather than on the

Sitecore 8 experience editor and jquery

橙三吉。 提交于 2020-01-07 03:07:23
问题 Following javascript is not working in page editor mode: Page.ClientScript.RegisterStartupScript(this.GetType(),"script","<script src=\"//ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js\"></script><script src=\"http://code.highcharts.com/highcharts.js\"></script>"); I changed it to: Page.ClientScript.RegisterStartupScript(this.GetType(),"script","<script src=\"//ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js\"></script><script src=\"http://code.highcharts.com/highcharts

Sitecore 8.1: Purpose of Submit Queue and MediaIndexing folders under $(dataFolder)

馋奶兔 提交于 2020-01-06 21:13:53
问题 Could someone please help me understand purspose of following folders under data sitecore folder: Submit Queue a. What's the purpose of this folder? b. Does it get used only if we use Sitecore xDB Cloud or also for our standalone xDB? MediaIndexing a. What's the purpose? b. Where can I find the folder path configuration details? I looked at sitecore.config and didn't find it. c. When doese it get created, as I understand the temp media files are sstored on mediacache folder and indexes should