Quantcast
Channel: Using Optimizely Platforms
Viewing all 8020 articles
Browse latest View live

How to bypass Cloudflare on the DXC

$
0
0

Hi All 

Anyone know what Url i could use to bypass Cloudflare ? 

I need to upload a file bigger than 500MB and keep on getting the following message : 413 Request Entity Too Large

After a bif of reasearch i have found these limits in place from Cloudflare and only way I can import the file would be to bypass cloudflare : 

Depending on the plan your domain is subscribed to, Cloudflare limits data uploads to the following sizes:

  • 100MB Free
  • 100MB Pro
  • 200MB Business
  • 500MB Enterprise by default (contact Customer Support to request unlimited data uploads)

The upload limits apply only if you have Cloudflare enabled (Orange cloud next to the DNS records on the DNS settings page). For example, if your domain is subscribed to the Pro plan, a visitor to your website can upload data up to 100MB, per request. This limit overrides any upload limit you may have set over a 100MB at your origin.

If you require to upload resources larger than these limits, you can either do that by uploading chunks smaller than the above thresholds, or you can upload the full resource through a grey-clouded DNS record so that Cloudflare is bypassed.


How to check for a specific block type in ContentArea without loading content

$
0
0

I am searching for a way to check for the existence of a specific type of block in a content area. The presence of the block enables features in navigation, so this check is done on every page load. I want to avoid loading all of the content items in the ContentArea for performance reasons. I was hoping the ContentAreaItem or ContentReference for each item in the ContentArea.FilteredItems collection had some way to determine its destination content type. Any help would be appreciated.

Modify Publish Flow

$
0
0

Is there any way we can gain more control over our publish flow for variants? Example: Every time we edit and publish a variant the page view opens, and we have to return to the properties view and go back to the variants tab - we'd prefer this flow to not automatically move away from the variants view so publishing would be easier. Is there a way we can hook into the variant publishing process to prevent the automatic move to the page view?

Thanks

Example of moving simple address router to be the last router, without upgrading the CMS?

$
0
0

Hi!

Does anyone have example code of how to move the simple address router to be the last registered router, without upgrading the CMS to version 11?

How to apply multiple UIHint to a property editor

$
0
0

Hi,

I am trying to apply a css class to the default property editor for the ContentReference type

But it only apply my UIHint and not apply default  [UIHint(EPiServer.Commerce.UIHint.CatalogContent)]

How can apply both of them?

My code

namespace NTC.Models.Commerce.V2.EditorDescriptor
{
[EditorDescriptorRegistration(
TargetType = typeof(ContentReference),
UIHint = SiteUIHints.ReloadPage)]
public class EmbiggenEditorDescriptor : EPiServer.Shell.ObjectEditing.EditorDescriptors.EditorDescriptor
{
    public override void ModifyMetadata(ExtendedMetadata metadata, IEnumerable<System.Attribute> attributes)
    {
       base.ModifyMetadata(metadata, attributes);
       metadata.EditorConfiguration.Add("class", "epi__catalog-node--reload");
    }
}
}

[CultureSpecific]
[AllowedTypes(typeof(NTCCategory))]
[UIHint(SiteUIHints.ReloadPage)] // Only apply this UIHint
[UIHint(EPiServer.Commerce.UIHint.CatalogContent)] // Can't apply this UIHint
public virtual ContentReference CategoryNode { get; set; }

Thanks,

Thao Pham

Copy form will not copy form element dependiencies

$
0
0

Lets say I create a form with 1 text and 1 choice element.

In the choice element I set dependency that this should only be shown if I type Test in the text element.

This works fine.

Then I copy the form.

The newly created copied form will not have that dependency working. It will directly show the choice element even if I have not entered anything in the text element.

It says that the dependency is not valid anymore.

Is this a known bug?

Thanks

Is it "safe" to use the generic PropertyList?

$
0
0

Hi!

Would you say it's "safe" to use the generic PropertyList?

In the developer documentation it says the following:

This topic describes unsupported functionality in Episerver CMS. Episerver recommends using ContentArea and Blocks for lists of complex objects. Using PropertyList<T> together with complex types requires additional custom functionality to fully ensure data consistency, portability and functionality.

I'm not so keen on investing a lot of time in using the generic PropertyList if it's to be deprecated.

However, it seems like it would be easier to work with the property list - for editors - rather than blocks.

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

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?

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.

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

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?

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!

 

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.

Viewing all 8020 articles
Browse latest View live


Latest Images