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

Upload file by user

$
0
0

I would like to upload file from user form. When I search for the solution, I found that EpiServer.Forms support file upload but we are not using Forms for the pages and created programmatically.

For example, we are creating a page element using the following code

[Editable(true)]
[Display(
Name = "Name",
GroupName = SystemTabNames.Content,
Order = 10)]
public virtual string userName { get; set; }

Is there any way to upload file from user forms?

Also, Geta.Epi.MediaReferenceSelector can be used with following UI hints

[UIHint("ResponsiveMedia")]
[UIHint("ivpropertymedia",PresentationLayer.Edit)]

What is the variable type to use for MediaReferenceSelector?


Can't Access Site

$
0
0

Hi, we've just built a new site and we're having issue accessing it. Things that we've noticed is that the 'View on website' link on CMS is missing and going to the link directly says we have provided incorrect credentials. No error appears on log and it happens both in local and remote. Did we miss something? Thanks!

Trim Content Versions job for Commerce catalog content

$
0
0

In CMS 11 we got the "Trim Content Versions" job for CMS content which uses the uiMaxVersions setting. 

Would be nice with a similar built-in job for Commerce content for cleaning up old previous versions of catalog entries. 

Stop Publish not working

$
0
0

hi

we are trying to unpublish a page with the "manage expiration and archiving" and after pressing now

the page is not unpublished.

we get no error or any alert to why is that.

please advise

thanks

E.

Upload file by user

$
0
0

I would like to upload file from user form. When I search for the solution, I found that EpiServer.Forms support file upload but we are not using Forms for the pages and created programmatically.

For example, we are creating a page element using the following code

[Editable(true)]
[Display(
Name = "Name",
GroupName = SystemTabNames.Content,
Order = 10)]
public virtual string userName { get; set; }

Is there any way to upload file from user forms?

Also, Geta.Epi.MediaReferenceSelector can be used with following UI hints

[UIHint("ResponsiveMedia")]
[UIHint("ivpropertymedia",PresentationLayer.Edit)]

What is the variable type to use for MediaReferenceSelector?

CreateMetaField is not adding entry to mcmd_MetaField table

$
0
0

We're having an issue where the Business Foundation API for creating a new MetaField on a class is not working properly.

This is the code that I'm executing:

using (var myEditScope = DataContext.Current.MetaModel.BeginEdit())
{
	metaClass.CreateMetaField(name, friendlyName, typeName, isNullable, defaultValue ?? string.Empty, attributes);
	myEditScope.SaveChanges();
}

And this does create the column in the MetaClass's own SQL table, but it does not add an entry to the mcmd_MetaField table.

I've experimented with a few different approaches, and have tested it with various MetaFieldTypes (Integer, String, DateTime, etc) but keep getting the same result. I've double checked that I'm adding the correct attributes (I am checking against the MetaFieldBuiler code as a reference).

What really has me scratching my head is that this has always worked on previous projects reliably for me, and even in the early days of this project.. I guess maybe something is uniquely wrong with our state of data perhaps, but I can't figure what could have changed to cause this..?

We're using Commerce v12.11 (with CMS v11.10.6).

Anyone have any ideas/tips?

Link to email in new dialog

$
0
0

Hi! Our editor wants to create a mailto link with subject and body in the link dialog (mailto:name@domain.se?subject=thesubject&body=Jag vill prenumerera), but EPiServer won't allow it saying that it is not a valid link regardless if we input it in the "email" or "external url" box. Do I have to create my own link dialog for the editor to be able to do this without using the XHTML editor?

Regards Christer

Image Cropper - New Package


Content Approvals With Azure AD

Looking for files across the site

$
0
0

Hi,

Im looking for pages that have the files in the VPP using Episerver 6 R2.

I using this code:

EPiServer.DataAbstraction.SoftLinkCollection filecollection = EPiServer.DataAbstraction.SoftLink.Load(file);

Is there a way to use this and not look in the Recycle bin? I only ask as our client has deleted hundreds of pages and we dont want to look at these pages.

Thanks

Episerver A/B Testing breaks 404 pages (BVN404Handler)

$
0
0

Hi,

I've running the BVN404 handler and it works great, but when I install the Episerver A/B testing addon everytime I access a non existent page I get a 500 error page. There is no information in the Windows eventlog or in the Episerver log files. I've run Failed Request tracing in IIS and this also doesn't give me any results. So this doesn't help me.

