sitecore6

Lucene search not working

自古美人都是妖i 提交于 2019-12-11 18:18:06
问题 I have a function which searches some articles in the Sitecore content items and give me the value. So far I have build up my indexes and it is showing in my IndexViewer. But the return of the function is 0. I looked up this link: http://sitecoregadgets.blogspot.com/2009/11/working-with-lucene-search-index-in_25.html for more information. protected IEnumerable<Item> ShowHomePageNews(int numOfArticles, string stringofCountries) { List<Item> items = new List<Item>(); Sitecore.Search.Index indx

sitecore web form for marketers form post to external url

一笑奈何 提交于 2019-12-11 13:55:11
问题 We are using Sitecore's Web form for Marketer's module to generate forms. Now i have a special requirement, i need to created a form using Web Form for Marketer's module which will post to an extrenal site web page. External site web page is expecting certain form fields so i need to make sure that form fields generated by Web Form for Marketer has id/name as we want to send it to page on external site. Is this possible using web form for marketers? If not what would be best practice to have

how to programmatically set a value of Treelist in sitecore

℡╲_俬逩灬. 提交于 2019-12-11 12:17:16
问题 I have a job description page, and I am adding values to it programmatically. One of the fields is "Office Locations", with a data type of Treelist. How can I add values to the Treelist so that I can set the office location? 回答1: Sitecore Treelist stores the ids of selected items in a pipeline separated form. If you want to set the value of Treelist programmatically you need to set it to a string which looks like: {110D559F-DEA5-42EA-9C1C-8A5DF7E70EF9}|{EA015A5F-C41B-4510-B538-438EF204F5E2}

Modifying WFFM Information Using c#

拜拜、爱过 提交于 2019-12-11 12:09:17
问题 We have setup a simple form using Web Forms For Marketers on our Sitecore 6.4.0 site. The form is logging information just fine, and we have written a page to allow end-users to view the results, using the code from http://r-coding-sitecoreblog.blogspot.com/2011/11/extracting-data-from-sitecore-wffm.html mainly. The next step in the progression is to allow a user to approve/reject a submission, and to either pass that form submission's information to a method, or to delete that form

Handling internal links in Sitecore 6.4 cloned sites

徘徊边缘 提交于 2019-12-11 10:28:47
问题 We are attempting to establish a Sitecore 6.4 architecture whereby we clone several sites from a "repository" site. We have addressed many issues regarding data structure, but are left with one key problem: How do we handle internal links within a cloned site? The idea of cloning was to allow local modification of small parts of data, but central editing of the main body of content. Editing directly in a cloned item breaks inheritance from its parent, at least in the field that is edited. But

Sitecore switches user session with another user

*爱你&永不变心* 提交于 2019-12-11 06:56:47
问题 I have an FBA site that uses Sitecore. Every so often, it will confuse one user with another. What I mean is, somehow User A will unintentionally hijack User B's session. User A will be looking at a page that a) they don't have permission to view, and that's b) customized for User B. The one time I was able to reproduce (accidentally) , I got my original session back after I clicked through to another page. I know Sitecore leverages the Aspnet membership DB, so this might be an issue with

customizing url mapping of multiple sites in sitecore

谁说我不能喝 提交于 2019-12-11 06:41:17
问题 So, I want to customize my mappings of urls to home pages inside Sitecore my sites home pages are nodes like this (below /sitecore/content): /FOO/us /FOO/ca /FOO/..other countries /BAR i Want to reach them by the following urls: mysite.com/us -> /FOO/us mysite.com/ca -> /FOO/ca mysite.com/bar -> /BAR my sites declarations are like this <site name="FOO-US" virtualFolder="/us" physicalFolder="/us" rootPath="/sitecore/content" startItem="/FOO/us" database="web" domain="extranet" allowDebug="true

Difference between two different preview mode in Sitecore

╄→гoц情女王★ 提交于 2019-12-11 06:25:57
问题 Today I got into weird condition. I was doing Redirect for Sitecore item over IIS rewrite module. When I preview item from publish tab preview, it is redirecting properly. But when I preview item from presentation tab preview command it is not redirecting i.e. showing item presentation. So there are two different preview behaviors for the same item, it strike me to think about difference between these two preview options. Under Publish tab: Preview Command Under Presentation tab: Preview

How to publish multiple versions of content item to delivery (web database) in Sitecore?

左心房为你撑大大i 提交于 2019-12-11 04:18:48
问题 I have a requirement to allow users of the web site to see the current publish version of the item (which has passed through workflow) + the previous versions + the version scheduled to publish in future. So when the use visit the content item on the web site they will be presented with tabs to: previous , current and future version of the item. I have seen some articles how to intercept publishing pipeline but still cannot evaluate if this scenario is possible. 回答1: There is no native way to

Sitecore: Caching by custom param in code behind?

北城余情 提交于 2019-12-11 02:23:56
问题 We are looking to enable caching in Sitecore 6 on a specific page, however, this page has an image set based on a random value - and as such, we actually need to cache each individually rendered page so that we can keep this "random" image. Any suggestions? I figured that we would need to use sublayout params, but can not see how I can set this in the code behind to influence the caching behaviour. Any way of directly manipulating the cache entry? Regards, Andy 回答1: Create an outer sublayout