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

EPIServer TinyMCE Toggle paste as rich or plain text and Paste from Word

$
0
0

Trying to configure the Tiny MCE for episerver 11 for paste as rich or plain text and Paste from Word but not finding any thing for same.

Can someone provide me the solution for highlighted options to implement in epi server 11.

Thanks,

Rahul Dikkar.


Create Geta.Categories programmatically

$
0
0

Hello,

Does anyone know how to create Geta.Categories programmatically?

https://github.com/Geta/EpiCategories

thank you,

HF

Loading TinyMCE with episerver plugin (epi-link) in module

$
0
0

I'm creating a module for Episerver, and would like to reuse some of the Episerver compoinents.

I can load the ContenSelector-dialog that lets the user select a page from the pagetree like this:

I can load the datetime-pickerlike this:

                require(["epi/shell/widget/DateTimeSelectorDropDown","dojo/dom"
                ], function (
                    DateTimeSelectorDropDown,
                    dom
                ) {
                    datetimepicker = new DateTimeSelectorDropDown(dojoConfig, dom.byId("datetimePicker"));
                    }
                );

Is it possible to load a TinyMCE-editor with the epi-link plugin? I would like to let the editor select from the pagree, when creating links.

How to allow aspx files

$
0
0

I have a website running Episerver CMS hosted in an Azure webapp.

My goal is to display a 404 page when a user goes to www.mysite.com/test.aspx, This works locally on my IIS site, but when deployed to Azure instead of a 404 I get a 500 exception:

