sitecore

How to generate custom unique ID

一世执手 提交于 2019-12-02 04:44:22
问题 We are using Sitecore 7.2 with multi-site implementation. The actual data is shared between multisite, hence it's been stored in common Global Item folder. We are facing a problem generating aunique ID on URL. I had a good search but could not find any solution except to use Sitecore Item ID. This is what we want: domain/players/player_id e.g. domain/players/1234 where 1234 is uniquely generated ID. Could someone please suggest if this is possible? 回答1: Every page that is managed in Sitecore

Sitecore Site/Item Publishing hangs at Initializing

拟墨画扇 提交于 2019-12-02 04:12:26
问题 We had a problem with core database, that had been restored by the previous day's backup database. After that the site is working fine but, we are having problem with publishing any changes. Once er hit the publish button the "Publish Initializing.." message just keeps continuing prolonged time. Noting is captured in the the event log as of "Publish Start/End" neither. So when we tried cleaning up the master/web database using Database Cleanup tool, SQL error pops up. Do anyone have

Glass.Mapper not applies additional parameters in BeginRenderLink method

倾然丶 夕夏残阳落幕 提交于 2019-12-02 03:49:21
For Glass.Mapper BeginRenderLink described as method to render a link that should contain multiple HTML elements: http://glass.lu/docs/tutorial/sitecore/tutorial22/tutorial22.html What I'd like to add is custom attributes (class, style) to that link: <% using (BeginRenderLink(x => x.Image1Link, new NameValueCollection { { "class", "image-banner" }, { "style", string.Format("background-image: url({0})", Model.Image1.Src) } }, true)) { %> <span class="image-banner-wrapper"> <span class="image-banner-content"><%= Editable(x => x.Image1Text) %></span> </span> <% } %> This additional attributes

Sitecore Site/Item Publishing hangs at Initializing

萝らか妹 提交于 2019-12-02 01:34:39
We had a problem with core database, that had been restored by the previous day's backup database. After that the site is working fine but, we are having problem with publishing any changes. Once er hit the publish button the "Publish Initializing.." message just keeps continuing prolonged time. Noting is captured in the the event log as of "Publish Start/End" neither. So when we tried cleaning up the master/web database using Database Cleanup tool, SQL error pops up. Do anyone have resolution for such problem? This is the error I get while "web" database clean up. Job started:

How to get the Sitecore.Current.Site object inside custom save action WFFM?

僤鯓⒐⒋嵵緔 提交于 2019-12-02 00:09:32
I'm using Sitecore Webforms For Marketers . In the save action of my form I get the Sitecore.Context.Site object, but the object doesn't return the right context. The value is "modules_shell". Does anyone know how I can get the right context? Thanks a lot. Without knowing the specifics of your setup I would suggest determining the correct site in the same way that Sitecore's site resolver does: var url = System.Web.HttpContext.Current.Request.Url; var siteContext = Sitecore.Sites.SiteContextFactory.GetSiteContext(url.Host, url.PathAndQuery); I have code for this exact problem here: http:/

How to generate custom unique ID

北慕城南 提交于 2019-12-01 23:33:32
We are using Sitecore 7.2 with multi-site implementation. The actual data is shared between multisite, hence it's been stored in common Global Item folder. We are facing a problem generating aunique ID on URL. I had a good search but could not find any solution except to use Sitecore Item ID. This is what we want: domain/players/player_id e.g. domain/players/1234 where 1234 is uniquely generated ID. Could someone please suggest if this is possible? Every page that is managed in Sitecore is a Sitecore Item. As such, you should be able to just navigate to the name of the player item. If you were

TDS: 'Build fo GetFrameworkPaths failed' after upgrade

只愿长相守 提交于 2019-12-01 21:53:07
问题 I've upgraded my TDS to 5.5 and now I get the following error when opening a solution containing a TDS project with Visual Studio: TDS failed to change configurations with the error 'Build of GetFrameworkPaths failed.'. Please see the output window for more details. 回答1: This is a known issue not yet fixed by Hedgehog. They do provide a workaround: http://www.hhogdev.com/blog/2016/may/common-problem-after-tds-5,-d-,5-upgrade.aspx To save some time you can just delete the C:\Program Files (x86

TDS: 'Build fo GetFrameworkPaths failed' after upgrade

◇◆丶佛笑我妖孽 提交于 2019-12-01 21:02:28
I've upgraded my TDS to 5.5 and now I get the following error when opening a solution containing a TDS project with Visual Studio: TDS failed to change configurations with the error 'Build of GetFrameworkPaths failed.'. Please see the output window for more details. This is a known issue not yet fixed by Hedgehog. They do provide a workaround: http://www.hhogdev.com/blog/2016/may/common-problem-after-tds-5,-d-,5-upgrade.aspx To save some time you can just delete the C:\Program Files (x86)\MSBuild\HedgehogDevelopment\SitecoreProject\v9.0\HedgehogDevelopment.SitecoreProject.targets file and run

How do I get the value of a WFFM field as a tag and output it in a Sitecore DMS report?

佐手、 提交于 2019-12-01 20:52:16
If I create a Web Forms For Marketers form with Analytics enabled I can choose to add each field as a tag to a Visitor. I can't see how to configure which tag they should be added to, or even what the tag is called by default (I'm assuming a tag with the field name is created). I'd also like to know how to retrieve the tag data in a visit report (i.e. the one you'd get if you double clicked on a form submission in the Form Reports dialogue). I can see how to access plenty of inbuilt tags, but I can't find out how to fill these specifically from the form, and I cant see any fields in the report

Sitecore 8 EXM add a contact to list from listmanager

旧街凉风 提交于 2019-12-01 20:09:20
I'm using Sitecore 8 and the new Email Experience Manager module. I have configured a newsletter email message with an empty list from the listmanager as recipients. When subscribing for the newsletter via a selfmade form, I receive an email address and a name. Now I want to make a new contact with this mail and name and add it to the list in my listmanager via code. Is there any way to call this list via the api and add a contact to it? I have had the exact same issue, i.e. the list manager reports 0 contacts after adding the contact to the recipient list. I have investigated the issue closer