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

Lucene Search is returning zero result

$
0
0

Hi,

We are facing some issue in below of our code, please help us asap.

As we are using below code in our application but its returning zero result.

 

Please help urgently asap.

 

CatalogEntrySearchCriteria criteria = new CatalogEntrySearchCriteria();

            criteria.SearchPhrase = "kitchen";

            SearchManager manager = new SearchManager(AppContext.Current.ApplicationName);

            SearchResults results = manager.Search(criteria);

Thanks

Om


Retrieving assocations by target

$
0
0

If I have an association between product A -> product B, it seems I can only retrieve this association by source. If I ask B for associations (through IAssociationsRepository), it doesn't appear to have any. The UI also reflects this: B has no "Related entries".

The scenario is that I want to show cross links on both product pages... "B is accessory to A" and not only "A has accessory B".

Currently I have to resort to some fugly SQL to make it happen, but I'd much rather have support for this in the API.

Relate category to multiple catalogs

$
0
0

We have a need for relating categories with multiple catalogs.

so we have:

Catalog1 - Code: 1

Catalog2 - Code: 2

Category3 - Code: 3

Now I want to be able to relate Category3 to both Catalog1 and Catalog2. Categories can be related to other categories just fine across catalogs, but it is the categories that exist just below the catalog that doesn't seem to be possible to relate between catalogs. Code cannot be changed, as data is coming from a PIM system.

End goal would be:

Catalog1

 - Category3

Catalog2

- Category3

Is this possible through some api I missed somewhere? IRelationsRepository cannot handle the parent of a relation being a content reference to a catalog.

Content Delivery Api - APIs return 404 in browser, but works in Postman

$
0
0

Hello,

I'm testing out Content Delivery API by running it locally on my machine. In order to acess the endpoints I've set up, I use http://localhost:port/api/episerver/v2.0/content{contentId}.

When I issue get requests on this endpoint through Postman, I'm sucessfully retrieve the data I'm expecting. 

However, when I use the browser, either through a front-end application or directly go to the endpoint url in the browser, I recieve this response: {"error":{"code":"NotFound","message":"Content was not found"}}

I have given read access to all the content in EPiServer Admin Portal to the contentapiread user. 

Below is the output code for the working Postman request.

