Quantcast
Channel: Customized Commerce 13 and earlier versions
Viewing all 9642 articles
Browse latest View live

Native support for property fallback attribute

$
0
0

I’ve found https://tedgustaf.com/blog/2014/fallback-property-values-in-episerver-using-attributes/ a very useful thing in CMS 9-10 and can’t imagine a life without it — I started using it in CMS 11, but got strange behaviours where blocks appears or disappears after one compile (or IIS-reset), this is mentioned in forum posts.

My latest comment in that issue: https://world.episerver.com/forum/developer-forum/-Episerver-75-CMS/Thread-Container/2018/2/weird-issue-with-items-dissapearing-from-contentreferencelist/#199538

I would really like to use this in CMS 11.

So I think this would be a candidate to be included in one official Nuget package so there will be a supported version whatever changes you do to ContentDataInterceptor, that nowadays breaks basic functionality if extended (even with just base.method-calls in overridden methods)


Base library for common integrations and Epi specific configurations

$
0
0

I'm currently helping a client who has multiple Episerver projects. The projects are somewhat similar as they all operate within in same market, and they all require integrations to some of the same external systems.

Now they would like explore the possibility of having a shared library across all their Episerver projects. Either as a submodule or perhabs a Nuget package.

Does any of you have experience with a setup like that for Epi projects? If so, what sort of stuff do you normally place within the assembly? And what about Epi specific stuff like custom helpers, attributes and initialization modules?

Appreciate any inputs as I am currently struggling to decide if it is even worth the effort, when considering the required maintenance and the fact that the projects will eventually differ in some way.

Thanks

Indexcontent.aspx throwing permissions error on latest version

$
0
0

While setting up Search on a v11 instance, I noticed that clicking "Index content" in the admin section throws a permissions error. There was one other forum post which hinted at the admin role being the cause of the issue, but I'm not really doing anything crazy for mapped roles. Just one named AD group and thats it.

Edit --> I should add that Im currently using ADFS for authentication, dont know if that matters. 

Has anyone else ran across this before? Below is the detailed error

The assembly or AppDomain that failed was:
mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
System.Security.SecurityException: Request for principal permission failed.
   at System.Security.Permissions.PrincipalPermission.ThrowSecurityException()
   at System.Security.Permissions.PrincipalPermission.Demand()
   at System.Security.PermissionSet.DemandNonCAS()
   at EPiServer.UI.Admin.IndexContent..ctor()
   at ASP.episerver_episerver_search_cms_indexcontent_aspx..ctor() in c:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\root\61a7374b\1e1d9993\App_Web_nea3ffuq.0.cs:line 0
   at __ASP.FastObjectFactory_app_web_nea3ffuq.Create_ASP_episerver_episerver_search_cms_indexcontent_aspx() in c:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\root\61a7374b\1e1d9993\App_Web_nea3ffuq.1.cs:line 0
   at System.Web.Compilation.BuildManager.CreateInstanceFromVirtualPath(VirtualPath virtualPath, Type requiredBaseType, HttpContext context, Boolean allowCrossApp)
   at System.Web.UI.PageHandlerFactory.GetHandlerHelper(HttpContext context, String requestType, VirtualPath virtualPath, String physicalPath)
   at System.Web.HttpApplication.MaterializeHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
   at System.Web.HttpApplication.ExecuteStepImpl(IExecutionStep step)
   at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)
The action that failed was:
Demand
The type of the first permission that failed was:
System.Security.Permissions.PrincipalPermission
The first permission that failed was:<IPermission class="System.Security.Permissions.PrincipalPermission, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"
version="1"><Identity Authenticated="true"
Role="WebAdmins"/><Identity Authenticated="true"
Role="Administrators"/></IPermission>
The demand was for:<IPermission class="System.Security.Permissions.PrincipalPermission, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"
version="1"><Identity Authenticated="true"
Role="WebAdmins"/><Identity Authenticated="true"
Role="Administrators"/></IPermission>

Commerce item URL incorrect from scheduled job

$
0
0

Hi Everyone, 

I have an issue whereby I am indexing commerce items in Find via the scheduled job (EPiServer Find Content Indexing Job), but the URL I am indexing for these items is incorrect, and includes the language segment of the culture (EN) configured for the current sites host name - therefore when I render the results of the items in my search results they're wrong.

If I index the items myself, through a publish, the URL is correct (language segment is not in the URL). 

CMS based items are always right in terms of removing the language segment for EN, and applying language segment for other cultures. 