System.Web.HttpException (0x80004005): The file '/test.aspx' does not exist. at System.Web.UI.Util.CheckVirtualFileExists(VirtualPath virtualPath
 at System.Web.Compilation.BuildManager.GetVPathBuildResultInternal(VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile, Boolean throwIfNotFound, Boolean ensureIsUpToDate
 at System.Web.Compilation.BuildManager.GetVPathBuildResultWithNoAssert(HttpContext context, VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile, Boolean throwIfNotFound, Boolean ensureIsUpToDate
 at System.Web.Compilation.BuildManager.GetVirtualPathObjectFactory(VirtualPath virtualPath, HttpContext context, Boolean allowCrossApp, Boolean throwIfNotFound
 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.<>c__DisplayClass285_0.<ExecuteStepImpl>b__0(
 at System.Web.HttpApplication.ExecuteStepImpl(IExecutionStep step
 at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)

Any recommendations?

Custm ContentProvider throwing widget.js error after upgrade to episerver 11

$
0
0

Hi.

After upgrading to episerver 11 we are experiencing that one of our contentProviders are getting an error in the widget.js script. The error is this one:
TypeError: this.noDataMessages is null; can't access its "single" property[Learn More]widgets.js:2:558865

The error occures when i try to click on the root folder for the contentprovider, and no data is returned.
I have debugged through the contentprovider LoadChildrenReferencesAndTypes and LoadContent methods, and both are returning what is expected, but still no data in the cms. the initialization class is as follows:

[InitializableModule]
[ModuleDependency(typeof(InitializationModule))]
public class EmployeeDataProviderInitialize : IInitializableModule
{
public void Initialize(InitializationEngine context)
{
var contentRepository = context.Locate.ContentRepository();
var providerManager = context.Locate.Advanced.GetInstance<IContentProviderManager>();

var entryPoint = contentRepository.GetChildren<EmployeeRootFolder>(ContentReference.RootPage).FirstOrDefault();

if (entryPoint == null)
{
entryPoint = contentRepository.GetDefault<EmployeeRootFolder>(ContentReference.RootPage);
entryPoint.Name = EmployeeDataProviderSettings.ProviderDisplayName;
contentRepository.Save(entryPoint, SaveAction.Publish, AccessLevel.NoAccess);
}

var providerValues = new NameValueCollection
{
{ContentProviderElement.EntryPointString, entryPoint.ContentLink.ID.ToString()},
{ContentProviderElement.CapabilitiesString, ContentProviderElement.FullSupportString}
};

var employeeDataProvider = new EmployeeDataProvider();
employeeDataProvider.Initialize(EmployeeDataProviderSettings.Key, providerValues);
providerManager.ProviderMap.AddProvider(employeeDataProvider);

}

}

Has anyone else experienced this after upgrading? it was running on episerver 10.10.1, and are now running episever 11.10.1


In advance thanks for your help.
Best Regards
Pål

data objects instead of pages

$
0
0

Being fairly new to Episerver, I've encounter requirements where we are listing data on a 'front page' that then lets you click each item and drill down for more information, and as is the nature of lists of items, sometimes it feels appropriate to create different 'views' of the data (e.g. 'show me all products suitable for x. y or z', or 'list only yellow items'  etc etc). But up to this point, we've always used 'child pages' for these instances, and then made use of EPiFind or "get children()" methods to then inspect, list or project the data as we need it.

Coming from a more traditional (database heavy) development, if feels like the data we are listing, or drilling down into, should be abstracted away from pages and be handled as data objects themselves.

Bearing in mind the editor experience, and complexity of design (we'd like to keep it simple), have other people encountered this situation, and does anyone have any advice or could recommend some 'best practices' regarding solving this sort of set of requirements?

Fetching Past 30 days Recent orders

$
0
0

Hi All,

I am trying to fetch past 30 days order history(similar to episerver commerce admin functionality). 

I am able to fetch for a particular customer but not able to fetch as whole.

Can you please let me know if there are any existing methods or api's related to it.

Thanks in advance.

Regards,

Manik

Show "submitted from" value in mail

$
0
0

Hi, 

In formsubmission has a coloum "Submitted From", shows which page the user submitted the form from.

I am wondering is it possible to add this information in the mail (Send mail after submission)?

Thanks, 

ChiChing


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?

Page Data info are not coming in search list

$
0
0

Hi All

In one of our applications, We are using google map to locate our customer's location.

We have created a page type (locator) in episerver CMS and getting input like  customer name ,latitude and longitude.

In User side we have search option to find the customers by name, Here we have issue .

Whatever newly created data are not coming in search list .

Coud you please anyone help me

automatic indexing of commerce pages (EventedIndexingEnabled / ScheduledPageQueueEnabled) results in wrong document type

$
0
0

When using scheduled task 'Episerver find content indexing job' commerce pages are correctly indexed with the correct document type :

-EpiWebsite.Models.Commerce.NonConfigurableProduct
-EpiWebsite.Models.Commerce.ConfigurableProduct
-EpiWebsite.Models.Commerce.ProductListCollectionFilter
-EpiWebsite.Models.Commerce.ProductListFilter
-EpiWebsite.Models.Commerce.CompositionBundle
etc.

But when EventedIndexingEnabled / ScheduledPageQueueEnabled is enabled

and I save a commerce page via _contentRepository.Service.Save etc.

Then the pages are automatically indexed with the wrong document type :

EPiServer.Commerce.Catalog.ContentTypes.ProductContent
EPiServer.Commerce.Catalog.ContentTypes.NodeContent

MenuRoot property.

$
0
0

After upgradnig from 7.11 to 11 I have encountered error of missing property of page. I have code like this :

(PageReference)CurrentPage["MenuRoot"]

And property MenuRoot is missing. In old application MenuRoot has value. Question :

Is this property comes from Epi? Because I can't find it in application code. And if it comes which can I use instead?

Have someone encountered this property?

Getting error: Uncaught TypeError: Cannot read property 'indexOf' of undefined after upgrade to Epi 11 and Forms 4.18

$
0
0

We recently upgraded our EPi 10.9 project to Epi 11 latest using the Nuget packages and datbase update. Most of our site looks great locally, but Epi Forms doesn't work at all. Whenver you click any button, you get this error:

WebResource.axd?d=fo49188920000000:2258Uncaught TypeError: Cannot read property 'indexOf' of undefined at validateElement
(WebResource.axd?d=fo49188920000000:2258) at HTMLDivElement.<anonymous>
(WebResource.axd?d=fo49188920000000:2229) at Function.each
(WebResource.axd?d=rQ36749188920000000:2) at n.fn.init.each
(WebResource.axd?d=rQ36749188920000000:2) at validateElementsIn
(WebResource.axd?d=fo49188920000000:2228) at HTMLButtonElement._formSubmissionHandler
(WebResource.axd?d=fo49188920000000:1659) at HTMLButtonElement.dispatch
(WebResource.axd?d=rQ36749188920000000:3) at HTMLButtonElement.r.handle (WebResource.axd?d=rQ36749188920000000:3)

We've tried almost everything. Lots of checking the web.config and the like. No dice.

Has anybody else gotten this?

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;
            }
        }

Get an Episerver Page External URL for redirect back from another site

$
0
0

I need to get the external url of an Episerver page for sending to another website for use in a redirect back to my site. 

Is there built-in functionality to do this, or do I need to create a custom function such as GetExternalUrl(PageReference page)?

The external URL should look like "mysiteurl.com/somepage" instead of the relative "/somepage" URL.

Further Information: my site has the Episerver.Web.Current.SiteDefinition.SiteURL = http://mysiteurl.com, but can be accessed locally using mysiteurl.local via the additional hostname. There is also a * wildcard for scheduled jobs. Will this allow the GetExternalUrl(PageReference page) method to return the relative external link depending on the current site, e.g. if on mysiteurl.local and call GetExternalUrl(page) the link will use the .local external link instead of the .com

Any help would be greatly appreciated.

Thanks,

Peter


How to exclude contentlink id in search result

$
0
0

Hi guys, 

I have a problem when a customer search a product code(Article number) e.g. 1512 in Find.

It included a product which have ContentLink ID 1512 (product code 70405) in search result.

How can I exclude the contentlink id in the search result?

I have the following code:

multiSearch = searchClient.Search<ContentData>()
.For(query)
.FilterByExactTypes(new[] { typeof(Article), typeof(Category), typeof(StandardPage) })
.FilterForVisitor(currentLanguage)
.FilterMarket(new IMarket[] {currentMarket})
.Skip(skip).Take(itemsPerPage).Track().GetContentResult();

Thanks, 

ChiChing

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

$
0
0

Hi, 

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

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

REPLY: automatic indexing of commerce pages (EventedIndexingEnabled / ScheduledPageQueueEnabled) results in wrong document type

$
0
0

This is a reply to existing forum post.
the submit button at the bottom of the page doesn’t work for me, I get an error (IE/Chrome/Firefox)
An invalid form control with name='Body' is not focusable.

so I added a new topic for the reply (sorry) :

---------------------

namespace EpiWebsite.Models.Commerce

[CatalogContentType(GUID = "69528e40-2926-48df-85ab-....", MetaClassName = "ConfProduct", Description = "Configurable Product", DisplayName = "Configurable Product", GroupName = "")]

public class ConfigurableProduct : ProductContent, IArticle

.....

create a new commerce page of above page type :

then use _contentRepository.Service.Save (newPage)

page is added correctly to catalog, with the correct page type.

 

EventedIndexingEnabled  is enabled, so this page is automatically added to find index

when I go to find\overview page

I see the new page, but with the wrong page type:

 EPiServer.Commerce.Catalog.ContentTypes.ProductContent

 
It should look like below, which is what happens when I do a manual  reindex via 'Episerver find content indexing job'  

 Document Types

The index contains 50774 documents mappable to .NET objects. These are of 28 different types.

Type Count

EpiWebsite.Models.Commerce.ConfigurableProduct, EpiWebsite 17272

when EventedIndexingEnabled  is false, then no page is added to the search index (as expected)


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?

Write plugin that gets called on every page load

$
0
0

Hi,

I want to write a plugin that is executed for each call to a page (non admin).

Is that possible?

Kind regards,

Sascha

Viewing all 9642 articles
Browse latest View live