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

Get content that is available in the currently selected language?

$
0
0

We have a block that pulls in content and displays it on our page. Right now, no matter what language I select in our language switcher, this is not being honored by our block.

As I am new to EpiServer and C# I think I have identified the following line of code as being the one that pulls in the data?

ServiceLocator.Current.GetInstance<IContentLoader>();

Can I rewrite this to only get content in the language that is currently selected by the user?

Thank you for any help.


Authentication from both SSO SAML IDP for certain users and Episerver for the rest

$
0
0

I am trying to implement SAML 2.0 identity authentication of commerce members from IDP. My requirement is to authenticate users from few countries from IDP and the rest from EPiServer. How to achieve this?

Does consuming another EPiServer site's content require an extra license?

$
0
0

Hi!

 A friend of mine told me that if I have a non-EPiServer website which consumes content from an EPiServer website, then an extra EPiServer-license is required. Is this true?

 Lets say I have a scenario like the following:

 I have an EPiServer site with cooking recipes called EPiCookingRecipes. On each site page there's a cooking recipe.

 Now a friend of mine has another site, NonEPiCookingRecipes, which is a simple ASP.NET MVC site not using EPiServer at all.

 In the EPiCookingRecipes site, I build a Web API exposing all recipes for use by my friend on his NonEPiCookingRecipes site.

 My friend - on his NonEPiCookingRecipes site - consumes API-data in the form of cooking recipes from my EPiCookingRecipes site.

 Would this require an extra EPiServer license?

 

If yes, can someone point me to the place where this is provided in the license agreement?

Azure AD setting access within episerver

$
0
0

Hi All,

I have changed our authentication to connect to Azure AD. I've followed all of the instructions on OWIN security but am having an issue with "set access" within the CMS.

I can authenticate and login to the CMS as WebAdmins, but when I go to admin-> set access and search groups, it only returns the AD groups that I am a member of, not all of the groups, which is what we need to allocate access.

Any ideas?

Thanks,

Paul

Frequency of EpiServer Scheduler?

$
0
0

We have implemented a scheduled job that checks for new items in an external datasource and adds any new items to the Episerver Find Index. Since the external feed isn't updated very often this job takes <1s to run most of the time.

Even though the external datasource seldom updates it's important that new items are updated quickly and because of this we've tried to set a very high frequency on the scheduled job. At the moment we've tried running the job every 10-15 seconds. This however, isn't really working and most of the time the job runs around once per 70 seconds.

Is there any way to increase the frequency of the scheduler in EpiServer to allow for more frequent job execution?

UnifiedSearchHit, i want more details about my hits

$
0
0

When implementing a global search using Unified search i get a list of UnifiedSearchHit as a searchresult. Most of the properties in UnifiedSearchHit is useful to me but i would like to add a few more.

I know i can customize the data in the UnifiedSearchHit by using a Custom projection or by giving the different types different implementations of ISearchContentproperties

Is it possible to achive this somehow?

CatalogManagement DateTime error

$
0
0

Hello everyone,

I am new in EpiServer. I use quicksilver and I faced interesting issue. I added Delivery Date property to my FashionVariant class.

I would like to show delivery date property on my product listing page. I also added metafield to according metaclass.

When I try edit some product details and also adding delivery date manually,by the end I got this exception at the below.

DateTime issue

Thanks in advance for any help.

problem with promotionEngine.Evaluate() when using custom promotion.

$
0
0

Hi Team, 

 when I am trying to use evaluate method to display promotion detail in the product listing page.

My custom promotion logic: In my custom promotion filtered the line items based on the required quantity(line items should > than required qty)

My problem: I am using  PromotionEngine.Evaluate(contentLink...) method to find the product has a promotion or not. But as per our custom logic promotion is not applied to the products.

So based on the OrderGroup type(cart, InMemoryOrderGroup) can I skip my filter?

Is this the right way to do or else any suggestions are welcome.


To detect if "Visible in Menu" (Display in Navigation) property is updated

$
0
0

I am currently working on Episerver CMS 10.
The structure of our website is suct that it contains global page and local page.


Local page inherits some of the content of global page.

We have inherit factory class which updates the local page if some changes are made in global page .

The issue I am facing is

I have "visible in menu"(Display in navigation) option which is a bool property in both pages.


so when the checkbox is checked or unchecked in global

of "Visible in menu" then only update the local page.

how can we detect if the "visible in menu" (display in navigation) is changed  then update the

local page ?

developer documentation for Episerver 6

$
0
0

I have just been tasked with making some changes to an Episerver 6 site which is still in operation. I learned on Episerver 7.5 and have only had 7.5 and above experience, and I cannot find any information on how to develop for 6 - can anyone help me? I just need to create a new page, but do i do it first in the CMS, or in Visual Studio, and how does one know about the other?

Thanks,

Marshall

problem with promotionEngine.Evaluate() when using custom promotion.

$
0
0

Hi Team, 

 when I am trying to use evaluate method to display promotion detail in the product listing page.

My custom promotion logic: In my custom promotion filtered the line items based on the required quantity(line items should > than required qty)