Can someone point me in the right direction of what I need to do to get this working?

It looks like it may an issue with getting the current site context via the job (this is a multi site solution).

Thanks,

Paul

TinyMCE lang files

$
0
0

Upgraded from version 1.0.0 of TinyMCE to 2.7.1 after upgrading to Episerver 11.10.6. Have the same issue when i use TinyMCE version 2.6.1.


I get a warning saying "Failed to load plugin url: http://mysite.local/Episerver/EPiServer.Cms.TinyMce/2.7.1/ClientResources/tinymce/langs/sv-se.js" I have confirmed that the file exists. 
I get the same warning if i change the UiCulture to eg. "da", it wont load that file either.

When entering the adress in the browser i get the following exception:

Exception information:
Exception type: StructureMapConfigurationException
Exception message: No default Instance is registered and cannot be automatically determined for type 'EPiServer.Cms.TinyMce.Core.Internal.IResourceResolver'

There is no configuration specified for EPiServer.Cms.TinyMce.Core.Internal.IResourceResolver

1.) new ResourceResolverController(*Default of IResourceResolver*)
2.) EPiServer.Cms.TinyMce.Controllers.Internal.ResourceResolverController
3.) Instance of EPiServer.Cms.TinyMce.Controllers.Internal.ResourceResolverController
4.) Container.GetInstance(EPiServer.Cms.TinyMce.Controllers.Internal.ResourceResolverController)

Does anyone have any idéa of what im doing wrong?

Personalisation + Validation

$
0
0

I've a 'ContentArea' with a 'LimitContentAreaItems' validator attribute attached, but my issue is that the editors may wish to personalize items in the ContentArea, but the validation attribute doesn't take Personalisation into account when counting the blocks in the contentArea. Is it possible for me to write my own custom validator that could allow, for example, 4 items, but 2 items in each visitor group, so that validator will see that there are only ever 2 items enabled at once? So in the example I want to limit it too 2 items, but allow several personalisations such that the contentArea actually has several more items than just the 2.

Update all packages to support Newtonsoft.Json v12

$
0
0

Newtonsoft.Json is now in v12, it would be nice to be able to update to that version so please fix all your packages that has dependency to this to work with version 12

Error with 7.0 CMS: CS1061: 'EPiServer.Shell.Web.Mvc.BootstrapperViewModel' does not contain a definition for 'GlobalNavigationMenuType'

$
0
0

Greetings, 

In an old project we're maintaining an issue suddenly started occurring in my local development environment. There was no precursor that should have started this issue and no changes that should be related to this has been done since early october. 

The website itself works, but when I try to access <dev-website>/secureui or /secureui/cms I get this error:

Compiler Error Message: CS1061: 'EPiServer.Shell.Web.Mvc.BootstrapperViewModel' does not contain a definition for 'GlobalNavigationMenuType' and no extension method 'GlobalNavigationMenuType' accepting a first argument of type 'EPiServer.Shell.Web.Mvc.BootstrapperViewModel' could be found (are you missing a using directive or an assembly reference?)

In the file: Source File: /secureUI/Shell/Views/Shared/Bootstrapper.aspx    Line: 17 

It's running EPiServer.CMS.Core 7.0.586.24 and EPiServer.Framework 7.0.859.24

Long story short, I have tried:

  1. Cleaning and rebuilding the project
  2. Stopping IIS and cleaning out the temporary ASP.NET files in C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files and \Framework64\ and then rebuilding the project
  3. Checking out the code from the repo from a point before I know it was working
  4. Deleting and restoring all NuGet-packages
  5. Deleting and reinstalling EPiServer 7.0 from my local machine
  6. Deleting the entire project and cloning it anew from the repository
  7. Deleting the local database and using the original dev database

Luckily it is not an issue in test or in prod, but as you can imagine there's quite a bit of maintenance I can't do without access to the CMS locally.

I figure this isn't the most active of subforums, but I recon it's still possible to get help here. If not I'll invade the dev to dev forum.

Here is a screenshot of the error:


Import NodeEntryRelation through Service API Error

$
0
0

Hi, we have an issue which occurs when our customers daily sync from PIM to EPi is running. Almost all of the products are imported just fine, but lately a specific product has coused the import to fail. It happens when ne NodeEntry-relation is about to be set, which i find very strange. Other entries with relation to the same node is working perfectly fine. The error we receive from The Service API:

