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

ServiceApi EntryType

$
0
0

So this Commerce project landed on my desk and my first task was to implement Episerver ServiceApi. It all went fine but I can't figure out how to make it work properly. When using the "Put Entry" endpoint "/episerverapi/commerce/entries/{entry code}" I can only post with EntryType: Variant but when I do the article disappears. If I post EntryType: Variation the ServiceApi returns 404.

Does anyone know why!?

Version numbers...
Episerver CMS: 11.5.0
Episerver Commerce: 11.6.0
Episerver ServiceApi: 4.2.1


Google reCAPTCHA is not working in Episerver Form

$
0
0

Hi,

 I am working in a project where we are using Episerver.Forms with version 4.11.0.0.

 I have to implement google reCAPTCHA in one of the form. For that I referred https://github.com/episerver/EPiServer.Forms.Samples/ .

 I have created the specified files and tried but it won't work. So I tried other way by installing the EpiServer.Forms.Samples nuget package. But here also I am facing some issues.

 Can we implement google reCAPTCHA by using the EpiServer.Forms.Samples nuget package only? Or do we need to add any extra code other than this nuget installation?

Episerver Forms - reCaptcha not working

$
0
0

ive installed the episerver.forms.samples package and added the required javascript in order to get the recaptcha working however when i submit the form, it always returns with the invalid captcha value error

How does LocalizationService gets data?

$
0
0

In alloy sample, Html.Translate("/footer/products") returns "Products" from Views.xml file using LocalizationService. How does LocalizationService gets data?

Episerver Forms File Upload - control of file destination

$
0
0

Happy New Year!

Is anyone aware of a way to take control of where file is saved when uploaded via File Upload element of Episerver Form?
Precisely, am looking for a way to set another destination (folder) where images land.

Implement recaptcha version 3 in Episerver 11

$
0
0

Has anyone implemented version 3 recaptcha ?

How to search for media in web forms solution?

$
0
0

Hi!

I am trying to add a search to an episerver 11 web forms solution. I have added an episerver:searchdatasource to search for pages, and this works fine. But how do I search for mediafiles? I can't find any documentation on this.

Multiple Catalogs and sites. Issues with primary category and routing

$
0
0

Hi.

We are having an issue where we will host multiple sites with multiple catalogs where the same product can live in multiple sites and therefore multiple catalogs at the same time. As a site only displays a spesific catalog, having the product with only one primary category is causing some issues.

I've tried to create a custom route for products but can't seem to get this working. It seems to be limited to what site is using the catalog with the primary category.

Example:

Product 1 lives in both CatalogA and CatalogB. Should be available SiteA and SiteB

Product 2 lives in just CatalogB and should only be available in SiteB.

Has anyone had similar issues or have some pointers on how to maybe go around this issue? One Idea I have is having a master catalog all sites has access too and Primary is set to that catalog.


Multiple Catalogs and sites. Issues with primary category and routing

$
0
0

Hi.

We are having an issue where we will host multiple sites with multiple catalogs where the same product can live in multiple sites and therefore multiple catalogs at the same time. As a site only displays a spesific catalog, having the product with only one primary category is causing some issues.

I've tried to create a custom route for products but can't seem to get this working. It seems to be limited to what site is using the catalog with the primary category.

Example:

Product 1 lives in both CatalogA and CatalogB. Should be available SiteA and SiteB

Product 2 lives in just CatalogB and should only be available in SiteB.

Has anyone had similar issues or have some pointers on how to maybe go around this issue? One Idea I have is having a master catalog all sites has access too and Primary is set to that catalog.

Episerver - Automatically delete Properties from Episerver when deleted in code

$
0
0

I'm working on my first EPI Server project and I have noticed that when I create a property on a 'Page Type' in C# Code, compile it, I can see the properties in Episerver.

However when I then delete that property in code the property still appears in the back office, and I have to manually delete it in the admin section.