I've cleared the temporary ASP.NET folders and recompiled the application with no success.

Has anyone else experienced this?

Save Purchase Order Create Date updation

$
0
0

Hi all,

We are trying to update Purchase order create date with the existing creation date i.e. we need to use old dates for which the orders are manually purchased. Is there any specific property which allows us to update the creation date of the order. We found that property is read only(Created property)

Regards,

Manik

Commerce create Catalog Category save tab not showing

$
0
0

Hi! I am new to Episerver and I am building my first site in it at the moment. I have a problem that I cant find the solution to. In my commerce edit page I try to create a category in my catalog. But the only tab that is showing there are Cancel, no Save and nothing else just Cancel. I dont know if the problem is in my CMS admin rights or if there is something else. I am very thankfull for all the help I can get here. I am under a bit of pressure Since my work have to be finished within 2 weeks.

Thanks!

/Louise

Error removing the IUser - SqlException: Execution Timeout

$
0
0

I have used,

CommunitySystem.CurrentContext.DefaultSecurity.RemoveUser(IUser user);

To remove user.

However, this was working fine. But suddenly it has given an error. And it keeps happening forever. The exception throws from the RemoveUser(IUser user).

The exception details are here as below,

System.Data.SqlClient.SqlException (0x80131904): Execution Timeout Expired. The timeout period elapsed prior to completion of the operation or the server is not responding. ---> System.ComponentModel.Win32Exception (0x80004005): The wait operation timed out
at System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlDataReader.TryConsumeMetaData()
at System.Data.SqlClient.SqlDataReader.get_MetaData()
at System.Data.SqlClient.SqlCommand.FinishExecuteReader(SqlDataReader ds, RunBehavior runBehavior, String resetOptionsString, Boolean isInternal, Boolean forDescribeParameterEncryption)
at System.Data.SqlClient.SqlCommand.RunExecuteReaderTds(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, Boolean async, Int32 timeout, Task& task, Boolean asyncWrite, Boolean inRetry, SqlDataReader ds, Boolean describeParameterEncryptionRequest)
at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method, TaskCompletionSource`1 completion, Int32 timeout, Task& task, Boolean& usedCache, Boolean asyncWrite, Boolean inRetry)
at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method)
at System.Data.SqlClient.SqlCommand.ExecuteReader(CommandBehavior behavior, String method)
at EPiServer.Community.Forum.Data.ForumFactory.<>c__DisplayClass33_0.<UserRemovedCleanUp>b__0()
at EPiServer.Data.Providers.Internal.SqlDatabaseExecutor.<>c__DisplayClass32_0.<ExecuteTransaction>b__0()
at EPiServer.Data.Providers.Internal.SqlDatabaseExecutor.<>c__DisplayClass33_0`1.<ExecuteTransaction>b__0()
at EPiServer.Community.Forum.ForumModule.DefaultSecurity_RemovedUser(ISecurityHandler sender, IRemoveUserEventArgs args)
at EPiServer.Common.Security.RemoveUserEventHandler.Invoke(ISecurityHandler sender, IRemoveUserEventArgs args)
at EPiServer.Common.Security.SecurityHandler.OnRemoveUser(IRemoveUserEventArgs args)
at EPiServer.Common.Security.Data.SecurityFactory.<>c__DisplayClass57_0.<RemoveUser>b__0()
at EPiServer.Data.Providers.Internal.SqlDatabaseExecutor.<>c__DisplayClass32_0.<ExecuteTransaction>b__0()
at EPiServer.Data.Providers.Internal.SqlDatabaseExecutor.<>c__DisplayClass33_0`1.<ExecuteTransaction>b__0()
at EPiServer.Data.Providers.SqlTransientErrorsRetryPolicy.Execute[TResult](Func`1 method)
at EPiServer.Common.Security.SecurityHandler.RemoveUser(IUser user)

As per above error, it seems like it is happening due to a DB issue. But what DB? How Can I diagnose? What could cause this? Any help appreciated. Thank you.

Additional info:

EPiServer.CommonFramework version=9.0.1
EPiServer.CMS.Core version=11.9.2
EPiServer.Community version=9.0.0

FormsAuthentication.SignOut()