{"TimestampUtc":"2018-11-28T22:34:15.5474666Z","MessageType":5,"Message":"This row has been removed from a table and does not have any data. BeginEdit() will allow creation of new data in this row.","StageName":"Exception","StageIndex":1,"StageCount":1,"StageProgress":1,"StageTotalProgress":1,"ExceptionMessage":"This row has been removed from a table and does not have any data. BeginEdit() will allow creation of new data in this row.","ExceptionStackTrace":" at System.Data.DataRow.GetDefaultRecord()\r\n at System.Data.DataRow.get_Item(DataColumn column)\r\n at Mediachase.Commerce.Catalog.Dto.CatalogRelationDto.NodeEntryRelationRow.get_IsPrimary()\r\n at Mediachase.Commerce.Catalog.ImportExport.Import.NodeEntryRelationsReader.Read(ImportCatalogNodeCache relationCache)\r\n at Mediachase.Commerce.Catalog.ImportExport.Import.RelationsReader.Read(ImportCatalogNodeCache relationCache)\r\n at Mediachase.Commerce.Catalog.ImportExport.Import.Importer.Import(Stream stream, String sourceDirectory, Boolean overwrite)\r\n at Mediachase.Commerce.Catalog.ImportExport.CatalogImportExport.Import(String directoryPath, Boolean overwrite)\r\n at EPiServer.ServiceApi.Commerce.Jobs.CatalogImportJob.ExecuteJob(Guid jobId)"}

The relation XML-node from Import XML which fail:

<NodeEntryRelation><EntryCode>9723223</EntryCode><NodeCode>moj99lzdhusy</NodeCode><SortOrder>0</SortOrder><IsPrimary>True</IsPrimary></NodeEntryRelation> 

This however, which is the Noderelation just above in the XML does work:

<NodeEntryRelation><EntryCode>9723197</EntryCode><NodeCode>moj99lzdhusy</NodeCode><SortOrder>0</SortOrder><IsPrimary>True</IsPrimary></NodeEntryRelation>

What happens to the relation that fails is that the Enty is placed on ROOT in the catalog with no relations. Any idea what could be cousing this behaviour? We are running EPiServer Commerce 12.5 and Service API 5.1

Episerver 11 - DisplayTemplates for LinkItemCollection

$
0
0

Alloy, Episerver 11.10.1.

On StartPage, I've created a new property:

[UIHint("MyUiHint")]
[Display(
    GroupName = SystemTabNames.Settings,
    Order = 100)]
public virtual LinkItemCollection MyProperty{ get; set; }

Under Views/Shared/DisplayTemplates, I've created a new view - MyUiHint.cshtml

If I use @Html.PropertyFor(x => x.CurrentPage.MyProperty) inside Views/StartPage/Index.cshtml, everything works as expected. Episerver will use MyUiHint.cshtml to render the property.

However, if I want to make MyProperty available inside LayoutModel and use @Html.PropertyFor(x => x.Layout.MyProperty), Episerver will use the default template instead of MyUiHint.cshtml. If I then click on the property in On-Page editing mode and close the popup, Episerver will switch to MyUiHint.cshtml. However, as soon as I switch the view (for example, go to All Properties view and then back to On-Page editing view), Episerver will again use the default template instead of MyUiHint.cshtml.

Is this a known issue?

Does current AlloyDemoKit require SQL Local DB 2017?

$
0
0

I am trying to bring up the most current version of the Alloy Demo Kit from GitHub to help with our upgrade from 10 to 11. 

I did all the steps in the wiki page using IISExpress. After making it past an error with CSC.exe needing to be copied to output, I now get an error about the database needing to be version 869. 

I am using Visual Studio 2017 15.9 so I'm not behind at all. What gives?

The database 'alloydemokit' cannot be opened because it is version 869. This server supports version 852 and earlier. A downgrade path is not supported.
Could not open new database 'alloydemokit'. CREATE DATABASE is aborted.
Cannot attach the file 'C:\Users\MISOAdmin\Source\Repos\Alloy_Demo\src\AlloyDemoKit\App_Data\alloydemokit.mdf' as database 'alloydemokit'.

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. 

Exception Details: System.Data.SqlClient.SqlException: The database 'alloydemokit' cannot be opened because it is version 869. This server supports version 852 and earlier. A downgrade path is not supported.
Could not open new database 'alloydemokit'. CREATE DATABASE is aborted.
Cannot attach the file 'C:\Users\MISOAdmin\Source\Repos\Alloy_Demo\src\AlloyDemoKit\App_Data\alloydemokit.mdf' as database 'alloydemokit'.

