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

EPiServer.Editor.TinyMCE.Editor is missing in TinyMce 1.0 for CMS 11 .

$
0
0

I need to install tinymce separately When I upgrade CMS10 to CMS11. But I found  EPiServer.Editor.TinyMCE.Editor is missing in TinyMce 1.0.

EPiServer.Editor.TinyMCE.Editor is exist in Episerver 10.5.0.0 as following:

But it is missing from tinyMce 1.0:


Can I use PropertySettings for TinyMCE 2.0?

Content Delivery API with EPiForms

$
0
0

Hi,
I've stumbled upon some problems with EPiForms together with the Content API. The template and assets described in (https://world.episerver.com/documentation/developer-guides/content-delivery-api/content-delivery-api-and-episerver-forms/) are not present in the response (unless we explicitly ask for the form's specific ID). However, we utilize friendly URLs in our SPA so this isn't an option. 

It seems like the cause to this is that we've also implemented the CustomContentAreaPropertyModel (described in https://world.episerver.com/documentation/developer-guides/content-delivery-api/how-to-customize-data-returned-to-clients/) to expand all content areas. We've checked the dll:s with ILSpy and found some differences with the previous implementation and managed to get it working by rewriting the expand behaviour like so:

        protected override IEnumerable<ContentApiModel> ExtractExpandedValue(CultureInfo language)
        {
            List<ContentApiModel> expandedValue = new List<ContentApiModel>();
            IEnumerable<ContentReference> contentReferences = from x in base.Value
                                                              where x.ContentLink != null
                                                              select new ContentReference(x.ContentLink.Id.Value);
            List<IContent> source = _contentLoaderService.GetItems(contentReferences, language).ToList();
            var principal = base.ExcludePersonalizedContent ? _principalAccessor.GetAnonymousPrincipal() : _principalAccessor.GetCurrentPrincipal();
            source.Where((IContent x) => _accessEvaluator.HasAccess(x, principal, AccessLevel.Read)).ToList().ForEach(delegate (IContent fc)
            {
                expandedValue.Add(GetMapper(_contentModelMapper, fc).TransformContent(fc, base.ExcludePersonalizedContent, "*"));
            });
            return expandedValue;
        }
        public static IContentModelMapper GetMapper(IContentModelMapper mapper, IContent content)
        {
            if (!(mapper is ContentModelMapperBase))
            {
                return mapper;
            }
            return ServiceLocator.Current.GetInstance<IContentModelMapperFactory>().GetMapper(content);
        }

Don't know if this helps anyone or if EPiServer might have an answer to why this is, maybe the CustomContentAreaPropertyModel-functionality was written before CD.Forms was developed?

Is there a way to base the rights to publish a form in Episerver based on the presence of webhooks?

$
0
0

We basically use two user groups in Episerver, web editors and extended web editors. Normally, both should be able to create and publish forms. However, only extended web editors should be able to publish a form if one or more webhooks have been specified. How, if at all possible, can this be achieved?

My initial thought was to use an InitializationModule and add a handler for the PublishingContent event. If the form has any webhooks I would then check the user type and present an error message if it isn't a extended web editor. The problem is that I cannot figure out a way way to access the webhooks information.

Any insight would be greatly appreciated.

EPiServer.Editor.TinyMCE.Editor is missing in TinyMce 1.0 for CMS 11 .

$
0
0

I need to install tinymce separately When I upgrade CMS10 to CMS11. But I found  EPiServer.Editor.TinyMCE.Editor is missing in TinyMce 1.0.

EPiServer.Editor.TinyMCE.Editor is exist in Episerver 10.5.0.0 as following:

But it is missing from tinyMce 1.0:

Can I use PropertySettings for TinyMCE 2.0?

How to debug Util/login.aspx? error: "Could not load type..."

$
0
0

Having an issue when logging in to the CMS (after starting to integrate Quicksilver).  When starting the site in Visual Studio to debug it, I can load the Episerver login page, but get an error of "Could not load type..." right after submitting the page.  How do I debug the Util/Login.aspx page?  

The type that is having an issue loading is System.ComponentModel.DataAnnotations.Schema.IndexAttribute.  Everything that I've found online point to EntityFramework version being off in packages and web.config, but everything matches.  I've also double checked all assemblies between Quicksilver and my project.  I know also that Quicksilver is Commerce, but since this is an integration with the CMS, that's why I posted it here.  Continuing to check what code may be getting called that I added...  

Thanks,

Tim

Can I use PropertySettings for TinyMCE 2.0?


EPiServer.ServiceApi.Commerce 5.4.4 GetOrder endpoint does not return line item meta fields (properties)

$
0
0