Is there a setting in Epi server that will automatically delete properties from the EPI server database when they are removed from code? It seems very strange that you would have to delete the properties one by one every time you make a change to a Page Type.

Episerver Commerce: Variant Inventory view

$
0
0

In Episerver Commerce UI on the "Inventory" tab on the variant it would be nice if the warehouse code was shown in the view next to the warehouse name/location. Right now current columns is shown: Location, Code (is the variant code and not the warehouse code), Quantity, Preorder Availability, Is Tracked

How would Iinject Client Resources in a common Layout for only those pages that actaully contain an epi Form?

$
0
0

How would I to inject Client Resources in a common Layout for only those pages that actaully contain an epi Form? If I add these to the header and footer, everything works. My concern is that I only want to inject them for pages that contain a form block.

@Html.RequiredClientResources(RenderingTags.Header)

@Html.RequiredClientResources(RenderingTags.Footer)

How to find all blocks for current page in ContentArea or XHtmlString based on or inherited from FormContainerBlock

$
0
0

How can I find all blocks that are or inherit from FormContainerBlock for current page in ContentArea or XHtmlString when page is saved? This would include existing pages/blocks OR when a page/block is created. I would like to set a page level property of ScaffoldColumn false.

This will be trigger when the _Layout @Html.RequiredClientResources(RenderingTags.Header) and @Html.RequiredClientResources(RenderingTags.Footer) are added. We don't want to add these unless they are being used. All of our pages are based on _Layout and as such not all will utilize epi Forms.

The tricky part is that a block my have a child block so recurrion might be needed.

Issues occurring when transitioning code updates into a load-balancer situation

$
0
0

I'm a seasoned ASP.NET developer (15+ years) and Episerver is new to me as of just about two months ago.  I did the week-long developer training and then was asked to extend an existing page's class with a new property.  This easy code change got a "pass" from our internal QA staff, but QA doesn't test in a load-balanced environment.

Our setup has two web servers intended for public use, and a "content" server intended for internal use.  The major difference in configuration is that the public pair doesn't allow CMS logins.  So, upon deployment, the code got pushed to the content server and one of the public servers.  Obviously, all three point to the same database.  Upon trying to edit the new property on the content server, we saw an error message when trying to save the page, basically saying that the property didn't exist.  This wasn't a show-stopper, and about a week later the message disappeared after the second public server was updated with the same code.

I'm suspecting that the differing codebases caused this issue, with two servers trying to make the property available in the database, and the other server potentially trying to remove it.  Is anyone familiar enough with this to lend some advice?

Thanks in advance!

How to check if product expired?

$
0
0

In the Commerce Catalog UI I expire a product by selecting Manage Expiration and Archiving, and setting the expire date to now.

However, loading catalog content from code I see different properties on my products, like Epi_IsPublished, but nothing in regards to an expired status. My question is, how I can check from code, that a product is expired?

Commerce version: 11.8.3.


Issue on Tasks tab in Edit mode.

$
0
0

Hi All,

We are facing one issue with Tasks tab where we see the tasks based on the status for GlobalLink.

  • When a submission is imported to Episerver we can see it as a Ready to publish version on the block/page itself. Usually we can also find it in the Task list sorted on Ready to publish. Not all imported submissions are visible in the Task list anymore, seems like it is more common to wCMS pages than CMS pages.
  • This is very severe to the content teams as we don't know when there are imported submissions to publish and also when in EN the translations forward on to other languages are stopped.

Please guide with issue.

How to set culture specific alt text on an image

$
0
0

Hi guys, 

I have problem to change alt text property in the existing ImageFile class to culture specific.