$
0
0

Hello guys,

as hinted by the header I need some possible help and/or input regarding FormsAuthentication.SignOut(). I have a custom log out button that works fine when using Chrome/FF, but when the customer is using IE11 it doesn't sign out the user.

However: the user get's signed out of EPiServer, but when I check user roles manually (after_ SignOut() ofc), Roles.IsUserInRole([ some groups]) still returns TRUE, and then the code logic fails since it should be returning FALSE (obviously).

Is there a IE quick fix for this? Clearing of certain cookies or what not? Or something I've missed?

BR
Patrik


What values to use for Min Similarity in a fuzzy query

$
0
0

Hi, I'm working on Find 13.0.1, CMS 11.9.1.

We have added in fuzzy logic to our find query setup. This includes MinSimilarity functionality. However we can't find anything online that says what values to use here. We notice differences when setting MinSimilarity to a whole number such as 0,1 or 2. However, setting it to a decimal brings back the same results as the closest whole number. We are not 100% sure what should be returned. If I search for "Nursing" but spell it wrong e.g "Nrsing" I would expect it to return "Nursing" results if Min Similarity is set to 1. However if I get two letters wrong in the search term then I would expect no results unless I set Min Similarity to 2. Am I right in how this should work? Also do the mistakes need to be right next to each other?

Any help is much appreciated.

Same form twice on page, validator validates both forms

$
0
0

Hi there,

Our users would like to add the same form twice to the page. I guess once near the top and again close to the bottom of the page (not here to debate whether this is good or bad).

After doing some testing, I noticed that if I add the same form twice to the page then the following happens:

Scenario 1

If I fill out the top form only and click submit, I get form input validation errors for both forms and no form is sent off. I guess this is because in the 2nd instance of the form, the input fields are empty, so as far as the validator is concerned something is wrong.

Scenario 2

If I fill out the bottom form only and click submit, then the bottom form is sent off properly, but the button on the top form displayes a circle (it is waiting for feedback on form success I guess).

Is there anything I can do to allow:

  • the same form to be added mutiple times to the same page, and
  • for the validator to validate only the instance that has been clicked

?

Any ideas how to approach this?
What files do I need to look into? (Am new to EPiServer development and did not get very far yet).

Item Level Promotion.

$
0
0

Hi Team,

Below is my requirement.

Item

Qty more than

gg-5656

115 

gg-5678-PSK

50

gg-3456-PS

115

gg-6789-PLSK

50

XX-3030

50

XX-3030-TSLS

50 

 

If add "XX-3030" 50 quantity & get 5% discount.So how to achieve this using epi promotion. or How to do customization in epi item type promotion. (Selected variation or category should equal to discount qualified  quantity and the only qualified product will get discount .)

Please help me out,

Advance Thanks,

Karthik

Binding redirect overwiriting on installing nuget package

$
0
0

Hi All!

I am having a problem with automatic bindingRedirect overwriting, when installing nuget packages.

In most cases that behavior is expected, but in my case the problem is that the max value of the version range is decreased.

My main project has the following binding redirect:

<assemblyIdentity name="EPiServer.Framework" publicKeyToken="8fe83dea738b45b7" culture="neutral"/>
<bindingRedirect oldVersion="0.0.0.0-11.10.5.0" newVersion="11.10.5.0"/>

And the nuget package i am installing has the following:

<assemblyIdentity name="EPiServer.Framework" publicKeyToken="8fe83dea738b45b7" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-11.11.0.0" newVersion="11.11.0.0" />

As you can see the problem is that the minor version in the package is higher than the version in the consuming package, therefore it is out of the version range in that particular binding. That creates an error when starting the base project, about missing assemblies.

A fix for this is to correct the range of the versions in the binding in the consuming project after the nuget package installs. But that is cumbersome and I would not want to push that responsibility on the people that would use the nuget package.

So is there any way to mitigate this problem, without manually parsing the packages.config file in the nuget a1 script file?

Extend LinkItemCollection

$
0
0

Have someone been able to extend a LinkItemCollection with custom properties such as an Image or an extra text field. This is something that we need in almost every project, and it feels strange that there is no "out of the box" solution for this and that it is so hard to find information about how to extend the LinkItemCollection. 

Viewing all 6894 articles
Browse latest View live