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

Episerver Find: Get search results from page and subpages

$
0
0

I'm creating a search function that should return page specific search results.

I.e. if I have a News page I would like to search only in that page and its children Article pages.

Does a filter for such function exist in the Episerver Find API? 


Content Delivery API - Getting Assets From Content

$
0
0

Hi,

We are trying to use the Content Delivery API and we are struggling to get the assets like Images from the Content. No images or event the references are being returned for the content that we are using.

I first thought that we were doing wrong on how we store the media files but I also cannot get it to work for QuickSilver demo app.

For Example:

Get api/episerver/v2.0/content/C66B75D3-1A34-4699-8378-D7E03D1AC36B?expand=*

The GUID: C66B75D3-1A34-4699-8378-D7E03D1AC36B is the guid of the Polo Knit Dress on the quicksilver app. Now I want to use the first asset for a thumbnail but I want to use the Content Delivery API to get that image url.

I tried to use the Service API and it does return the correct URL for the Product's Assets that I am looking for but the Service API does not allow me to get a collection of products where the Content Delivery API does allow me to fetch a collection of products.

Basically I want to make the following call.

Get api/episerver/v2.0/content/?guids=C66B75D3-1A34-4699-8378-D7E03D1AC36B,A2087836-C0E4-4C4B-88F3-81A2F1F0ED33,5393FDAD-1D68-407C-8B5D-22A55060E183&expand=*

Then I want to use that to show it in a grid with images.

Any help would be appreciated!

What's simplest/best way to script a new empty episerver commerce database on any server?

$
0
0

Hi,

As the subject says, I want to easily create an empty commerce database on a sql server. Is there any sql-files I can run in the packages folder, a powershell command in the packages folder or anything?

Thanks!

IScheduledJobExecutor - only for manual execution?

$
0
0

Hi!

I stumbled upon the interface IScheduledJobExecutor (EPiServer.Scheduler.IScheduledJobExecutor).

Is this interface only for manual execution of scheduled jobs?

Would it be possible to mimic the behavior of scheduled jobs in admin mode using IScheduledJobExecutor? For example creating a ScheduledJob and then scheduling it in an InitializableModule using IScheduledJobExecutor?

Commerce manager page is not loading when hosted in IIS

Storing all configuration sensitive data in Azure key vault and accessing using web app managed identity

$
0
0

Hi, 

I'd like to store sensitive configuration information such as my client's payment provider api key's in an Azure key within the same Azure tenant as my Episerver DXC web applications. 

The simplest way for me to accomplish this past web projects has been to leverage a custom configuration builder on the app settings that fetches them from the key vault.

https://jeffreyfritz.com/2017/11/modern-configuration-for-asp-net-4-7-1-with-configurationbuilders/ 

I would then enable Managed identity on my web app and grant it get access only to the secrets. 

https://azure.microsoft.com/en-us/resources/samples/app-service-msi-keyvault-dotnet/

Is that a scenario that can be enabled in Episerver DXC? 

Episerver.CMS.UI >= 11.20.1 no more focus on existing image on 'select image' popup

$
0
0

Episerver.CMS.UI < 11.20.1

When I have a block/page with an image:

[UIHint(UIHint.Image)]
public virtual ContentReference MobileMenuBackgroundImage { get; set; }

and you click in CMS on an existing image, 
then the 'select image' popup appears.
the existing image is focused, with a yellow background.

Episerver.CMS.UI >= 11.20.1

The existing image is no longer focused. causing complaints by our content managers.
(we have 1500 images, so it will take a while to find it now in the list in the popup.)

I reverted to 11.19.0 and it's ok again

Repeat Blocks in Editor

$
0
0

Hello,

Is there a way to give users the option to add/repeat a block in addition to one that already exists in the editor? For instance if there's a ContentArea block and the user wants to add a new ContentArea block that functions the same, is this possible or will I just have to create a new block all together which functions exactly the same even though it may not be neceesary for every page instance?

Thanks,

Gabe


Can't search using the Content Search API. Does an instance of IContentApiSearchProvider exists, or do I write my own?

$
0
0

I have installed the Content Delivery API in my solution, and everytime I generate a search request in Postman, I get an error saying:

"ExceptionMessage": "An error occurred when trying to create a controller of type 'ContentApiSearchController'. Make sure that the controller has a parameterless public constructor."

And this is due to the fact that no instance of IContentApiSearchProvider has been added to the dependency resolver.

According to the Episerver documentation, the Content Search API makes use of Episerver Find to query content, and I have Episerver Find installed in my solution. Is there anything, that I might have missed here?

DXC FindSearchProvider - 500 error on Search Index page

$
0
0

Commerce 12.11.0

FindSearchProvider 10.0.2

I had configured FindSearchProvider and until recently this was working in the DXC environments which had "episerver:FindServiceUrl" and "episerver:FindDefaultIndex" in appSettings.

Recently the Catalog search functionality in Commerce Manager stopped working. When navigating to the Administration -> System Settings -> Search Index page on DXC, I get the following error :

I'm puzzled by the error as to why the Indexer is expecting a "connectionStringName" given I'm using the FindSearchProvider.

This is working in my local dev environment with my Find developer index. 

Here's my Mediachase.Search configuration, which was working previously when deployed to DXC.

I've tried various resolutions on the DXC environment i.e. restarting the App service, using my developer index in the appSettings, however without success.

Appreciate any suggestions to resolve this.

Thanks

EPiserver Commerce Deleting Product in Code

$
0
0

Hi

Could someone please provide us the code for deleting products in code.

We need to create a scheduled task which picks some expired products and deletes them from the catalogue.

Thanks

Kind Regards

Sandeep

Get all categories from search result

$
0
0

Hi,