My problem: I am using  PromotionEngine.Evaluate(contentLink...) method to find the product has a promotion or not. But as per our custom logic promotion is not applied to the products.

So based on the OrderGroup type(cart, InMemoryOrderGroup) can I skip my filter?

Is this the right way to do or else any suggestions are welcome.

Creating customer groups programtically

$
0
0

Hi, 

I am trying to look for way to add a new customer group programatically. I dont see any examples, does anybody have any idea about this? I want to update pricing based on customer groups, and if new customer groups are passed in the file I should create them.

Customize promotions engine

$
0
0

Hi,

I am working on Commerce 12.15.0, we have a requirment to calculate the promotions on Regular price and not the placed price. For example:

SKU 001 has a Regular Price $10 and Sale Price $8. Upon entering a valid coupoun the discount is currently applied on the placed price which is $8 by default. But the client wants to apply the discount on Regular price and then honor the lowest price between the two (Discounted Regular Price and Sale Price). So if the Discount is 50% off, then the Discount is applied to regular price which makes it $5 and then compare the Discounted Regular Price and Sale Price and take the lowest price between the two.

So should I have my own implementaton of the IPromotionEngine interface or should I create a new promotions processor? This is my first time working with promotions, I apprecite any ideas on how to approach this.

How to get epi style controls on admin page?

$
0
0

Hi!
I have done a plug-in for episerver, using Razor views. It uses admin page to display settings.
I want to display those settings using epi styles, used on every admin page. I am using those styles by getting them from episerver:

@Html.Raw( Html.ShellCssLink( "ClientResources/epi/themes/legacy/system.css" ) )
@Html.Raw( Html.ShellCssLink( "ClientResources/epi/themes/legacy/ShellCore.css" ) )
@Html.Raw( Html.ShellCssLink( "ClientResources/epi/themes/legacy/ShellCoreLightTheme.css" ) )

But now, to have basic control that looks like the rest of epi, like the epi Save button, I need to reconstruct it's classes in html like this:

<div class="epi-buttonContainer">
<span class="epi-button">
<span class="epi-button-child">
<input class="epi-button-child-item" id="saveSettingsButton" type="submit" value="Save" form="botform">
</span>
</span>
</div>

Unfortunetly I could not find a class that would contruct those for me.

Does episerver have a helper class that does this automatically?  Like Asp helpers, for example @html.Label()?

Labels in EPI server forms

$
0
0

Hi,

I wonder how to place a label without a text area in EPI server forms, just a text label, any idea? Also I wonder why my captcha is letters not a check box? My episerver is 7.5


When a block or media item is published get all pages using the block or media item

$
0
0

Hi,

I need to get all the pages that use a block or media item when that block or media item is published. I can hook into the publish event ok and I can get pages using

var repository = ServiceLocator.Current.GetInstance<IContentRepository>();
var references = repository.GetReferencesToContent(e.ContentLink, true).ToList();

However if a block is nested within a block the above will only get the parent block and not the page where the parent block is used. Similarly if a block was nested several times then it would only get the immediate parent.

Has anyone done anything similar in the past to get the ultimate page using the block?

Thanks,

Mark

Images with in Editorial block doesn't take alt text value from Image file.

$
0
0

Each image file is associate with fields Alternative text and Copyright text. Even though alternative text value is specified for image file, when it is added within editorial block it doesn't take alt text value from image file, but it takes it value from image description field within insert / edit image widget we have in rich text editor. Can anybody help me with this behaviour of Episerver editorial block?

Error message when creating discount

$
0
0

When creating a discount in episerver back office I recieve the following error: Content with id '11663 is of type 'Castle.Proxies.SalesCampaignProxy' which does not inherit required type 'EPiServer.Commerce.Catalog.ContentTypes.CatalogContentBase

The discount is anyway created and works as expected. When I decompile SalesCampaign I can se that it inherits from BasicContent. 

Has someone encountered this error before?

Thanks in advance.

Fast way to delete a catalog

$
0
0

We have a catalog with almost 20.000 products and 60.000 variants with about 30 metafields each. 

Also we have 600 types of properties for the products that we decided to store separatelly from the EPi metafields in order to speed the queries (a product has only about 10 properties of those 600)

Now we want to delete the catalog and reimport the data on the integration server, but deleting from Catalog UI takes a long time. Is there a way to make it faster or do you have another suggested approach?

Thank you

Customizing Tinymce for multi-site solution

$
0
0

I have a client with a multi-site solution that wants to update to newer verison of tinymce and I'm hitting a snag. In their multi-site solution, there are multiple tinymce settings configured, which are then applied to each and every XhtmlString property in the solution. Largely these are to alter the ContentCss property for customized style dropdowns. I'm not seeing a way to handle this other than manually configuring each and every property for each and every content type in the solution. Is there some way to configure the settings for a Content type as a whole (without specifiying the properties) and then allow that to be inherited? Otherwise, is there some bit or reflection magic that I can do to accomplish this, or am I stuck doing this the hard way?

Viewing all 6894 articles
Browse latest View live