GET /api/episerver/v2.0/content/1 HTTP/1.1
Host: localhost:62478
User-Agent: PostmanRuntime/7.13.0
Accept: */*
Cache-Control: no-cache
Postman-Token: e6e8d194-ae40-4114-948a-589d69d2e45a,d8f777b8-29f9-4eba-abbb-97c849bd2059
Host: localhost:62478
accept-encoding: gzip, deflate
Connection: keep-alive
cache-control: no-cache

If you need further information, please ask and I will provide.

Has anyone experienced this before?

Onscreen Editor "Help" sections

$
0
0

I've had a few instance where I want to highlight something to the Editor in the "All properties" view, I know there is the 'on mouse over' tool tips that I do use, but I want something obvious and in their face as they are editting the page. Does anyone have any suggests?

Examples where i need it...

1.Editor needs to input a list of words, and I'd like to highlight what the "seperator character" is that I'll be uising to turn the list of text into an array

2. I want something like a 'placeholder' text that I'll later replace with data i.e. #status# becomes "open" or "closed" etc, So I'd like to list those placeholder above the field they are editting

In the examples above, the tooltip option is easy to miss and not obvious enough.

any suggestions?

Problem with on page editing and floats

$
0
0

I have a scenario where I had to resort to floats to accomplish a layout I need for my page. But, it makes the on page editing experience a problem. I have a form floated to the right of the page, and content that wraps around to the left. Both are editable properties that have blue boxes around them, but the edit box for the inline part shows over the floated section. It makes it so I cannot get to the floated section at all, which in itself an editble section. Is there something I can do to help the on page editing feature to honor the float so it does not cover the floated content? Are they any tweaks I can do to work around it?

I expect someone to suggest not to use floats, but after days of struggling to make this layout collapse correctly on mobile, this was where we ended up. None of the existing grid or flexbox layouts work for this scenario. This is the last hiccup in a long line of challenges we had to go thru to get this to work. Any help would be appreciated.

Synonyms - need longer than 3 word phrases

$
0
0

We have several synonyms in our catalog that need longer than 3-word phrases. We also need some additional characters to support units of measure and the way our visitors search for products on our site. 

 Here are a few longer synonym examples:

  • Maintenance Repair Notification Door Hang Tag
  • Brothers 2.0-ton 14-seer r410a condenser
  • 13-SEER CONDENSING UNIT
  • coil cleaner with acid
  • Square D 100 Amp Double Pole Breaker - QO Series

Units of measure/character examples:

  • wet/dry vacuum
  • a/c filter roll
  • 2' X 4' CLEAR
  • 44" ceiling fan - i realize this one is hard to solve for "inches" when talking search characters

Hide Episerver Visitor Group Criteria

$
0
0

Hi,
I am currently on Episerver 11.6 and am looking to start using the personalization in Episerver.

Creating custom Criteria classes is very simple. I've created several of my own, but would like to hide some of the built in ones. Is it possible to hide specific built in personalization criterias?

-Paul


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

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?

Creating best best; greyed out Target content local pages causing javascript error

$
0
0

We recently introduced EPiServer Find into our project and all is working fine except adding best bets specifying local pages.

When opening the dialog, everything is greyed out and when I hover over the pages I see the name, Id and the type. Except on 'type' it says undefined.
After clicking on a page, the browser captures an error in the console.

The store was queried with a [string] but the entity id is a [undefined]

I am currently running (planning to upgrade soon):

EPiServer 7.19.2.0
EPiServer Find 8.10.1.2073

Any ideas?

LanguageRouting Question

$
0
0

Hello,

We have a custom data type that we index in FIND in multiple languages.

While indexing we populate field LanguageRouting successfully and when landing on search page with a search term entered, it retrieves the correct results related to current user culture.

However, if user visits search page directly without entering any search term, all items in FIND index are retrieved which lead to duplicate items displayed in search page.

Here is how we build the query:

var query = SearchClient.Instance.Search<CustomDataType>(selectedLanguage)

Any idea how to limit results to current user culture if no search terms were entered?

Thanks!

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 :)

Can we limit the number of options user can select in checkboxes created by SelectMany attribute in edit mode?

Issue with CMS Import over witting values in one language over another language

$
0
0

Hi

We are doing some consilidation of 2 different installations where we now import content from one site to another.

  1. First we import all pagetypes with "en" as the only lang to import, just so we can preview the outcome before importing all langs
  2. Second we want to import "sv":
    1. We tick the "Update existing content items with matching ID" box
    2. We choose same location
    3. We select "sv"

BUT the strange thing now is that "sv" is indeed added with correct value BUT "en" is also updated with the values from the swedish translation:

Does anyone have any clue on how this behaviour is caused?

EPI CMS version 11.3.1


How to Embed Power BI reports into EPI Server CMS

$
0
0

Hi,

 Can somehelp me in "How can I  provide a platform in EPI server cms itself to showcase my PowerBI results".

Thanks in advance.

Rebuild Episerver Find indexes site wise

$
0
0

Hi All,

Can we rebuild the Episerver Find indexes site wise because if we rebuild the indexes using "EPiServer Find Content Indexing Job" schedule job then it will rebuild the indexes for all the sites those are exists in our CMS? We have multiple sites in our solution and we don't want to rebuild the other site indexes while working on other sites.

Please let me know if there is any out-of-box way to do this or we need to create our schedule job for this.

Thanks

Ravindra

Page dosen't get Indexed When uses of short-cut feature

$
0
0
Hi 
I have been struggling with a issue that is connected to search functionality. When we use Episerver short-cut feature then page doesn’t  get indexed and it excluded in search. 
Thanks 
Avinash 

Null reference error when running the EPiServer Find Content Indexing Job scheduled job

$
0
0

Hello

When I run the EPiServer Find Content Indexing Job scheduled job I get the following error for all content: 
2019-05-07 09:30:02,195 [10] ERROR EPiServer.Find.Cms.ContentIndexer: MACHINE-NAME: An exception occurred while indexing content [Link 52] [GUID a2f77167-b085-4f15-b11a-72157c28bf3a] [Type FrontPage] [Name Start]: Object reference not set to an instance of an object. 
System.NullReferenceException: Object reference not set to an instance of an object. 
at EPiServer.DataFactory.GetAncestors(ContentReference contentLink) 
at EPiServer.Find.Cms.ContentExtensions.Ancestors(IContent content) 
at EPiServer.Find.DelegateValueProvider`2.GetValue(Object target) 
at Newtonsoft.Json.Serialization.JsonSerializerInternalWriter.CalculatePropertyValues(JsonWriter writer, Object value, JsonContainerContract contract, JsonProperty member, JsonProperty property, JsonContract& memberContract, Object& memberValue) 
at Newtonsoft.Json.Serialization.JsonSerializerInternalWriter.SerializeObject(JsonWriter writer, Object value, JsonObjectContract contract, JsonProperty member, JsonContainerContract collectionContract, JsonProperty containerProperty) 
at Newtonsoft.Json.Serialization.JsonSerializerInternalWriter.Serialize(JsonWriter jsonWriter, Object value, Type objectType) 
at EPiServer.Find.Api.BulkActionConverter.WriteJson(JsonWriter writer, Object value, JsonSerializer serializer) 
at Newtonsoft.Json.Serialization.JsonSerializerInternalWriter.SerializeConvertable(JsonWriter writer, JsonConverter converter, Object value, JsonContract contract, JsonContainerContract collectionContract, JsonProperty containerProperty) 
at Newtonsoft.Json.Serialization.JsonSerializerInternalWriter.Serialize(JsonWriter jsonWriter, Object value, Type objectType) 
at Newtonsoft.Json.JsonSerializer.SerializeInternal(JsonWriter jsonWriter, Object value, Type objectType) 
at EPiServer.Find.Json.Serializer.SerializeToTextWriter(JsonSerializer serializer, Object value, TextWriter textWriter) 
at EPiServer.Find.Json.Serializer.SerializeObjectsToJsonRequest(JsonSerializer serializer, IJsonRequest jsonRequest, IEnumerable values) 
at EPiServer.Find.Api.BulkCommand.Execute(List`1& serializationFailures) 
at EPiServer.Find.Api.BulkCommand.Execute() 
at EPiServer.Find.Cms.ContentIndexer.IndexWithRetry(IContent[] contents, Int32 maxRetries, Boolean deleteLanguageRoutingDuplicatesOnIndex) 
at EPiServer.Find.Cms.ContentIndexer.Index(IEnumerable`1 content, IndexOptions options) 
at EPiServer.Find.Cms.ContentIndexer.IndexBatch(IEnumerable`1 content, Action`1 statusAction, Int32& numberOfContentErrors, Int32& indexingCount, Boolean deleteLanguageRoutingDuplicatesOnIndex)

Show Form Elements after for is submitted

$
0
0

I would like to show the Form Element after the Form is submitted. This would be similar to the message that is displayed when the user has already submitted the form. I currently had to add a "Refresh Poll" link to show the form elements again. I should also note that I cannot add a redirect page (Display page after submission field) because this Form block is on multiple pages and I don't want to redirect to a common page. I want it to stay on the current page.

This is the curent state one a form is submitted.

Example of what I'm looking for. The Form Elements would show.

Current state example if form has already been submitted.

Viewing all 6894 articles
Browse latest View live