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

Filter with GetPropertyValue(..) for booleans

$
0
0

I want to search the pages with GetPropertyValue(..) but I don't get any result with the below:

var results = SearchClient.Instance.Search()
            .Filter(p => p.GetPropertyValue("IsEmployee").Match("true"))
            .GetContentResult();


Is there a way to filter with the GetPropertyValue(..) for booleans like above?


Media missing after upgrade from 10.10.4 to 11

$
0
0

Hi!

After upgrading from 10.10.4 to 11, there are several images and documents in media folder. There are but placeholder images, and  they are not accessible, ie cannot download them.

Are there any specific things to do during upgrade, that we are missing?

TIA 

Fredrik

Comments Pagination Incorrect

$
0
0

If I have a criteria of:

            var criteria = new CompositeCriteria<CommentFilter, CommentsExtensionModel>
                           {
                               Filter = new CommentFilter { Ancestor = ancestralComment },
                               PageInfo = new PageInfo { PageSize = 2, PageOffset = 0, CalculateTotalCount = true},
                               OrderBy = { new SortInfo(CommentSortFields.Created, true) }
                           };

Call the service:

var results = _commentService.Get(criteria)

It works, no issues, 2 Results, Total Matching 5.

And as an example lets say it returns

results.Results[0].Data.Id = 123

results.Results[1].Data.Id = 456

All fine.

Now if I paginate:

            var criteria = new CompositeCriteria<CommentFilter, CommentsExtensionModel>
                           {
                               Filter = new CommentFilter { Ancestor = ancestralComment },
                               PageInfo = new PageInfo { PageSize = 2, PageOffset = 1, CalculateTotalCount = true},
                               OrderBy = { new SortInfo(CommentSortFields.Created, true) }
                           };

Again I get 2 more results, but the issue I am seeing is that:

results.Results[0].Data.Id = 456

results.Results[1].Data.Id = 789

As you can see the results returned after the pagination includes the last previous result.

Is this by design or is this a bug?

Thanks

EPiServer.Labs.LanguageManager not being able to translate larger texts.

$
0
0

I was testing EPiServer.Labs.LanguageManager for a client's site, and got an error as soon as I tried to translate an XhtmlString property.
The Error log says "The maximum request size has been exceeded", "Cannot translate with Cognitive service".
I found this regarding limits for translator: https://docs.microsoft.com/en-us/azure/cognitive-services/translator/request-limits
It seems that there is a limit on 5000 characters per request, which you quite easily exceed, especially if you have created a table in the rich text editor.

It shouldn't be a super big task to break up the characters in multiple request, but might need some thinking regarding how to break up the html, so that the translator knows what is markup and what is actual text to translate.

Decrease product amount when promotion is added with larger amount then subtotal

$
0
0

Hi,

We ran into a problem.

We have a site where you can use your wallet value to buy some products. The Wallet value the customer wants to use do we call a Wallet Promotion.
The customer selects the Wallet amount (max amount of order subtotal ex vat or max of customer wallet amount) en after that we create a Promotion of type WalletPromoData (override from OrderPromotion). 

Now we have the following scenario:

  1. Add product to cart with 4 seats a E200,- each (order subtotal is E800,-)
  2. Use Wallet value for whole order, so also E800,- (promotion with couponcode is generated and visible)
  3. Decrease the seats to 2, so order subtotal will be E400,- while the Wallet Promotion still has a value of E800,-
  4. Now, the cart page run into the following error after calling OrderRepository.Service.Save(cart): "Invalid order group total calculation"
  5. So it looks like Episerver doesn't decrease the amount of the promotion to the max of the order subtotal

Does anyone else ran into the same problem or something like this?

Thanks in advance.

Grtz Sander

How to run Episerver in Azure - without paying too much?

$
0
0

Any tips and tricks on how to host an Episerver CMS site in Azure, without spending too much?

Not too much data, not too much traffic.

Image alt text when dragging and dropping an image into TinyMCE.

$
0
0

We've recently run into an issue with a few of our CMS sites where the Alt text isn't populating when the image is dragged into the TinyMCE editor. If you click Insert -> Image and select an image, you can insert alt text. However, we like to keep our alt text with the image itself. TinyMCE does not give us an way to insert this.

We had initially tried getting alt text on as an on page publish event, but then the alt text could be changed on the image, and each page needed to be republished. Our current solution is to create an Xhtmlstring display template with MVC, and add an extension method, parse for image tags, get the content from UrlResolver, load the image, get the alt text, rewrite the Xhtmlstring, and return the result. This doesn't feel like a good practice. 

Does anyone have a good way to keep an Xhtmlstring property updated with alt text from an image file?

Struggling with the basics

$
0
0

Hi All,

Can anyone help me out here? Essentially I am getting a load of 404 errors and I don't understand why.

What I've done so far

installed 

<package id="EPiServer.ContentDeliveryApi.Cms" version="2.14.0" targetFramework="net472" />
<package id="EPiServer.ContentDeliveryApi.Core" version="2.14.0" targetFramework="net472" />

I've added a initialisation module and added:

config.Default()
.SetMinimumRoles(string.Empty)
.SetSiteDefinitionApiEnabled(true);

