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

Cant use best bet with dashe

$
0
0

Hi,

We can no longer use best bets with dashe in the name, like "e-mail". Is this by design or is it a bug?

/Jesper

 


Several editable attributes on html element

$
0
0

I have an html element (input) that contains several html attributes (placeholder and two data- attributes to show info if element is empty or that input is not valid). I need to make these attributes editable, but I only found Html.EditAttributes helper, which allows me to edit ONE attribute from the list. Is there a way to make sereval attributes editable simultaneously?

Azure DB Performance recommendations - Jurisdiction table indexes

$
0
0

Based on the Azure portal database performance recommendation creating an index on Jurisdiction and JurisdictionRelation tables will have a high impact on database performance:

EEpiserver support does not recommend to apply the indexes manually, because if they will be included in the future releases, then we might run into problems during the deployment.

Any plans to introduce the above-recommended database indexes?

Server cannot set status after HTTP headers have been sent.

$
0
0

Hi all,

our log is constatly full of "Server cannot set status after HTTP headers have been sent." HttpException exception. I know there is already similar to that topics, but they're old, from 2014 year and I still couldn't find explanation to that issue.

Help appreciated, thank you!

Episerver CMS Tag User In Comment

$
0
0

Hi,

I'm wondering if this might be a bug. 

Trying to tag a user in the comments section and see if he gets notified. @username works fine in the comments section, I can see a suggestion for him. But he does'nt get at notification.

In tblNotificationMessage Sender is "AD\username" and Recipient is only "AD". So I think this is the bug. That recipeint has been chopped on '\' and only takes the first part of the whole name. 

I tried out the same scenario in alloy tech. I created two users in the group "WebAdmins", one with the name "testaccount" and another with "TEST\person". I could recive a notification to "testaccount", but not "TEST\person". 

Best regards, Christoffer

Unpublished pages being Indexed

$
0
0

Hi,

How do you prevent pages from being Indexed that haven’t been published?

I have created a page and it instantly Indexes in FIND even though the page isn’t published – this is EPiServer 7.5.

 

I have added this to my Application_Start

 

            ContentIndexer.Instance.Conventions.ForInstancesOf<PageData>().ShouldIndex(x => x.Status == VersionStatus.Published);

            ContentIndexer.Instance.Invisible = false;

 

And it still publishes the page.

 

Any ideas?

 

Jon

Rearrange additional categories on the product level.

$
0
0

Does anyone know how I can rearrange additional categories at the product level?

Screenshot: https://prnt.sc/ptryf8

OrderValidationService does not remove lineitem? [12.16]

$
0
0

Hi!

I have a strange, or maybe not, behaviour in the OrderValidationService.

For a variant I set in stock to 1, tracked inventory to true, backorder to 0, preorder to 0.

I then try to add 2 in my cart. Validation kicks in and lowers my quantity to 1. Perfect!

I then update then inventory item in stock to 0. Meaning there are no items available and it cannot be backordered or preordered.
I then add 1 to the cart and the validation does not remove it? Shouldn't the item be removed?

By the way, what is the differce between UpdateInventoryOrRemoveLineItem and AdjustInventoryOrRemoveLineItems?

Thanks!

/Kristoffer

UPDATE

AdjustInventoryOrRemoveLineItems removes the item from the cart but I doesn't reduce to 1 if I have 1 in stock and adds 2. I get validation error like AdjustedQuantityByAvailableQuantity, but quantity is still 2 in the cart. I'm getting confused. Should you run both?


Export Bilingual xliff File

$
0
0

I am trying to update our translated web pages as our English website has some updates. These updates are minor (i.e. adding a sentence or deleting some words), so obviously, it won't make sense to send out the whole page to the translator again. The goal is to sift out the content that has been changed in the CMS and send that to our translators. What I need for the sifting process is a bilingual xliff that contains "not yet updated English content" which corresponds to the "translated content" in the CMS. This way, I can compare the bilingual xliff to the updated English xliff and get the content that has changed. At the same time, leveraging the old translation we have done before.

The existing features in Ektron do not support my need, and I believe this is a very common issue every localization specialist will run into. 

