Quantcast
Channel: Optimizely Search & Navigation
Viewing all 6894 articles
Browse latest View live

Multiple promotions, apply to only items that don't already have a promotion

$
0
0

Hi,

How can I make a promotion in EPiServer that is applied to all items that does not already have a promotion on them?
For example if I have a 20% sale on most items in the store (without a coupon code) and a 10% off coupon code that should only be applied to products that are not on sale, how can I do that?
In edit/admin I can change the order so that only one is applied but I want both to be applied, I could also update the coupon code to exclude items that are on sale but it can be multiple promotions during different times and the coupon code is valid for a longer time so it's not realy workable for the editor to keep updating this list all the time.

Can I make a code change (where?) to exclude items that already have an promotion on them?

/Viktor


Selection dropdown values not culture specific

$
0
0

Although forms supports multi language, it doesn't seem as though you are able to provide the values for a dropdown in anything other than the base language. 

Steps to reproduce:

Create a new form and add a Selection element. 

Switch to another language

You can't provide options in the needed language.

How to Using dojo publish a topic from a CategoryNode property to another property to subscribe

$
0
0

Hi,

I have two properties, where child widget depends on value selected in parent widget.

For example “CategoryNode" could publish topic with selected node whenever selected node changed. The “TechspecsAttributes" should subscribe to this topic and refresh the available options list when receives the event

My properties

Publish change

[UIHint(EPiServer.Commerce.UIHint.CatalogContent)]

pvirtual ContentReference CategoryNode { get; set; }

Subcrible

[CultureSpecific] [ClientEditor(SelectionFactoryType = typeof(TechspecsSelectionFactory))] [UIHint(GlobalValues.UIHints.IListDefault)]

public virtual IList<string> TechspecsAttributes { get; set; }

Can anyone give me a solution?

Thanks,

Thao Pham

Show YouTube video content in the tinyMCE 'Insert/Edit Media' in edit mode

$
0
0

I am having a YouTube Content Provider on my site. Thus, youtube videos are saved as MediaData.

When using the TinyMCE in Episerver CMS edit mode, there is an option to 'Insert/Edit Media'.

When clicked on that, we could browse the content we need to add. However, I can only see the images and files.

Any way to add the YouTube videos to the 'Select content' dialog box in the 'Insert/Edit Media' ?

Additional information: EPiServer.CMS.Core version=11.11.0

Separate admin login when using OpenIdConnect

$
0
0

Hi!

Is it possible to have some kind of separate login for admin users in episerver, when using OpenIdConnect? We only want the OpenIdConnect for the end users, not editors or admins.

Extend list of variations for ProductContent.

$
0
0

Hi,

I use my custom type for products. How can I extend the list of variants? 

I want to add another field to the variants table: https://prnt.sc/nwyqxc 

How can I do this?

/Andrey

Type 'Alloy.Models.lmageFile' could not be mapped to a PropertyDefinitionType

$
0
0

I've been tampering with a fresh template of the Alloy installation page for some time now, and one thing, that has been bugging me for a while now, is the ImageFile mapping. The whole site gives an error that says the ImageFile couldn't be mapped to a PropertyDefinitionType as written above.

The problem occurs when I define an ImageFile property in a block or page like this

public class ImageBlock : BlockData
{
  [Display(GroupName = SystemTabNames.Content)]
  [CultureSpecific]
  public virtual ImageFile Image { get; set; }
}

This approach breaks the whole site by telling me that the ImageFile could not be mapped to a property. The Alloy template has an ImageFileController, which maps the ImageFile to an ImageViewModel

public override ActionResult Index(ImageFile currentContent)
{
   var model = new ImageViewModel
   {
     Url = _urlResolver.GetUrl(currentContent.ContentLink),
     Name = currentContent.Name,
     Copyright = currentContent.Copyright
   };

   return PartialView(model);
}

But this does not offer any comfort at all. Nowhere in the Alloy template is the ImageFile property being used, which does not make any sense.

What was the idea of this? What am I missing in order to use an ImageFile property in my block and page types?

Support for placeholders and structured logging in Epi

$
0
0

Hi,

I have a log setup in EpiServer using EPi.Libraries.Logging.Serilog and I was trying to integrate it with Logstash / ElasticSearch and Kibana.  But unfortunately the ILogger interface provided by Epi (EPiServer.Logging) doesn't support the use of placeholders in the lLog method, and therefore the LoggerExtensions class (EPiServer.Logging.LoggerExtensions) doesn't support the placeholders in the logging methods (information, error, etc). 

By Placeholders I mean:

_logger.Information("This is a {test}", "my input to logstash"). 