Hi. We are using ServiceApi to get order details through a http request (episerverapi/commerce/orders/orderGroupId). We added some meta fields on LineItem but they are not present in the response. We decompiled the endpoint and found that Properties property is present on the LineItem model but is not populated in ConvertToLineItemModel method (OrderGroupModelConverter class) (it is populated on OrderGroup, OrderForm, Payment, Shipment). 

Is this known issue and will be included in next releases? What are your suggestions to workaround this issue?

Can I use PropertySettings for TinyMCE 2.0?

How can get all Related entries from target Link

$
0
0

Hi,

As i understand we only get related entries for an entry. But I want to do the opposite.

Can from Target i want get all Source related entries

For examle:

Product 1 have related entries product1(part1, part2, part3, par4)

Product 2 have related entries product1(part1, part2)

Product 3 have related entries product1(part3, part4)

Product 4 have related entries product1(part1, part4)

=> i want from part1 get all Product1, Product2, Product4

https://world.episerver.com/documentation/developer-guides/commerce/catalogs/catalog-content/Related-entries/

Regards,

T

Can I use PropertySettings for TinyMCE 2.0?

Can I use PropertySettings for TinyMCE 2.0?

Can I use PropertySettings for TinyMCE 2.0?

Hiding filter values that don't return results

$
0
0

Forgive me if this is documented and I missed it somehow, but I'm curious how I might be able to hide filter values on a catalog page that don't return results (products).

Example:

Color (filter)

  • Red (5 products)
  • Blue (2 products)
  • Green (0 products)

In the above example, how do I hide (client-side) or prevent rendering (server-side) the "Green" filter value. I can't think of how this might be possible without directly querying each filter value in the Find index to determine result count before rendering the page. That approach seems rather expensive from a performance standpoint, however.


Button by default disabled on EditorDescriptorAttribute

$
0
0

Hi,

I'm using EditorDescriptorAttribute for IList 

[Display(Name = "Answers", GroupName = PropertyGroupNames.Question, Order = 80)]
[EditorDescriptor(EditorDescriptorType = typeof(AnswerListPropertyDescriptor))]
[Required]
[ListItems(2,10000)]
[PropertyListCheckbox]
public virtual IList<QuestionnaireAnswerBlock> Answers { get; set; }

It opens as a custom editor with a textbox and checkbox with two buttons for Submit and Cancel

Submit button is bydefault disabled and enables only when a checkbox is checked/unchecked in editor.

I want it to be enabled by default.

How to do this? Please help.

Can I use PropertySettings for TinyMCE 2.0?

How to debug Util/login.aspx? Login Failed...

$
0
0

Having an issue when logging in to the CMS (after starting to integrate Quicksilver).  When starting the site in Visual Studio to debug it, I can load the Episerver login page, but get an error of "Could not load type..." right after submitting the page.  How do I debug the Util/Login.aspx page?  

The type that is having an issue loading is System.ComponentModel.DataAnnotations.Schema.IndexAttribute.  Everything that I've found online point to EntityFramework version being off in packages and web.config, but everything matches.  I've also double checked all assemblies between Quicksilver and my project.  I know also that Quicksilver is Commerce, but since this is an integration with the CMS, that's why I posted it here.  Continuing to check what code may be getting called that I added...  

This has been resolved (7/6/20), but now getting Login Failed.  

Still need to try to debug Util/Login.aspx as I'm now getting Login Failed with a username and password that had worked before.  I've done nothing with the database that should cause this.  At least not knowingly.  

Thanks,

Tim

Move the EPiServer.DataAbstraction.Activities.Internal.IActivityTypeRegistry to public API

$
0
0

Well the posts subject has the punch line :D

So, please move the EPiServer.DataAbstraction.Activities.Internal.IActivityTypeRegistry to public API as we needed it when creating custom activities to be able to register those (yes we can now, but the Internal namespace indicates to us that this could change without a warning).

Sort By Price on Product Variation using Find Query

$
0
0

Hi all!

We are using Catelog Product Model to search products and already had Sort by options with DisplayName and Relavance.

Now we would like to sort the results with Price(Asc & Dsc) wich is with variation. In our case We have developed query with  Catelog Product Model, 

So until we get the results of query we are not going to get the price of variation.

If anyone achieved this scenario please help us to break it.

Here is some code snippet:

query = query.OrderByDescending(p => p.DisplayName); //Used to sort with Display Name. P->Product  Model

We tried with 

query = query.OrderByDescending(p => p.GetProductPrice()); which is not effecting the results, because of not having price here.

var results = query
.ApplyBestBets()
.Skip((page - 1) * pageSize)
.Take(pageSize)
.Track()
.GetContentResult();

Thank you!

Viewing all 6894 articles
Browse latest View live