I've launched the site locally and in the CMS configured the permissions for the ContentApiRead role to have Read access to my site's startpage and set all decendants to inherit those access rights.

What I am experiencing

navigate to /api/episerver/v2.0/site/ and I am returned my site definition JSON as expected.

from that returned data I can see my site and within 'contentRoots'> 'startPage' is can see the content reference id, lets say it' 49747. So my next api call would be for the content of that startpage. There is some data in properties of the startpage that I want to use.

navigate to /api/episerver/v2.0/content/49747/ and I get a 404. Odd. At some point I'll want to get all the pages that exist under the start page anyway, so lets carry on.

navigation to /api/episerver/v2.0/content/49747/children/ and I get a response of []. Even though there are child pages under the startpage.

Upon further digging:

when I navigate to /api/episerver/v2.0/content/ for different kinds of content, I get different results. for example:

for pages = 404
for blocks = 404
for folders = yes, proper JSON response
for files = yes, same for files

/api/episerver/v2.0/content/{page content ref}/children/ = []
/api/episerver/v2.0/content/{folder content ref}/children/ = yes

So am I just misunderstanding the API or have I forgotten to configure something? 

Really appreciate a steer on this!

Alex


Training And Final Year Project Centre In Coimbatore

$
0
0

Training in Coimbatore
Training in Coimbatore is one of the best training institute in Coimbatore which provides various modes of trainings like classroom training, online training and live training in Coimbatore. We provide both weekdays training and Weekend training in Coimbatore with flexible timing.