We are changing our customers search from SiteSeeker (implemented before I started) to Episerver Find, but we want the search page to look the same.
The current search page have a list of all the categories from the current search result, to be able to filter if the user wants to.
In SiteSeeker we seem to get the categories by getting them from result.Facets.
With the same pages and the same search word, in Episerver Find, the result.Facets is null.
Is there some way to get a list of all the categories from the current search result (not all the categories on the site) in Episerver Find?

Edit: We are using UnifiedSearch.


Best Regards
Niklas Grushult

Best bets failed to load resource

$
0
0

Hi.

When I try to use best bet I don't see the list of the products for the chosen site. I got an error in the console.

Error:

message: "Unable to load /cowabui/Find/api/bestbets/?tags=siteid%3Ac032e856-9662-419a-9104-00a51b2f2ca7%2Clanguage%3Asv&size=25&dojo.preventCache=1561986586694 status: 500"

Could you help me with this?

Upgrade Episerver 7.5 up to the latest version of 11

$
0
0

Hi,

We have a 7.5 version of Episerver together with Commerce and we would like to upgrade it to the latest version of 11.

How easy is this and is it possible? We have custermized commerce quite a bit to fit our client requirements.

We have tried a number of times to do it ourselves and even asked an Episerver support person to do it but there is so much depricated code neither of us were able to do it.

What we would like to know is it worth attempting again?

Thanks

Jon

Discount is not getting applied to price properties

$
0
0

Hi,

In a Commerce 11.8.5 project we have a custom FixedPrice promotion.

After orderGRoup.ApplyDiscounts() I can see the applied promo in orderGroup.Promotions, but lineItem.TryGetDiscountValue(d => d.EntryAmount) returns zero.

In short, the processor checks two separate contentRef lists and applies a reward for each pair from the two groups. Problem is that I can see the promotion info on the orderGroup but TryGetDiscountValue always return 0 so the discount isn't reflected in the totals.

Any ideas? I haven't been able to find anything missing regarding price entries, AffectedEntries, redemption descriptions, reward description or orderForm.Promotions.

// for each pair from the two group
                    var entry1 = new PriceEntry(lineItem1.PlacedPrice, 1, lineItem1);
                    var entry2 = new PriceEntry(lineItem2.PlacedPrice, 1, lineItem2);
                    entry1.Promotion = promotionData;
                    entry2.Promotion = promotionData;
                    var priceEntries = new List<PriceEntry>() { entry1, entry2 };
                    var affected = new AffectedEntries(priceEntries);
                    redemptions.Add(CreateRedemptionDescription(affected));
// After going through all pairs, return reward description
return new RewardDescription(fulfillmentStatus, redemptions, promotionData, fixedPrice * fulfilledQuantity, decimal.Zero, RewardType.FixedPrice, "Combo price");

Updating content in content area via DOJO

$
0
0

How to refresh items in content area on mouse click?

I have a scenario where I change the content area items on server side and when the editor click on the CA (ie. editor want to D&D items) I need to refresh the CA content tree.

Did someone tried something similar?

Issues with Html.RenderAction after upgrade to 7.19

$
0
0

Hi,

We've just upgraded an EPiServer CMS 7 site to the latest version in the '7' branch (7.19).
We're experiencing issues with 'RenderAction' calls in our views which call into actions from ordinary 'Controllers'.
Such a call looks like 

@{Html.RenderAction("Index", "ShareMessage");}

What happens is that the 'Index' action on the current controller/context is called.
This results in a loop and eventually in a StackOverflowException.
It worked prior to the update.

I've tried a lot of possible routing configurations but with no success.

Any ideas are welcome.
Thanks!

Regards,

Robert.

Removing extra DIVs from EPiServer Content Areas

$
0
0

Hello,

This article(https://www.dcaric.com/blog/removing-extra-divs-from-episerver-content-areas) explains how to remove a div when using the helper Html.PropertyFor.

In the article it exmplains you cannot disable those divs by setting childrencustomtagname to an empty string because childrencustomtagname fallbacks to div and then provides a class which apparently handles the removal of the div. I find this to be an over the top way of handling something that should be really simple. Also very little is explained with the method they have provided. If I don't want a surrounding div for a element, shouldn't there be a straightforward solution for that?

Would there happen to be an alternative for disabling div elements for content area items in view mode, not just to replace them with another element?

Thanks.

Improved content events for Episerver CMS

$
0
0
  1. Remove the need to cast event args to get relevant information on content events. For instance on the move event you need to cast the ContentEventArg to MoveContentEventArgs to get the descendents
  2. Create a new event for if the content is thrown into wastebasket. This is special case of the move event today which is not very obvious and leads to mistakes.
  3. Make it more clear what content is actually affected. For instance the delete event gives you the content link property but that doesn't point to the content that is actually deleted but to wastebasket. It is possible to get the affected content that was deleted if you first cast the event to the DeleteContentEventArgs and use the DeletedDescendents property but that is pretty far from obvious.
  4. Create a new event if a content is affected by a change to url on a parent. This is tricky to solve today but easy to create a new event for. 
  5. Make ContentSecuritySaved event part of the IContentEvents interface. This is now pretty well hidden in the IContentSecurityRepository interface. But it is a very relevant content event that you will likely want to handle together with the other events. 
  6. Create a combined new event that handles if content has been changed in any way including url for parent, access rights, published, moved, thrown into wastebasket. That will simplify creating custom logic like indexing content a lot. 

How to remove property from variant when deleted from code?

$
0
0

How to remove property from variant when deleted from code? I don't want to just unlink but I want to remove from tables like ecfVersionProperty and CatalogContentproperty. I am not sure if a query to delete form both tables does not break anything and works properly. I am using Commerce of version 13.2.

Viewing all 6894 articles
Browse latest View live