Issue with upgrade to Epi 11 aroud Page Refernces

$
0
0

We're working to upgrade Epi 10 CMS to 11. We have alot of code like below.

When we run the site, landingPageConfig.GetLandingPageReference("AccessRequestForm"); now comes back NULL without any other changes to the site code, for the most part.

Where there big changes in Content Loading that we should know about?

        public Guid AccessRequestFormGuid
        {
            get
            {
                var landingPageConfig = ServiceLocator.Current.GetInstance<Business.ContentConfiguration.ILandingPageConfiguration>();
                var contentLoader = ServiceLocator.Current.GetInstance<IContentLoader>();
                var accessRequestFormReference = landingPageConfig.GetLandingPageReference("AccessRequestForm");
                var requestPageData = contentLoader.Get<StandardPage>(accessRequestFormReference);
                var formBlock = contentLoader.GetItems(requestPageData.MainContentArea.Items.Select(i => i.ContentLink), new LoaderOptions { LanguageLoaderOption.FallbackWithMaster() }).OfType<FormContainerBlock>().FirstOrDefault();
                return formBlock.Content.ContentGuid;
            }
        }

How to assign the property value, based on the folder where the page is created

$
0
0

Hello, 

I wonder how, at the moment of page instance creation, how can I assign a value to some page's property, the value based on the folder name where this page instance is created?

Something related to '

public override void SetDefaultValues(ContentType contentType)'?

thank you

Separate admin login when using OpenIdConnect

$
0
0

Hi!

Is it possible to have some kind of separate login for admin users in episerver, when using OpenIdConnect? We only want the OpenIdConnect for the end users, not editors or admins.

Installation Question ?

$
0
0

Hi Guys ,

  I want to running episerver cms on windwos web hosting provider , but they can not provide visual studio deployment method .

  They were provide web hosting tool ( like Plesk .... ) , can I use ftp upload episerver webdata and running on it ?


How to use Find to search both cms pages and products in one search

$
0
0

Hi, 

I would like to search both cms pages e.g. standpages and commerce products, categories in oen search. 

I tried to use the following solution but it seems not working correctly and I have problem with the value of totalmatching. 

...

multiSearch = searchClient.Search<ContentData>().For(query).FilterForVisitor(currentLanguage).Skip(skip).Take(itemsPerPage).Track().GetContentResult();

foreach (var item in multiSearch)
{
if (item is Article)
{var article = ((Article)item);

....}

else if (item is Category)
{
var category = ((Category)item);

...}

else if (item is SitePageData)
{ var pageData = ((SitePageData)item);

...}

Any suggestions guys?

Thanks, 

ChiChing

CMS Edit Mode Error

$
0
0

My website is working fine now , but my user login epi cms system  edit web page was show error ( Page could not be loaded

The link you specified does not work. This may either be the result of temporary maintenance or an incorrect link. )

I setting EPiServerLog.config Log level : All , but not show any error .

Can you help me resolve this issue , thanks .

Issue with multiple catalogs, multi site and product import from inRiver

$
0
0

I have an issue where we use inRiver PIM to import products to Episerver. The setup is one channel and adapter for each site. The products and channel lives in the same PIM solution and each product can live in multiple channels.
Since Episerver PIM adapter works with using the old catalog import Mediachase.Commerce.Catalog.ImportExport.CatalogImportExport I don't see any way to set or check for the Primary Category for the product. I also get a System.Data.SqlClient.SqlException (0x80131904): Cannot insert duplicate key row in object 'dbo.NodeEntryRelation' with unique index 'IX_NodeEntryRelation_PrimaryRelation'. error when a product is imported in another channel but already existing.

I was hoping Epi would detect this automaticly and set the new Node as "Additional Category".

Is there a way to either duplicate the product so it can have a new Primary based on what Catalog it lives inn or set multiple primary categories?

Translating - Multiple or single choice field

$
0
0

Currently on a multi language site we want to use a Multiple or single choice field. However the items are not translatable in a different language. At least the choice how it is displayed in the front-end should be translatable as this might need to differ per language. Is this something that will be built-in in future releases?

Display options

$
0
0

I am trying to implement EPiServer display options without bootstrap and I am not quit sure wich steps I need to to to get it to work.. I have managed to get the chooises avaible in the editor, but I am not getting to choise with me to the backend, anyone have an exemple on a simple way to implement this without bootstrap?

Viewing all 9642 articles
Browse latest View live