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

How to limit number of elements in ILIST with only minimum elements value?

$
0
0

Want limit number of elements in ILIST with only minimum elements value?

[ListItems(2,1000)]
[PropertyListCheckbox]
public virtual IList<QuestionnaireAnswerBlock> Answers { get; set; }

ListItems Attribute can take minimum and maximum values both.

I only want to give minimum value?

Please help


How to add a tooltip to a property added in CMS?

$
0
0

I need some description to be displayed when I hover on a property

public virtual XhtmlString Title { get; set; }

How can I do it?

Local block not included in code makes all other properties blank in UI

$
0
0

On our webpage we have a site settings page with lots of settings for the site. I have in a new git branch created a new local block with some properties. When going back to another branch that removes this block from code makes it appear on the first tab as usual but all other properties on this page is blank in the gui. Querying the properties from code returns the values but in edit mode everything else is blank. The removed blocks properties has it's values though. Never seen this before and haven't yet tried to reproduce it in an Alloy site or something but switching back to the branch where the local block is included again resolves the issue

How to check if there are elements in IList?

$
0
0

I want to put a validation on IList to check if there are elements added in the ILIst.

If no elements present, I wan to show a validation message saying "Please add values in the list".

public virtual IList<QuestionnaireAnswerBlock> Answers { get; set; }

Please help.

Block not visible on Internet Explorer

$
0
0

I have created and published a block type with all its properties and values.

Its getting displayed and working properly on Google chrome

But its not getting displayed in Internet Explorer.

What could be the reason for this?

Find - Error when clicking search result but result loads correctly

$
0
0

Hi,

We have a search page which uses Find and I am seeing an error when the user clicks a search result but the actual page the result is for loads as expected. 

The search is UnifiedSearch and we loop through the UnifiedResults in the view and use document.Url to show the link to the result. When you hover over the result there are additional paramters appended to the result which I believe are there as we have statistics enabled.

When you click on a result it seems to trigger another search, I assume as a result of the paramters? It's this second search that triggers an error behind the scenes however the page for the search result loads as expected and does not have the additional parameters appended to the Url.

The error that is raised is:

"The extension method 'For' must be called before the query has been otherwise set"

and the stack trace for this is:

System.InvalidOperationException: The extension method 'For' must be called before the query has been otherwise set
at EPiServer.Find.TypeSearchExtensions.<>c__DisplayClass1_0`1.<For>b__0(ISearchContext context)
at EPiServer.Find.Search`2.ApplyActions(ISearchContext searchContext)
at EPiServer.Find.Search`2.ApplyActions(ISearchContext searchContext)
at EPiServer.Find.Search`2.ApplyActions(ISearchContext searchContext)
at EPiServer.Find.Search`2.ApplyActions(ISearchContext searchContext)
at EPiServer.Find.Search`2.ApplyActions(ISearchContext searchContext)
at EPiServer.Find.Search`2.ApplyActions(ISearchContext searchContext)
at EPiServer.Find.Search`2.ApplyActions(ISearchContext searchContext)
at EPiServer.Find.Search`2.ApplyActions(ISearchContext searchContext)
at EPiServer.Find.Search`2.ApplyActions(ISearchContext searchContext)
at EPiServer.Find.Search`2.ApplyActions(ISearchContext searchContext)
at EPiServer.Find.Search`2.ApplyActions(ISearchContext searchContext)
at EPiServer.Find.Search`2.ApplyActions(ISearchContext searchContext)
at EPiServer.Find.Search`2.ApplyActions(ISearchContext searchContext)
at EPiServer.Find.Search`2.ApplyActions(ISearchContext searchContext)
at EPiServer.Find.SearchExtensions.GetResult(ITypeSearch`1 search, HitSpecification hitSpecification, Boolean filterForPublicSearch)

Has anyone encountered this before and know how to prevent an additional search or the error happening?

Thanks,

Mark

A modal popup which displays correctly in Google chrome but not visible in Internet Explorer

$
0
0

I'm actually trying to open a modal popup which displays correctly in Google chrome but not visible in Internet Explorer

Any idea why its not working?

Issues When Cancelling Scheduled Publish

$
0
0