The bilingual xliff will make the translated content more scalable and more convenient for people to manage their translated website. 

Get Content Type from Search Result

$
0
0

Episerver version 11.12

Using FIND search

I have a requirement where the client wants to display a different icon depending on the "type" of item that gets returned in the search results.  I have a couple of unique page types as well as different media types (PDF, word, excel, etc.)  In the searchResultObject, I see a content GUID, but don't know how to find the content type using only that.  Can someone help with a way to do this?

Forms Hidden Visitor Profiling Geo Country always empty

$
0
0

I'm using EPiServer.Forms v4.26.0. 

There's a form setup with a Hidden Visitor Profiling field, set to use Geo - Country Code. But if you go looking at form submissions, this is always blank. Trying any of the other hidden visitor profile options also ends up with blank results. I've tested it repeatedly and ensured that Chrome setting for 'Do not track' is OFF but can not figure out why this isn't working. 

I've tried both setting this to use the Cloudflare header (<addkey="episerver:ClientLocationHeader"value="CF-IPCountry" />), and then tried using the EPiServer.Personalization.MaxMindGeolocation package and downloaded database but neither works when deployed to our DXC test environment (or locally). I followed the config steps from the developer guide. 

Is there anything else that needs to be done to set this up? I've hit a wall and cannot get this working at all. Does anyone have experience with this? 

login failed with new empty project.

$
0
0

If you create a new empty project in visual studio, and hit "localhost:xxxx" you get "Server error in / Application" which is expected as you have not created a page yet. The online guide then tells you to hit: localhost:xxxx/episerver and login with your "Windows credentials".  The web page shows "digital experience cloud" and asks for name and password. There is no forgot password option. I have tried my windows login which I use to login to the machine and it doestwork. How do I login?

for "name" i have tried "internal\first.last", "first.last", "first.last@myorg.com" etc.  my actual windows login is just "first.last".

The response is always "Login failed"

I also notice that shortly after, it says "iisexpress.exe" has exited with code -1 (see below).

This is a brand new re-imaged machine which I instlaled the lastest VS code, episerver plugin, iis and ms sql server last week.  Nothing else has been done to the machine - no other tools or config.  Its windows 10 pro (with latest updates).