[URL=https://glimtechnologies.com/java-training-coimbatore/]Java training in coimbatore[/URL]
[URL=https://glimtechnologies.com/digital-marketing-training-coimbatore/]Digital Marketing training in coimbatore[/URL]
[URL=https://glimtechnologies.com/seo-training-coimbatore/]SEO training in coimbatore[/URL]
[URL=https://glimtechnologies.com/tally-training-coimbatore/]tally training in coimbatore[/URL]
[URL=https://glimtechnologies.com/python-training-in-coimbatore/]python training in coimbatore[/URL]
[URL=https://glimtechnologies.com/hadoop-training-in-coimbatore/]hadoop training in coimbatore[/URL]
[URL=https://glimtechnologies.com/big-data-training-in-coimbatore/]big data training in coimbatore[/URL]
[URL=https://glimtechnologies.com/r-programming-training-in-coimbatore/]r programming training in coimbatore[/URL]
[URL=https://glimtechnologies.com/scrum-master-training-coimbatore/]scrum master training in coimbatore[/URL]
[URL=https://glimtechnologies.com/pmp-training-coimbatore/]pmp training in coimbatore[/URL]
[URL=https://glimtechnologies.com/scrum-master-training-coimbatore/]scrum master certification training in coimbatore[/URL]
[URL=https://glimtechnologies.com/pmp-training-coimbatore/]pmp certification training in coimbatore[/URL]
[URL=https://glimtechnologies.com/ccna-training-coimbatore/]ccna training in coimbatore[/URL]
[URL=https://glimtechnologies.com/selenium-training-coimbatore/]selenium training in coimbatore[/URL]
[URL=https://glimtechnologies.com/informatica-training-in-coimbatore/]informatica training in coimbatore[/URL]
[URL=https://glimtechnologies.com/aws-training-coimbatore/]aws training in coimbatore[/URL]
[URL=https://glimtechnologies.com/angular-js-training-coimbatore/]angular js training in coimbatore[/URL]
[URL=https://glimtechnologies.com/dotnet-training-coimbatore/]dotnet training in coimbatore[/URL]
[URL=https://glimtechnologies.com/dotnet-training-coimbatore/].NET training in coimbatore[/URL]
[URL=https://glimtechnologies.com/sas-training-coimbatore/]sas training in coimbatore[/URL]
[URL=https://glimtechnologies.com/wordpress-training-coimbatore/]wordpress training in coimbatore[/URL]
[URL=https://glimtechnologies.com/rpa-training-coimbatore/]rpa training in coimbatore[/URL]
[URL=https://glimtechnologies.com/devops-training-in-coimbatore/]devops training in coimbatore[/URL]
[URL=https://glimtechnologies.com/pega-training-in-coimbatore/]pega training in coimbatore[/URL]
[URL=https://glimtechnologies.com/php-training-in-coimbatore/]php training in coimbatore[/URL]
[URL=https://glimtechnologies.com/etl-testing-training-in-coimbatore/]etl testing training in coimbatore[/URL]


Course in Coimbatore
At Training in Coimbatore, we provide fast track training,online training and corporate training in Coimbatore.In Training in Coimbatorewe cover all course syllabus by full of practical examples which will help students and trainees to land up in jobs.We train various course for students, Part timer, working employees and corporate training in both regular and fast tract class in Coimbatore.

[URL=https://glimtechnologies.com/java-training-coimbatore/]Java training institute in coimbatore[/URL]
[URL=https://glimtechnologies.com/digital-marketing-training-coimbatore/]Digital Marketing training institute in coimbatore[/URL]
[URL=https://glimtechnologies.com/seo-training-coimbatore/]SEO training institute in coimbatore[/URL]
[URL=https://glimtechnologies.com/tally-training-coimbatore/]tally training institute in coimbatore[/URL]
[URL=https://glimtechnologies.com/python-training-in-coimbatore/]python training institute in coimbatore[/URL]
[URL=https://glimtechnologies.com/hadoop-training-in-coimbatore/]hadoop training institute in coimbatore[/URL]
[URL=https://glimtechnologies.com/big-data-training-in-coimbatore/]big data training institute in coimbatore[/URL]
[URL=https://glimtechnologies.com/r-programming-training-in-coimbatore/]r programming training institute in coimbatore[/URL]
[URL=https://glimtechnologies.com/scrum-master-training-coimbatore/]scrum master training institute in coimbatore[/URL]
[URL=https://glimtechnologies.com/pmp-training-coimbatore/]pmp training institute in coimbatore[/URL]
[URL=https://glimtechnologies.com/ccna-training-coimbatore/]ccna training institute in coimbatore[/URL]
[URL=https://glimtechnologies.com/selenium-training-coimbatore/]selenium training institute in coimbatore[/URL]
[URL=https://glimtechnologies.com/informatica-training-in-coimbatore/]informatica training institute in coimbatore[/URL]
[URL=https://glimtechnologies.com/aws-training-coimbatore/]aws training institute in coimbatore[/URL]
[URL=https://glimtechnologies.com/angular-js-training-coimbatore/]angular js training institute in coimbatore[/URL]
[URL=https://glimtechnologies.com/dotnet-training-coimbatore/]dotnet training institute in coimbatore[/URL]
[URL=https://glimtechnologies.com/dotnet-training-coimbatore/].NET training institute in coimbatore[/URL]
[URL=https://glimtechnologies.com/sas-training-coimbatore/]sas training institute in coimbatore[/URL]
[URL=https://glimtechnologies.com/wordpress-training-coimbatore/]wordpress training institute in coimbatore[/URL]
[URL=https://glimtechnologies.com/rpa-training-coimbatore/]rpa training institute in coimbatore[/URL]
[URL=https://glimtechnologies.com/devops-training-in-coimbatore/]devops training institute in coimbatore[/URL]
[URL=https://glimtechnologies.com/pega-training-in-coimbatore/]pega training institute in coimbatore[/URL]
[URL=https://glimtechnologies.com/php-training-in-coimbatore/]php training institute in coimbatore[/URL]
[URL=https://glimtechnologies.com/etl-testing-training-in-coimbatore/]etl testing training institute in coimbatore[/URL]

Training Institute in Coimbatore
Training in Coimbatoreis the best training institute in Coimbatore with 100% real-time,practical and placement. We provides training with real-time working professional which will help students and trainees to get trained in practical real-time scenario Java along with theory.

[URL=https://glimtechnologies.com/java-training-coimbatore/]Java course in coimbatore[/URL]
[URL=https://glimtechnologies.com/digital-marketing-training-coimbatore/]Digital Marketing course in coimbatore[/URL]
[URL=https://glimtechnologies.com/seo-training-coimbatore/]SEO course in coimbatore[/URL]
[URL=https://glimtechnologies.com/tally-training-coimbatore/]tally course in coimbatore[/URL]
[URL=https://glimtechnologies.com/python-training-in-coimbatore/]python course in coimbatore[/URL]
[URL=https://glimtechnologies.com/hadoop-training-in-coimbatore/]hadoop course in coimbatore[/URL]
[URL=https://glimtechnologies.com/big-data-training-in-coimbatore/]big data course in coimbatore[/URL]
[URL=https://glimtechnologies.com/r-programming-training-in-coimbatore/]r programming course in coimbatore[/URL]
[URL=https://glimtechnologies.com/scrum-master-training-coimbatore/]scrum master course in coimbatore[/URL]
[URL=https://glimtechnologies.com/pmp-training-coimbatore/]pmp course in coimbatore[/URL]
[URL=https://glimtechnologies.com/scrum-master-training-coimbatore/]scrum master certification course in coimbatore[/URL]
[URL=https://glimtechnologies.com/pmp-training-coimbatore/]pmp certification course in coimbatore[/URL]
[URL=https://glimtechnologies.com/ccna-training-coimbatore/]ccna course in coimbatore[/URL]
[URL=https://glimtechnologies.com/selenium-training-coimbatore/]selenium course in coimbatore[/URL]
[URL=https://glimtechnologies.com/informatica-training-in-coimbatore/]informatica course in coimbatore[/URL]
[URL=https://glimtechnologies.com/aws-training-coimbatore/]aws course in coimbatore[/URL]
[URL=https://glimtechnologies.com/angular-js-training-coimbatore/]angular js course in coimbatore[/URL]
[URL=https://glimtechnologies.com/dotnet-training-coimbatore/]dotnet course in coimbatore[/URL]
[URL=https://glimtechnologies.com/dotnet-training-coimbatore/].NET course in coimbatore[/URL]
[URL=https://glimtechnologies.com/sas-training-coimbatore/]sas course in coimbatore[/URL]
[URL=https://glimtechnologies.com/wordpress-training-coimbatore/]wordpress course in coimbatore[/URL]
[URL=https://glimtechnologies.com/rpa-training-coimbatore/]rpa course in coimbatore[/URL]
[URL=https://glimtechnologies.com/devops-training-in-coimbatore/]devops course in coimbatore[/URL]
[URL=https://glimtechnologies.com/pega-training-in-coimbatore/]pega course in coimbatore[/URL]
[URL=https://glimtechnologies.com/php-training-in-coimbatore/]php course in coimbatore[/URL]
[URL=https://glimtechnologies.com/etl-testing-training-in-coimbatore/]etl testing course in coimbatore[/URL]


Training Center in Coimbatore
We are the best training center in Coimbatore and we definitely help you to complete thecertification course and clearing interviews.Training in Coimbatorefocus on giving students basic to advanced level of training in Coimbatore.

[URL=https://glimtechnologies.com/java-training-coimbatore/]Java training centre in coimbatore[/URL]
[URL=https://glimtechnologies.com/digital-marketing-training-coimbatore/]Digital Marketing training centre in coimbatore[/URL]
[URL=https://glimtechnologies.com/seo-training-coimbatore/]SEO training centre in coimbatore[/URL]
[URL=https://glimtechnologies.com/tally-training-coimbatore/]tally training centre in coimbatore[/URL]
[URL=https://glimtechnologies.com/python-training-in-coimbatore/]python training centre in coimbatore[/URL]
[URL=https://glimtechnologies.com/hadoop-training-in-coimbatore/]hadoop training centre in coimbatore[/URL]
[URL=https://glimtechnologies.com/big-data-training-in-coimbatore/]big data training centre in coimbatore[/URL]
[URL=https://glimtechnologies.com/r-programming-training-in-coimbatore/]r programming training training centre in coimbatore[/URL]
[URL=https://glimtechnologies.com/scrum-master-training-coimbatore/]scrum master training centre in coimbatore[/URL]
[URL=https://glimtechnologies.com/pmp-training-coimbatore/]pmp training centre in coimbatore[/URL]
[URL=https://glimtechnologies.com/ccna-training-coimbatore/]ccna training centre in coimbatore[/URL]
[URL=https://glimtechnologies.com/selenium-training-coimbatore/]selenium training centre in coimbatore[/URL]
[URL=https://glimtechnologies.com/informatica-training-in-coimbatore/]informatica training centre in coimbatore[/URL]
[URL=https://glimtechnologies.com/aws-training-coimbatore/]aws training centre in coimbatore[/URL]
[URL=https://glimtechnologies.com/angular-js-training-coimbatore/]angular js training centre in coimbatore[/URL]
[URL=https://glimtechnologies.com/dotnet-training-coimbatore/]dotnet training centre in coimbatore[/URL]
[URL=https://glimtechnologies.com/dotnet-training-coimbatore/].NET training centre in coimbatore[/URL]
[URL=https://glimtechnologies.com/sas-training-coimbatore/]sas training centre in coimbatore[/URL]
[URL=https://glimtechnologies.com/wordpress-training-coimbatore/]wordpress training centre in coimbatore[/URL]
[URL=https://glimtechnologies.com/rpa-training-coimbatore/]rpa training centre in coimbatore[/URL]
[URL=https://glimtechnologies.com/devops-training-in-coimbatore/]devops training centre in coimbatore[/URL]
[URL=https://glimtechnologies.com/pega-training-in-coimbatore/]pega training centre in coimbatore[/URL]
[URL=https://glimtechnologies.com/php-training-in-coimbatore/]php training centre in coimbatore[/URL]
[URL=https://glimtechnologies.com/etl-testing-training-in-coimbatore/]etl testing training centre in coimbatore[/URL]
[URL=https://glimtechnologies.com/internship-in-coimbatore/]internship in coimbatore[/URL]
[URL=https://glimtechnologies.com/inplant-training-coimbatore/]IPT in coimbatore[/URL]
[URL=https://glimtechnologies.com/inplant-training-coimbatore/]Inplant Training in coimbatore[/URL]

Final Year Project in Coimbatore
Training in Coimbatore is one of the best final year project center which are located in gandhipuram, Coimbatore. We provide best final year IEEE project for the Bsc/Msc/BE IT/ME IT/BCA/MCA students in Coimbatore. Training in Coimbatore is the best Project Center in Coimbatore.


[URL=https://glimtechnologies.com/ieee-projects-coimbatore/]ieee project centre in coimbatore[/URL]
[URL=https://glimtechnologies.com/final-year-ieee-java-projects-coimbatore/]ieee java project centre in coimbatore[/URL]
[URL=https://glimtechnologies.com/final-year-ieee-dot-net-projects-coimbatore/]ieee dotnet project centre in coimbatore[/URL]
[URL=https://glimtechnologies.com/final-year-ieee-big-data-projects-coimbatore/]ieee big data project centre in coimbatore[/URL]
[URL=https://glimtechnologies.com/final-year-ieee-python-projects-coimbatore/]ieee python project centre in coimbatore[/URL]
[URL=https://glimtechnologies.com/final-year-ieee-hadoop-projects-coimbatore/]ieee hadoop project centre in coimbatore[/URL]
[URL=https://glimtechnologies.com/final-year-ieee-php-projects-coimbatore/]ieee php project centre in coimbatore[/URL]
[URL=https://glimtechnologies.com/final-year-ieee-vlsi-projects-coimbatore/]ieee vlsi project centre in coimbatore[/URL]
[URL=https://glimtechnologies.com/ieee-embedded-projects-coimbatore/]ieee embedded project centre in coimbatore[/URL]
[URL=https://glimtechnologies.com/ieee-android-projects-coimbatore/]ieee android project centre in coimbatore[/URL]
[URL=https://glimtechnologies.com/ieee-matlab-projects-coimbatore/]ieee matlab project centre in coimbatore[/URL]
[URL=https://glimtechnologies.com/final-year-ieee-iot-projects-coimbatore/]ieee iot project centre in coimbatore[/URL]
[URL=https://glimtechnologies.com/ieee-final-year-project-center-coimbatore/]ieee final year project centre in coimbatore[/URL]


IEEE Project Center in Coimbatore
Training in Coimbatore, IEEE final year project center in Coimbatore provides 2020 IEEE final year projects for all students. We are the best IEEE final year project center in Gandhipuram, Coimbatore which offers latest, updated and unique 2020 IEEE final year projects in Coimbatore. We are one-stop project center in Coimbatore for all types of projects in Coimbatore.


[URL=https://glimtechnologies.com/ieee-projects-coimbatore/]final year project centre in coimbatore[/URL]
[URL=https://glimtechnologies.com/final-year-ieee-java-projects-coimbatore/]final year java project centre in coimbatore[/URL]
[URL=https://glimtechnologies.com/final-year-ieee-dot-net-projects-coimbatore/]final year dotnet project centre in coimbatore[/URL]
[URL=https://glimtechnologies.com/final-year-ieee-big-data-projects-coimbatore/]final year big data project centre in coimbatore[/URL]
[URL=https://glimtechnologies.com/final-year-ieee-python-projects-coimbatore/]final year python project centre in coimbatore[/URL]
[URL=https://glimtechnologies.com/final-year-ieee-hadoop-projects-coimbatore/]final year hadoop project centre in coimbatore[/URL]
[URL=https://glimtechnologies.com/final-year-ieee-php-projects-coimbatore/]final year php project centre in coimbatore[/URL]
[URL=https://glimtechnologies.com/final-year-ieee-vlsi-projects-coimbatore/]final year vlsi project centre in coimbatore[/URL]
[URL=https://glimtechnologies.com/ieee-embedded-projects-coimbatore/]final year embedded project centre in coimbatore[/URL]
[URL=https://glimtechnologies.com/ieee-android-projects-coimbatore/]final year android project centre in coimbatore[/URL]
[URL=https://glimtechnologies.com/ieee-matlab-projects-coimbatore/]final year matlab project centre in coimbatore[/URL]
[URL=https://glimtechnologies.com/final-year-ieee-iot-projects-coimbatore/]final year iot project centre in coimbatore[/URL]
[URL=https://glimtechnologies.com/ieee-final-year-project-center-coimbatore/]final year project centre in coimbatore[/URL]


IEEE Projects in India
Final year project center in Coimbatore offers IEEE Projects on Java, Hadoop, Big Data, Python, Dot Net, Android, VLSI, PHP, IoT, Embeded and Matlab for Bsc/Msc/BE IT/ME IT/BCA/MCA/B Tech/ M Tech final year students in Coimbatore. We are popular IEEE project center in Coimbatore for final year students. Final year projects are very important thing for final year students so choosing project center is also an important thing. We are the best IEEE final year project center in Coimbatore.


[URL=https://glimtechnologies.com/ieee-projects-coimbatore/]final year projects in coimbatore[/URL]
[URL=https://glimtechnologies.com/final-year-ieee-java-projects-coimbatore/]final year java projects in coimbatore[/URL]
[URL=https://glimtechnologies.com/final-year-ieee-dot-net-projects-coimbatore/]final year dotnet projects in coimbatore[/URL]
[URL=https://glimtechnologies.com/final-year-ieee-big-data-projects-coimbatore/]final year big data projects in coimbatore[/URL]
[URL=https://glimtechnologies.com/final-year-ieee-python-projects-coimbatore/]final year python projects in coimbatore[/URL]
[URL=https://glimtechnologies.com/final-year-ieee-hadoop-projects-coimbatore/]final year hadoop projects in coimbatore[/URL]
[URL=https://glimtechnologies.com/final-year-ieee-php-projects-coimbatore/]final year php projects in coimbatore[/URL]
[URL=https://glimtechnologies.com/final-year-ieee-vlsi-projects-coimbatore/]final year vlsi projects in coimbatore[/URL]
[URL=https://glimtechnologies.com/ieee-embedded-projects-coimbatore/]final year embedded projects in coimbatore[/URL]
[URL=https://glimtechnologies.com/ieee-android-projects-coimbatore/]final year android projects in coimbatore[/URL]
[URL=https://glimtechnologies.com/ieee-matlab-projects-coimbatore/]final year matlab projects in coimbatore[/URL]
[URL=https://glimtechnologies.com/final-year-ieee-iot-projects-coimbatore/]final year iot projects in coimbatore[/URL]
[URL=https://glimtechnologies.com/ieee-final-year-project-center-coimbatore/]final year projects in coimbatore[/URL]

BVN.404Handler - CustomRequestHandler & DXP - truncated response

$
0
0

Hi All,

We developed a custom handler to extend BVN package to server a custom 404 page based on the request URL.

This functionality has been running on our on-prem hosting successfully for some time now. However, one deployed to DXP, the response's content is being truncated so the ever request returns different amounts of HTML.

Handler code:

using BVNetwork.NotFound.Core;
using BVNetwork.NotFound.Core.Configuration;
using BVNetwork.NotFound.Core.CustomRedirects;
using BVNetwork.NotFound.Core.Logging;
using System;
using System.Web;
namespace Goodwood.Web.BVN
{
    public class CustomRequestHandler : RequestHandler
    {
        public CustomRequestHandler(
            IRedirectHandler redirectHandler,
            IRequestLogger requestLogger,
            IConfiguration configuration) : base(redirectHandler, requestLogger, configuration)
        {
        }
        public override void Handle(HttpContextBase context)
        {
            if (context.Response.StatusCode == 404 && !(context.Request.Url?.AbsolutePath.Contains("404") ?? false))
            {
                var isMemberArea = context.Request.Url?.AbsolutePath.StartsWith("/member", StringComparison.InvariantCultureIgnoreCase) ?? false;
                context.Server.TransferRequest($"{(isMemberArea ? "/member" : string.Empty)}/404/");
            }
        }
    }
}

Initialization module:

 [InitializableModule]
    [ModuleDependency(typeof(EPiServer.Web.InitializationModule))]
    public class Custom404HandlerInitialization : IConfigurableModule
    {
        public void Initialize(InitializationEngine context)
        {
        }
        public void Uninitialize(InitializationEngine context)
        {
        }
        public void ConfigureContainer(ServiceConfigurationContext context)
        {
            context.Services.AddTransient<RequestHandler, CustomRequestHandler>();
        }
    }

Is it something you guys have experienced before? 

Thanks, Maciej

how to extract the properties of the product present in content area of a page?

$
0
0

Hi all,

how to extract the properties of a product present in content area of a page using code?

EPiServer.LabsGridView

$
0
0

Hi!

We are having some trouble getting the grid view to work. 

The documentation is a bit confusing or deficient. 

So we have installed the grid view package, and converted a node using the button in the gui. But the page is

not listing the sub pages in a grid view, instead, it is displaying the page properties as usual.

Do we have to do something more to get it to work?

Check page action for validation

$
0
0

Hi,

I have some custom validation (inheriting ValidationAttribute) on a CMS property which should trigger if I try to publish a page but which should not trigger if the page is set ready to publish and I then select to withdraw and edit.

Checking the status of the page seems to work in that in this scenario it is CheckedIn but I'm not sure how to differentiate between publishing and withdrawing to edit.

This is probably quite simple but can anyone offer a suggestion on how I might check on the page action to determine whether the validation should trigger or not?

Thanks in advanvce,

Mark

Development vs Editor

$
0
0

Hi,

I am very new to EPiServer. The company I work for is implementing epi CMS with Commerce and i am very interested in understanding what is achievable within the front-end cms editor and what type of change requires back-end code development?

We have an implementation partner who is building the first commerce site on our behalf from our requirements but then it is envisaged that we as a company will update and maintain the site.

Any information you have on the editor vs developer split would be much appriciated.

Remove Unrelated Content Assets-job fails

$
0
0

For a little over a week has the job "Remove Unrelated Content Assets" failed with error (the job has been set to run once daily):

The jobs seems to end virtually directly when executed.

The DELETE statement conflicted with the REFERENCE constraint "FK_tblContentProperty_tblContent2". The conflict occurred in database "dbEpiCmsSF", table "dbo.tblContentProperty", column 'ContentLink'.

The EPiServerErrors.log contains the following:

2014-08-14 16:35:15,153 [58] ERROR EPiServer.DataAbstraction.ScheduledJob: Job EPiServer.Util.CleanUnusedAssetsFoldersJob failedSystem.Data.SqlClient.SqlException (0x80131904): The DELETE statement conflicted with the REFERENCE constraint "FK_tblContentProperty_tblContent2". The conflict occurred in database "dbEpiCmsSF", table "dbo.tblContentProperty", column 'ContentLink'.  at System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)  at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)  at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)  at System.Data.SqlClient.SqlCommand.FinishExecuteReader(SqlDataReader ds, RunBehavior runBehavior, String resetOptionsString)  at System.Data.SqlClient.SqlCommand.RunExecuteReaderTds(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, Boolean async, Int32 timeout, Task& task, Boolean asyncWrite, SqlDataReader ds)  at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method, TaskCompletionSource`1 completion, Int32 timeout, Task& task, Boolean asyncWrite)  at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)  at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()  at EPiServer.DataAccess.ContentSaveDB.<>c__DisplayClass4.b__3()  at EPiServer.Data.Providers.SqlDatabaseHandler.<>c__DisplayClass4.b__3()  at EPiServer.Data.Providers.SqlDatabaseHandler.<>c__DisplayClass7`1.b__6()  at EPiServer.Data.Providers.SqlTransientErrorsRetryPolicy.Execute[TResult](Func`1 method)  at EPiServer.Core.DefaultContentRepository.Delete(ContentReference contentLink, Boolean forceDelete, AccessLevel access)  at EPiServer.Util.CleanUnusedAssetsFoldersJob.Execute()  at EPiServer.DataAbstraction.ScheduledJob.<>c__DisplayClass9.b__5()ClientConnectionId:e845f241-2acf-46ae-b5ba-250915bcb3e8Error Number:547,State:0,Class:16>>>>

How do I figure out whats wrong?


Fields with lost of text will be ignored when searching (ignore_above)

$
0
0

My customer reported missing searchhits for spesific words in some given pages on their site. What these pages had in common were their big text size. MainBody had approximately 20kB of text (utf-8). 

I spoke with Episerver support and they think this happens because the limit set for the field mappings (ignore_above) in Elastic, with is the backbone of S & N, is set to 10kB per field in the index. (ignore_above is set til 8kB for demo (demo02.find.episerver.net) indexes). The ignore_above mapping setting tells elastic not to give any hits if the text size is more then the value set. And since the value is 10kB, no hit is returned for this field.

It seams to be correct because when i reduce the size of the text I do get hits for this page. But(!) in another solution also runing EpiServer.Find 13.0.5 this is not an issue, eventhough the ignore_above value is the same for both solutions. So I am not sure this is the issue afterall. Has anybody else experienced this?

How to check the mapping values: https://[findhostname]/[privatekey]/[indexname]/*/_mapping

More on ignore_above from elastic: https://www.elastic.co/guide/en/elasticsearch/reference/current/ignore-above.html 

Empty object in catalog cache

$
0
0

We are experiencing a random problem where Episerver cannot read cache items. Have anyone seen this - and how can this happen?
This is preventing our customer from going live.

The exception:

2020-06-18 15:24:04,511 [28] ERROR Company.Backend.Services.CatalogService: Exception message: Unknown object of type System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 found with cache key EPPageData:8341__CatalogContent. Expected type EPiServer.Core.IContent, EPiServer, Version=11.12.0.0, Culture=neutral, PublicKeyToken=8fe83dea738b45b7, Content reference id: 8341.
System.InvalidOperationException: Unknown object of type System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 found with cache key EPPageData:8341__CatalogContent. Expected type EPiServer.Core.IContent, EPiServer, Version=11.12.0.0, Culture=neutral, PublicKeyToken=8fe83dea738b45b7
at EPiServer.Framework.Cache.ObjectInstanceCacheExtensions.TryGetWithWait[T](IObjectInstanceCache cache, String cacheKey, T& instance)
at EPiServer.Framework.Cache.ObjectInstanceCacheExtensions.TryGet[T](IObjectInstanceCache cache, String cacheKey, ReadStrategy strategy, T& instance)
at EPiServer.Core.Internal.ConteCompanynstanceCache.TryGet(ContentReference contentLink, String language, IContent& instance)
at EPiServer.Core.ContentProvider.LoadContentFromCacheOrRepository(ContentReference contentreference, ILanguageSelector selector)
at EPiServer.Core.Internal.ProviderPipelineImplementation.GetItem(ContentProvider provider, ContentReference contentLink, LoaderOptions loaderOptions)
at EPiServer.Core.Internal.DefaultContentLoader.TryGet[T](ContentReference contentLink, LoaderOptions loaderOptions, T& content)
at EPiServer.Core.Internal.DefaultContentLoader.Get[T](ContentReference contentLink, LoaderOptions loaderOptions)
at Geta.EPi.Extensions.ContentReferenceExtensions.Get[T](ContentReference contentReference)
at Company.Backend.Services.CatalogService.GetProductReferencesFromCategory(CategoryNode categoryNode) in D:\a\1\s\Company.Backend\Services\CatalogService.cs:line 93


The way we can reproduce the error is by visiting products on the site. After some time and clicks - the error occurs. We also have a script using curl to visit a lot of products repeatedly, and most often if takes some time (4+ hours) before the error appears and sometimes even faster.
Once the error has occurred once many other calls fails like

  • _contentRepository.GetDescendents(categoryNode.ContentLink)
  • In UI "Catalog" it wont list anything when clicking on a category that contains content which cannot read the cache. From console this error appears (an exception is thrown in backend as well similar to above): "Unable to load /EPiServer/cms/Stores/contentstructure/?referenceId=1073741825_134624_CatalogContent&query=getchildren&market=ALL&includeProperties=true&allLanguages=true&toplevel=true&currentCategory=1073741825_134624_CatalogContent&simplified=false&sortMode=false&sort(+typeSortIndex)&dojo.preventCache=1592489709272 status: 500"

"Episerver Developer Tool" tell us, that the type cached is of type system.object, but the expected type is IContent.
We have inspected the cache item and the value - after serializing it to json - is: {} . Empty curly brackets, as an empty object.

It is a small catalog with 200 products and about 600 variants. About half exists in three languages.

Versions:
- CMS: 11.12
- Commerce: 13.5

Override price used for discount calculation

$
0
0

Version:

Commerce: 13.22.0

CMS: 11.17.0

I am trying to have custom logic determining which price the promotion engine will use when calculating the discount for a promotion. The site has both anonymous B2C users and logged in B2B users.

I have followed Erik Norbergs suggestion of implementing my own IPriceService. I am able to hit my service when calling GetPrices(MarketId market, DateTime validOn, IEnumerable<CatalogKey> catalogKeys, PriceFilter filter) elsewhere in my solution, so my custom service is registered correctly and intercepted as expected.

However, during _promotionEngine.Run I never hit my custom implementation of GetDefaultPrice which I was under the impression would be the price used by the promotion engine.

Currently we have a huge cluttered piece of logic using inmemoryordergroups which I would like to move away from if possible. These are the requirements that I am trying to implement. 

For B2B:

If a promotion does not have coupon code: The discount should be calculated from the list price. (AllCustomer price) I assume this is the standard functionality.

If a promotion has coupon code: The discount should be calculated from the customer specific price.

I want to keep the rest of the promotion engine logic like redemptions, exclusions etc.

For B2C:

Out of the box functionality which works just fine.

Any input is welcome.

DXP deployment - warmup always times out

$
0
0

We have a website hosted on DXP platform. None of the website is available anonymously - every vistor has to be logged.

Therfore the deployment takes ages, because it waits for timeout, and this things get logged:

Timed out waiting for all instances for webapp **************inte and slot "slot" to become ready!

2020-09-10 09:43:23 ::PROGRESS:: PercentComplete=80
2020-09-10 09:43:23 Information Starting to warm up the targets slots...
2020-09-10 09:43:50 Information Preparing target slot for Go Live (**************/slot) (warming up the slot)
2020-09-10 09:55:11 Information Starting any continuous web job(s) in the slot if they exist (**************/slot)
2020-09-10 09:55:13 Information Sending webrequests to validate the slot (**************/slot)...
2020-09-10 09:55:47 Warning Site with URL http://**************-slot.dxcloud.episerver.net/ responded with error code: 403 (Forbidden)
2020-09-10 09:55:47 ::DATA:: SiteName=**************;URL=http://**************-slot.dxcloud.episerver.net/;ManualValidationLink=http://integration.XYZ.com/?x-ms-routing-name=slot;StatusCode=403;StatusDescription=Forbidden
2020-09-10 09:56:39 Information Warmup finished for all web apps!
2020-09-10 09:56:39 Information Re-enabling autoscaling for the web apps in resource group **************
2020-09-10 09:56:45 ::PROGRESS:: PercentComplete=90

So what I did, I created a simple API controller and action, which allows anonymous access, that loads start page through ContentLoader and direct children and returns list of loaded pages with status code OK 200.

Warmup controller looks like this:

    [AllowAnonymous]
    public class WarmupController : ApiController
    {
        [HttpGet]
        [Route("api/warmup")]
        public IHttpActionResult Index()
        {
            // populate cache by retrieving start page and all direct child pages
            var contentLoader = ServiceLocator.Current.GetInstance<IContentLoader>();
            var pageSegments = new List<string>();
            var startPage = contentLoader.Get<PageData>(ContentReference.StartPage);
            if (startPage == null) return Ok<IEnumerable<string>>(pageSegments);
            pageSegments.Add(startPage.URLSegment);
            // load child pages
            var childPages = contentLoader
                .GetChildren<PageData>(startPage.PageLink).Where(x => x != null)
                .Select(x => x.URLSegment);
            pageSegments.AddRange(childPages);
            return Ok<IEnumerable<string>>(pageSegments);
        }
    }

I have added following initialization entry into transform file:

<!-- Application initialization --><applicationInitialization xdt:Transform="Remove" /><applicationInitialization xdt:Transform="InsertIfMissing"><add initializationPage="/api/warmup" hostName="integration.XYZ.com" xdt:Transform="InsertIfMissing" /></applicationInitialization>

When accessing manually, https://integration.XYZ.com/api/warmup, I can confirm it's allowing anonymous access and it returns what it's supposed to. However from the logs, seems like it tries to hit the root of the page any ways, and it will always Forbidden because anonymous access is not allowed there due to bussiness requirements.

How to solve this issue? I bascially would like to shorten the warmup so that it doesn't take more than a half of the whole deployment time because of the forbidden URL. Ideally I would like the warmup to hit the endpoint I created for that reason.

Disable on-page editing for variants or stop from switching to on-page edit on publishing

$
0
0

When an editor publishes changes while using the All properties view in EPiServer commerce, they're automatically switched to the On-page editing, causing a server error to be displayed.

Setting the default view seems to work just fine for EPiServer CMS but not Commerce. Is there any way I can disable this automatic switching between views on EPiServer commerce?

I tried disabling the on-page edit view, but that causes another issue: when publishing the page, the page never displays that it was published successfully. If I refresh the page, then it does appear that the page is published with the latest changes.

I found the same issue here, but it wasn't solved yet: https://world.episerver.com/forum/developer-forum/Episerver-Commerce/Thread-Container/2019/8/disable-automatic-switch-to-on-page-editing-when-publishing-in-episerver-commerce-/

Viewing all 8020 articles
Browse latest View live