Episerver Cms core 11.13.2

Steps to reproduce.

1) create a page and leave a page property empty (in our instance it's a simple string)

2) schedule for publishing

2) update code to make the empty page property required

3) publish code

4) try to remove the scheduled page

Since the page property is now required you cannot remove the scheduled page because it's empty?

Sounds like a bug to me.

What version of Episerver is this fixed?


Customised Validation Message on ListItems Attribute

$
0
0

I'm using ListItems attribute on IList which shows a validation message. 'The field Answers is invalid'

I want to show a customised message. How to do it?

[ListItems(2,int.MaxValue)]
public virtual IList<QuestionnaireAnswerBlock> Answers { get; set; }

Episerver local environment setup

$
0
0

Hi Team,

I am trying to connect Episerver CMS in localhost (IISExpress) using local administrator account but getting error: 

The trust relationship between the primary domain and the trusted domain failed.

I am able to load the actual web application (localhost:port/Mysite) but when I try to log in (localhost:port/Mysite/episerver) getting the above-mentioned error. 

Can someone please help me to troubleshoot this issue as this error stopping my deliverables.

Is there any way or hack, something I can skip the Episerver authentication layer so that I can access CMS directly in my local.

Thank you in advance.

Epi Commerce Media Hosting in S3

$
0
0

Greetings!

We are getting ready to build our ecommerce site using episerver. We have a few questions related to media assets. We plan to use our existing CRM infrastructure as a PIM for the site. We plan to have a different interface to create/edit   products/variants in the PIM along with uplaoding the  product/variant related media files to our S3 Repository. We will be using some kind of scheduled job to import all this data to Epi Commerce. Please note: We host Episerver locally on our own web servers. We do not host our cms assets on S3 and we do not want to move them to S3 at this time. ( just the comemrce media would be on S3) Do we have to create copies of media from S3 back into the Episerver when we import the products to use existing Media Assets infrastructure that comes out of the box from Epi? We want to make use of the out of the box Comemrce Api's as much as possible. Does anybody see any issues with the above. We are still in the intitial stages and would like to know about any potential issues.

Thanks

Mohan B

Episerver local environment setup

$
0
0

Hi Team,

I am trying to connect Episerver CMS in localhost (IISExpress) using local administrator account but getting error: 

The trust relationship between the primary domain and the trusted domain failed.

I am able to load the actual web application (localhost:port/Mysite) but when I try to log in (localhost:port/Mysite/episerver) getting the above-mentioned error. 

Can someone please help me to troubleshoot this issue as this error stopping my deliverables.

Is there any way or hack, something I can skip the Episerver authentication layer so that I can access CMS directly in my local.

Thank you in advance.

Ignore Base ContentAPI Model properties from JSON response

$
0
0

I had this posted in different forum earlier but realized this would get more attention here. I am trying to find a way to ignore base properties of Content API Model .

Episerver Content Delivery API - 500 Internal server error

$
0
0

Hello,

I tried to add follwoing nuget packges in an existing project (Dev environment).

1) EPiServer.ContentDeliveryApi 

2) EPiServer.ContentDeliveryApi.Search

I am receving 500 Internal Server error when I try to run the site.

Can anyone please help me out here?

Fully qualified URL + EpiServer Content Delivery API

$
0
0

Hello,

I have this issue which I can't figure out what it is:

Based on EpiServer articles I am using a CustomContentModelMapper and overriding below method to get fully qualified urls in Content api resonse.

protected override string ResolveUrl(ContentReference contentLink, string language)
{
string resolvedUrl;
if (_urlResolver == null)
{
resolvedUrl = _urlResolverService.ResolveUrl(contentLink, language);
}
else
{
resolvedUrl = _urlResolver.GetUrl(contentLink, language, new UrlResolverArguments()
{
ContextMode = ContextMode.Default,
ForceCanonical = true
});
}
return string.IsNullOrEmpty(resolvedUrl) ? null : UriSupport.AbsoluteUrlBySettings(resolvedUrl);
}

However for some reason, in my integration enviroment, I see some urls (like image url etc) still coming as reference url and not fully qualified. Pre production and Production environments are working fine as expected.