'iisexpress.exe' (CLR v4.0.30319: /LM/W3SVC/2/ROOT-1-132176722790494652): Loaded 'Anonymously Hosted DynamicMethods Assembly'.
'iisexpress.exe' (CLR v4.0.30319: /LM/W3SVC/2/ROOT-1-132176722790494652): Loaded 'C:\Windows\Microsoft.Net\assembly\GAC_32\System.Transactions\v4.0_4.0.0.0__b77a5c561934e089\System.Transactions.dll'.
'iisexpress.exe' (CLR v4.0.30319: /LM/W3SVC/2/ROOT-1-132176722790494652): Loaded 'C:\Windows\Microsoft.Net\assembly\GAC_MSIL\SMDiagnostics\v4.0_4.0.0.0__b77a5c561934e089\SMDiagnostics.dll'.
'iisexpress.exe' (CLR v4.0.30319: /LM/W3SVC/2/ROOT-1-132176722790494652): Loaded 'C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.ServiceModel.Internals\v4.0_4.0.0.0__31bf3856ad364e35\System.ServiceModel.Internals.dll'.
'iisexpress.exe' (CLR v4.0.30319: /LM/W3SVC/2/ROOT-1-132176722790494652): Loaded 'C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Data.Linq\v4.0_4.0.0.0__b77a5c561934e089\System.Data.Linq.dll'.
'iisexpress.exe' (CLR v4.0.30319: /LM/W3SVC/2/ROOT-1-132176722790494652): Loaded 'C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.IO.Compression\v4.0_4.0.0.0__b77a5c561934e089\System.IO.Compression.dll'.
'iisexpress.exe' (CLR v4.0.30319: /LM/W3SVC/2/ROOT-1-132176722790494652): Loaded 'C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\Common7\IDE\Extensions\Microsoft\Web Tools\Browser Link\Microsoft.WebTools.BrowserLink.Tracing.dll'.
Exception thrown: 'System.IO.FileNotFoundException' in mscorlib.dll
'iisexpress.exe' (CLR v4.0.30319: /LM/W3SVC/2/ROOT-1-132176722790494652): Loaded 'Microsoft.GeneratedCode'.
'iisexpress.exe' (CLR v4.0.30319: /LM/W3SVC/2/ROOT-1-132176722790494652): Loaded 'C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Runtime\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Runtime.dll'.
'iisexpress.exe' (CLR v4.0.30319: /LM/W3SVC/2/ROOT-1-132176722790494652): Loaded 'C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Threading.Tasks\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Threading.Tasks.dll'.
'iisexpress.exe' (CLR v4.0.30319: /LM/W3SVC/2/ROOT-1-132176722790494652): Loaded 'C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Diagnostics.Tracing\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Diagnostics.Tracing.dll'.
'iisexpress.exe' (CLR v4.0.30319: /LM/W3SVC/2/ROOT-1-132176722790494652): Loaded 'C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Collections.Concurrent\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Collections.Concurrent.dll'.
Exception thrown: 'EPiServer.Licensing.LicenseException' in EPiServer.Licensing.dll
Exception thrown: 'System.IO.FileNotFoundException' in mscorlib.dll
'iisexpress.exe' (CLR v4.0.30319: /LM/W3SVC/2/ROOT-1-132176722790494652): Loaded 'Microsoft.GeneratedCode'.
'iisexpress.exe' (CLR v4.0.30319: /LM/W3SVC/2/ROOT-1-132176722790494652): Loaded 'C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Numerics\v4.0_4.0.0.0__b77a5c561934e089\System.Numerics.dll'.
'iisexpress.exe' (CLR v4.0.30319: /LM/W3SVC/2/ROOT-1-132176722790494652): Loaded 'C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Net.Http\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Net.Http.dll'.
'iisexpress.exe' (CLR v4.0.30319: /LM/W3SVC/2/ROOT-1-132176722790494652): Loaded 'C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Web.Mobile\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Web.Mobile.dll'.
'iisexpress.exe' (CLR v4.0.30319: /LM/W3SVC/2/ROOT-1-132176722790494652): Loaded 'C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Web.RegularExpressions\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Web.RegularExpressions.dll'.
Exception thrown: 'System.Web.HttpException' in System.Web.dll
'iisexpress.exe' (CLR v4.0.30319: /LM/W3SVC/2/ROOT-1-132176722790494652): Loaded 'C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Xaml.Hosting\v4.0_4.0.0.0__31bf3856ad364e35\System.Xaml.Hosting.dll'.
'iisexpress.exe' (CLR v4.0.30319: /LM/W3SVC/2/ROOT-1-132176722790494652): Loaded 'C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\vs\16e97345\f70c98fd\App_Web_login.aspx.e1633260.zudqi_6e.dll'.
'iisexpress.exe' (CLR v4.0.30319: /LM/W3SVC/2/ROOT-1-132176722790494652): Loaded 'C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\vs\16e97345\f70c98fd\App_Theme_Default.dll'.
'iisexpress.exe' (CLR v4.0.30319: /LM/W3SVC/2/ROOT-1-132176722790494652): Loaded 'C:\Windows\Microsoft.Net\assembly\GAC_MSIL\Microsoft.VisualBasic\v4.0_10.0.0.0__b03f5f7f11d50a3a\Microsoft.VisualBasic.dll'.
Exception thrown: 'System.IO.FileNotFoundException' in mscorlib.dll
'iisexpress.exe' (CLR v4.0.30319: /LM/W3SVC/2/ROOT-1-132176722790494652): Loaded 'Microsoft.GeneratedCode'.
'iisexpress.exe' (CLR v4.0.30319: /LM/W3SVC/2/ROOT-1-132176722790494652): Loaded 'C:\Windows\Microsoft.Net\assembly\GAC_32\System.Data.OracleClient\v4.0_4.0.0.0__b77a5c561934e089\System.Data.OracleClient.dll'.
'iisexpress.exe' (CLR v4.0.30319: /LM/W3SVC/2/ROOT-1-132176722790494652): Loaded 'C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Dynamic\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Dynamic.dll'.
Exception thrown: 'System.Data.SqlClient.SqlException' in System.Data.dll
Exception thrown: 'System.Data.SqlClient.SqlException' in System.Data.dll
Exception thrown: 'System.Data.SqlClient.SqlException' in System.Data.dll
Exception thrown: 'System.Data.SqlClient.SqlException' in EntityFramework.dll
Exception thrown: 'System.Data.SqlClient.SqlException' in EntityFramework.SqlServer.dll
Exception thrown: 'System.Data.SqlClient.SqlException' in System.Data.dll
Exception thrown: 'System.Data.SqlClient.SqlException' in System.Data.dll
Exception thrown: 'System.Data.SqlClient.SqlException' in System.Data.dll
Exception thrown: 'System.Data.SqlClient.SqlException' in EntityFramework.dll
Exception thrown: 'System.Data.SqlClient.SqlException' in EntityFramework.SqlServer.dll
'iisexpress.exe' (CLR v4.0.30319: /LM/W3SVC/2/ROOT-1-132176722790494652): Loaded 'EntityFrameworkDynamicProxies-System.Web.Providers'.
Exception thrown: 'System.Web.HttpException' in System.Web.dll
The thread 0x39a0 has exited with code 0 (0x0).
The thread 0x33ec has exited with code 0 (0x0).
Exception thrown: 'System.Security.Principal.IdentityNotMappedException' in mscorlib.dll
Exception thrown: 'System.Security.Principal.IdentityNotMappedException' in mscorlib.dll
Exception thrown: 'System.Security.Principal.IdentityNotMappedException' in mscorlib.dll
Exception thrown: 'System.Security.Principal.IdentityNotMappedException' in mscorlib.dll
Exception thrown: 'System.Security.Principal.IdentityNotMappedException' in mscorlib.dll
Exception thrown: 'System.Security.Principal.IdentityNotMappedException' in mscorlib.dll
The program '[21440] iisexpress.exe' has exited with code -1 (0xffffffff).