It doesn't support '{test}' , which would make me have fields/properties in the generated json sent to logstash.

Any ideas of workaround or any implementation that could make this work?

Thanks in advance!

 


Projects notification dispatcher - email not getting sent

$
0
0

Hi,

We're facing an issue with projects comments and tagging not dispatching any emails. We run into similar issue as this https://support.episerver.com/hc/en-us/articles/115004126426-Email-Notifications-Not-Sending-When-Using-Projects-Mode

We've added the * to one of our hostnames, still with no luck.

at EPiServer.Notification.Internal.DefaultNotificationDispatcher.<>c__DisplayClass9_0.<<SendNotificationAsync>b__4>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at EPiServer.Notification.Internal.DefaultNotificationDispatcher.<Execute>d__14.MoveNext()
System.InvalidOperationException: This operation is not supported for a relative URI.
   at System.Uri.get_Fragment()
   at System.UriBuilder.Init(Uri uri)
   at System.UriBuilder..ctor(Uri uri)
   at EPiServer.Cms.Shell.UI.Rest.Projects.Notifications.Internal.ProjectMessageService.ResolveProjectUrl(Project project, IDictionary`2 contentItems)
   at EPiServer.Cms.Shell.UI.Rest.Projects.Notifications.Internal.ProjectMessageService.CreateProjectModel(Project project, IDictionary`2 contentItems, IEnumerable`1 projectMessages, IPrincipal recipientPrincipal, CultureInfo recipientCulture)
   at EPiServer.Cms.Shell.UI.Rest.Projects.Notifications.Internal.ProjectMessageService.<>c__DisplayClass11_0.<CreateProjectViewModels>b__9(Project project)
   at System.Linq.Enumerable.WhereSelectEnumerableIterator`2.MoveNext()
   at System.Linq.Enumerable.WhereEnumerableIterator`1.MoveNext()
   at System.Linq.Buffer`1..ctor(IEnumerable`1 source)
   at System.Linq.OrderedEnumerable`1.<GetEnumerator>d__1.MoveNext()
   at System.Collections.Generic.List`1..ctor(IEnumerable`1 collection)
   at System.Linq.Enumerable.ToList[TSource](IEnumerable`1 source)
   at EPiServer.Cms.Shell.UI.Rest.Projects.Notifications.Internal.ProjectMessageService.CreateProjectEmailViewModel(String recipient, IEnumerable`1 projectMessages)
   at EPiServer.Cms.Shell.UI.Rest.Projects.Notifications.Internal.ProjectHtmlEmailFormatter.FormatMessagesAsync(IEnumerable`1 notifications, String recipient, NotificationFormat format, String notificationChannelName)

Any ideas?

EPiServer CMS: 11.10.5

Multi Site and LocalHost (Visual Studio debug mode using IIS Express)

$
0
0

When I create a multi site locally while running my Visual Studio EPi project in debug mode, I give the new site another port number in local host.  However, this page does not resolve when i navigate to it.

I even tried it from home using the default out of the box alloy sample site. Still no resolution.

Has anyone tried this and got it working using locahost?  If so, please let me know what you did to get the second site resolvable.

It seems like only the first site it launched ini IIS Express. 

Product/Variation Search Approach

$
0
0

We are using Commerce 12 with Find.  However, my question is less technical and more about best practices.

I'm struggling a little bit with the proper approach to searching a catalog.  Our catalog has a fairly straightforward structure in which our products have high level properties (brand, flavor, texture) and our variants have container information (container type, size) that act as our SKUs.  

The search results we would like to return are not products.  We really want just the variants to show up in a product search.  While I can do this by specifying the ClassType in the criteria object, we lose facets at the product level (such as brand).

As a general approach, what is the proper way to tackle a scenario like this?  Do we have to do custom indexing or is there a more straightforward approach we could take?  If we index, should we be adding product information to our variant entries or vise-versa?

Multiple sites - Localhost - Best Practice

$
0
0

Hey,

I've been trying to setup multiple sites on a page I've been working on, and know how to make it work live, but not locally.

The main problem is how to solve it using best practice, as I would like the project to be as maintainable as possible for future support cases and whatnot.

The two sites are almost identical, but the 2nd site needs a new StartpageModel and probably a new ArticleModel, along with a new stylesheet. 
How I've solved this now is by adding a new model and calling it : StartPageClientName, as opposed to the old StartPage. 

This obviously generates a lot of code that's fairly similar, but still have some variations from eachother.

Now, after I've added all these new models/controllers and views, I go into /episerver/cms and add a new startpage of the new type.
Then i go to Admin->Manage Sites, and change the Startpage to the new one.

This means that the old site is unaccesible and most likely throws a 404 error

Once i go Live i will of course make two sites point to their own StartPage, and disable all the templates/models that the respective sites shouldn't be able to create.

Have i gone about this the correct way or should it be done differently? 

Any thoughts on the matter is very welcome :)

Translate content approval emails

$
0
0

Hi

Is it possible to change the language or wording of the content approval emails?

Promotion - redeem - per customer

$
0
0

Hi Team,

Is there any way to get which customers are redeemed for a particular promotion?

epi_page_context in TinyMCE

$
0
0

Hi, 

TL;DR: Is it possible to get the Episerver context in a custom TinyMCE plugin?

I'm trying to migrate a custom plugin in TinyMCE after upgrading to Episerver 11 and TinyMCE 2.8.0. 

The plugin uses epi_page_context which is available but empty in editor.settings after upgrading. In Episerver 10, SetPageDataContext could be used to set the context based on the supplied page https://world.episerver.com/documentation/Class-library/?documentId=cms/10/10AD80F5.

Are there any equivalent methods of getting the Episerver context in a custom TinyMCE plugin? 


BUG: Episerver 10, migration steps and group names

$
0
0

Episerver 10.10.4

Renamed properties are moved to the Content tab.

Can be reproduced on Alloy. For example, rename NewsPageLinks property on StartPage.

Extend list of variations for ProductContent.

$
0
0

Hi,

I use my custom type for products. How can I extend the list of variants? 

I want to add another field to the variants table: https://prnt.sc/nwyqxc 

How can I do this?

/Andrey

Rendering blocks with ContentReference issue

$
0
0

I am trying out episerver forms and have a page where I want a single form to be inserted, so I added ContentReference property and limited it to FormContainerBlock types. Now, when I render this to the page, I load the block from the content reference and use the Html.DisplayFor method to output it to the page. The first thing I noticed is that there is no way to get to the form to edit it from the page that uses it. The default edit experience for that property shows the default tree navigator to select the block, but there is no way to navigate to the actual form that is referenced to edit it. What I would like to know is there a way to change that experience so users can get a link or an edit menu similar to how content areas work, but for a single ContentReference? I would be annoying for editors to have to click the ... button to open the tree navigator, then have to find that form in the assets pane in a second step.

TypeMismatchException

$
0
0

This error showed up on a production (not yet live) server.

It's troubling because the build was showing no issues for a week prior but there has been an extensive content entry on the Catalog and CMS side. 

[TypeMismatchException: The backing type 'EPiServer.Core.PropertyDate' is not a registered PropertyDefinitionType]
   EPiServer.DataAbstraction.RuntimeModel.Internal.PropertyDefinitionSynchronizer.ResolveType(PropertyDefinitionModel model) +341
   EPiServer.DataAbstraction.RuntimeModel.Internal.ContentTypeModelRegister.ValidateChangeOfModelType(PropertyDefinitionModel propertyModel, String modelName) +66
   EPiServer.DataAbstraction.RuntimeModel.Internal.ContentTypeModelRegister.SetStateForPropertyDefinitionModels(ContentTypeModel model) +137
   EPiServer.DataAbstraction.RuntimeModel.Internal.ContentTypeModelRegister.<AnalyzeProperties>b__14_0(ContentTypeModel model) +59
   System.Threading.Tasks.<>c__DisplayClass31_0`2.<ForEachWorker>b__0(Int32 i) +63
   System.Threading.Tasks.<>c__DisplayClass17_0`1.<ForWorker>b__1() +928
   System.Threading.Tasks.Task.InnerInvoke() +39
   System.Threading.Tasks.Task.InnerInvokeWithArg(Task childTask) +18
   System.Threading.Tasks.<>c__DisplayClass176_0.<ExecuteSelfReplicating>b__0(Object ) +199

It appears it could be something related to the data entry that is creating corrupted data and resulting issue. I say this because I’ve ran an old release against the production dbs and get the same issue in my local environment.

If anyone has had experience with this or solved an issue like this your comments are greatly appreciated.

Thanks,

Ben 

 

Items in content area are shown even if they are not available for the current language

$
0
0

A regular page, with a ContentArea property (not CultureSpecific).
- The page is created in all languages of the site.
- Then we add a block with some text, but the block is only in Danish (which is the Master language).
- When the page is viewed in English, we see the Danish text! I was expecting the block would simply not be shown.

There is a bug from 2013 on this (https://world.episerver.com/support/bug-list/bug/107891) which is solved, but I still get this problem in Epi CMS version 11.11.1.

Any ideas?

Viewing all 6894 articles
Browse latest View live