I am not sure what is it that is causing issue in integration environment. Any thoughts what I could check. Also is there a way to ignore the port number from the fully qualified url.


Commerce Manager: CSV Import Catalog: Import progress window provides no progress

$
0
0

Reproduction Steps
1. Log into Commerce Manager.
2. Go to Catalog Manager > Catalogs > Import/Export > CSV Import Catalog.
3. Import any kind of file e.g. products.
4. You are presented with a window showing the 'progress' of the operation.
5. The 'progress' only refreshes (at 100%) when the whole operation is complete.

This can be a problem for our users, especially when importing large files. They might, for example, update all the prices in their catalogue and there can be many price groups and customer-specific prices per product, leading to price file containing many thousands of records.

These files can take many minutes to process. This is ok, but there is no indication of progress. Some users have reported leaving the process running for hours with no indication of whether any action is taking place. This leads them to log out, log back in again and restart the process.

It looks like the window is specifically designed to indicate the progress of the operation but this is not currently functional.

HierarchicalCatalogPartialRouter and query string

$
0
0

We are using HierarchicalCatalogPartialRouter for our products and it's working fine. However we would like the query string to be included in the redirect.

Example:

Url: https://domain/product?utm_source=email

Currently redirecting to: https://domain/category/product

Should redirect to https://domain/category/product?utm_source=email 

Is there some kind of setting for this, or do we have to create our own routing?

Indexing: Products and Categories dependency

$
0
0

In this scenario, Category has an indexed property of count of Products that belongs to the category (or its ancestor). However, when Indexing is scheduled, it's indexing Categories first, so Products count is always 0.

How to resolve that, i.e. how to index Products and then Categories?

------

The code snippets are as following--

Indexing in ConfigurableModule:

client.Conventions.ForInstancesOf<Category>().IncludeField(x => x.GetCountOfProducts());

GetCountOfProducts:

public static int GetCountOfProducts(this Category category)
{
  return Find.Service.Search<Product>().Filter(x => x.Ancestors().Match(category.ContentLink.ToString())).Count();
}

Commerce Manager: CSV Import Catalog: Import progress window provides no progress

$
0
0

Reproduction Steps
1. Log into Commerce Manager.
2. Go to Catalog Manager > Catalogs > Import/Export > CSV Import Catalog.
3. Import any kind of file e.g. products.
4. You are presented with a window showing the 'progress' of the operation.
5. The 'progress' only refreshes (at 100%) when the whole operation is complete.

This can be a problem for our users, especially when importing large files. They might, for example, update all the prices in their catalogue and there can be many price groups and customer-specific prices per product, leading to price file containing many thousands of records.

These files can take many minutes to process. This is ok, but there is no indication of progress. Some users have reported leaving the process running for hours with no indication of whether any action is taking place. This leads them to log out, log back in again and restart the process.

It looks like the window is specifically designed to indicate the progress of the operation but this is not currently functional.

Marketing/Promotion sales report

$
0
0

Episerver Commerce should have a report for a sales campaign or promotion. For example, view all orders that have used a specific promotion code.
This would provide useful information for commerce users.

Currently, I can run a SQL query to get a brief report like this:

SELECT TOP(100) pinfo.CouponCode, pinfo.OrderFormId, po.TrackingNumber, po.Created, SUM(pentry.SavedAmount) AS TotalSavedAmount, 
    FORMAT(form.ShippingTotal, 'N2') AS ShippingTotal, FORMAT(form.ShippingTotal, 'N2') AS Total
FROM [PromotionInformation] pinfo
INNER JOIN [PromotionInformationEntry] pentry ON pinfo.PromotionInformationId = pentry.PromotionInformationId
INNER JOIN [OrderForm] as form ON pinfo.OrderFormId = form.OrderFormId
INNER JOIN [OrderGroup_PurchaseOrder] as po ON form.OrderGroupId = po.ObjectId
WHERE pinfo.CouponCode = 'PROMO_CODE'
GROUP BY pinfo.CouponCode, pinfo.OrderFormId, po.TrackingNumber, po.Created,
    form.ShippingTotal, form.ShippingTotal
ORDER BY po.Created DESC
Viewing all 6894 articles
Browse latest View live