Obtaining the ID of a parent block from within the child block

$
0
0

Hi All,

I've been reading various posts on this forum in an attempt to figure out a way to obtain the ID of a block's parent, however most of these posts appear to be for EPiServer 6 & 7. I am working with EPiServer DXC and am trying to get the ID of the block's parent to then pass into my view as a value to be assigned to a data attribute.

I have seen several pieces of advice against looking outside of the scope of the block, however in my specific case, I can't seem to find another way to achieve this.

I am currently using the foundation.js "sticky" element, and to anchor it to another element I require the ID of said element. However, this has to be in place before the DOM is readied, I have attempted (successfully) to retrieve and insert the correct ID via JS, after the DOM is ready and while the property correctly updated, the item refused to "stick"

My current workaround is to get the user who creates the block in the CMS to enter the numerical part of the ID of the parent into a field, which is then passed through to the view on page build and while it works, I am aware this is by no means best practice and is more of a test to confirm that the ID can be provided by the Model.

In an attempt to retrieve this ID programmatically, I have used the following code:

var anchorid = "block" + (Model as EPiServer.Core.IContent).ParentLink.ID;

However it returns the ID of the "block" view folder. I found that I could decrement the retrieved value to 1 to get the ID of the parent, but this only applies in the case that the block sits within the parent's content folder, not elsewhere.

Below is the HTML code that I am using to create the sticky block:

<div class="inner" style="padding:0px;"><div class="cell" data-sticky-container><div class="sticky" data-sticky data-top-anchor="@anchorid" data-btm-anchor="@botAnchor" data-margin-top="3.25" data-sticky-on="small"><img class="image1" src="@Url.ContentUrl(Model.HeadingImage)" alt="@altText" /></div></div></div>

Is there any way that I can get the ID of the parent block and insert it into the "data-top-anchor" attribute before the DOM is readied?

Grouping of properties within a same tab in all properties mode

New feature: Display Groups in content areas