I found this topic in episerver (https://world.episerver.com/forum/developer-forum/-Episerver-75-CMS/Thread-Container/2016/6/image-/)

I tried first to moidy the existing ImageFile and it didn't work. I created a new contenttype "LocalizedImageFile" and implement ILocalizable interface class instead.

[ContentType(GUID = "0A89E464-56D4-449F-AEA8-2BF774AB8745")]
    [MediaDescriptor(ExtensionString = "jpg,jpeg,jpe,ico,gif,bmp,png,pdf")]
    public class LocalizedImageFile : ImageData, ILocalizable
    {
        public IEnumerable<CultureInfo> ExistingLanguages { get; set; }
        public CultureInfo MasterLanguage { get; set; }
        [CultureSpecific(true)]
        public virtual string AlternateText { get; set; }
        public override Blob BinaryData
        {
            get
            {
                if (ContentReference.IsNullOrEmpty(this.ContentLink))
                {
                    return base.BinaryData;
                }
                if (this.Language.Name == this.MasterLanguage.Name)
                {
                    return base.BinaryData;
                }
                return this.LoadMasterContent<LocalizedImageFile>().BinaryData;
            }
            set
            {
                base.BinaryData = value;
            }
        }
        [ImageDescriptor(Height = 48, Width = 48)]
        public override Blob Thumbnail
        {
            get
            {
                if (ContentReference.IsNullOrEmpty(this.ContentLink))
                {
                    return null;
                }
                if (this.Language.Name == this.MasterLanguage.Name)
                {
                    return base.Thumbnail;
                }
                return this.LoadMasterContent<LocalizedImageFile>().Thumbnail;
            }
            set
            {
                base.Thumbnail = value;
            }
        }
    }
    public static class LocalizableMediaDataExtensions
    {
        public static T LoadMasterContent<T>(this LocalizedImageFile imageFile) where T : IContent
        {
            var contentRepository = ServiceLocator.Current.GetInstance<IContentRepository>();
            var content = contentRepository.Get<T>(imageFile.ContentLink.ToReferenceWithoutVersion(), new LanguageSelector(imageFile.MasterLanguage.Name));
            return content;
        }
    }

My question is what shall I do with the existing images which are "ImageFile" type?

I tried to upload a new picture and it still ImageFile type, not LocalizedImageFile.

Or any other tips to set culture specific alt text on an image?

Thanks,

ChiChing

Approval Sequence - sending an initial comment and tying to expiry date

$
0
0

Hello episerver,

We currently use our own custom workflow to approve webpages on the CMS.

However, i am looking into using the native episerver capability of Content Approval Sequence.

As far as I can see, there are two issues that stop me from using this and wondered if it would be possible to resolve:

1) When I start a new approval sequence, as a web editor i want to include a message telling the reviewers what has changed and what to look out for

2) I want the final reviewer to be able to set an expiry date for the page.

Can this be done?

I look forwrad to your response.

Thanks,

Tom

Workflow - ability to submit comments

$
0
0

Hi,

When our editors submit a page for approval through workflow, they really need to be able to submit comments with the page that approvers can see. This helps the approver/s understand what changes have been made to the page and other important messages.

I understand that the latest version of Episerver has added comments, but still doesn't allow the editor to include comments when they submit a page for approval. Only the approver can send comments back to an editor.

Does anyone know when this is going to be included? It's pretty standard functionality I think in any workflow process.

From a user perspective, it prevents the approvers from having to review all aspects of a page and just focus on the bits that have changed.

Thanks

Nerissa

CatalogManagers role cannot edit catalog after update

$
0
0

Hi,

We updated our project to the newest Commerce 12.14 from Commerce 11.2.3. After that, users with role CatalogManagers, but without CommerceAdmins can see the Catalog in Catalog Editor UI, but everything is read-only, the user cannot create any new entry or modify an existing one. In the previous version CatalogManagers had write access to the catalog as well.

If I assign the user CommerceAdmins role as well, it can edit the catalog. I have checked the role-configuration and security configuration in UI and everything is correct and like in the old version, there is no difference.

What could cause this change of behavior and how could it be solved? I have debugged, and the user gets the CatalogManagers claim, but apparently it is not enough.

Thank you in advance!

Viewing all 6894 articles
Browse latest View live