$
0
0

There is needs for organizings blocks by grouping them within content areas, for different reasons, mostly to comply with design. For example manual zebra striping or any more advanced stuff.

Since there already is visitor groups implemented the UI could be identical. The difference would be that you select a display group instead of visitor group.

The display groups (options) should be coded, not defined in admin or something, since it is a directive from the editor to the code on how to render — it’s a rendering contract so to speak.

Default behaviour for built-in renderer might be wrapper with display group as class name.

The group could be handled in custom content area renderers to enable using the group in the rendering process.

The content areas should be able to define which display groups is available for that content area.

Editor should be able to add as many  groups they wish, one display group (option) could exist in more than one group in the same content area.

For now we have to do workarounds — but this would be the ideal solution of the needs we often see.


Extended ability to change TinyMCE block "go to block" text

$
0
0

EPiServer recently added a new feature where you can now easier jump to the content in a block added in TinyMCE:

https://world.episerver.com/documentation/Release-Notes/ReleaseNote/?releaseNoteId=CMS-9213

Whereas this is a useful feature, the text can be misleading. Our editors think it's confusing that if they add an image by drag and drop, the text says "go to block". We would like to see that this text is customizable, or at the very least that the built in component can discern the difference between the most basic of added elements, like images and forms. We would also like translations of these texts.

Secondly, we think this new feature is confusing in on-page-editing. The "go to block" popup link should also appear here, not collapse the whole text editor and show the block elements as they are shown in TinyMCE.

dojo component in tinymce plugin

$
0
0

Trying to use the LegacyDialogPopup in tinyMCE but i dont get how Episerver is doing it.

Looking at epi-image-editor.js Epi is doing it like this:

define("epi-addon-tinymce/plugins/epi-image-editor/epi-image-editor", ["epi/routes","epi-addon-tinymce/tinymce-loader","epi-cms/legacy/LegacyDialogPopup","epi/i18n!epi/cms/nls/episerver.cms.tinymce.plugins.epiimageeditor"
], function (routes, tinymce, LegacyDialogPopup, pluginResources) {
    tinymce.PluginManager.add("epi-image-editor", function (editor) {
....
}
});

But when i register my plugin

.AddExternalPlugin("MyPlug", "/pathtoplug.js")

and use the same pattern as upper code:


define("myintegration/plugin/myplug-tinymce", ["epi-addon-tinymce/tinymce-loader","epi-cms/legacy/LegacyDialogPopup"
], function ( tinymce, LegacyDialogPopup) {
//this code never runs
tinymce.PluginManager.add('myplug', function (editor, url) { ... });
});

How do they register their addons to run in the dojo context?

Cache dependencies and content expiration

$
0
0

I can use IContentCacheKeyCreator to create a cache key for some content, and then cache a item using ISynchronizedObjectInstanceCache. If I would change that content via the admin interface, the cached item would be invalidated. However, if the same content would expire (StopPublish is passed) - the cached item is not invalidated. Does anyone know how to handle this?

How to get blob URL

$
0
0

Hi

I have a product that has a image resource. I need to get the blob URL to that image.

How do I get that?

I get the image from productContent.CommerceMediaCollection.First()

I have try IBlobFactory, but then I need to URI.

Any idea?

Thanks

noob question: where is the markup?

$
0
0

With the demo Alloy (MVC), if you look at a page, e.g. the start page, it has content which is outside of the editable content blocks. E.g. at the bottom of the page are 4 sets of links, each with a title. E.g "Products"

This is not in the model, view or controller. In the view, I was expecting to see HTML, along with a div for the Procuts block, and some sort of place holder for the title "Products" (asuming the text is pulled form the ml strings somewhere). But the view has no view code. Its just one line

Where is the pages markup?  E.g. if you wanted to put an icon infront of the word "Products", or wanted to put a horizontal rule after them?

If you want to style the word Products, where is this done? USing chrome developer tools in the preview mode, the entire page content is in a blank div - so you cant reverse engineer it to figure out class names or similar.

I am obviously missing something fundamental....

Viewing all 6894 articles
Browse latest View live