<?xml version="1.0" encoding="utf-8"?><feed xmlns="http://www.w3.org/2005/Atom"><title type="text">Blog posts by FernandoNunes</title><link href="http://world.optimizely.com" /><updated>2021-02-01T11:29:17.0000000Z</updated><id>https://world.optimizely.com/blogs/fernandonunes/</id> <generator uri="http://world.optimizely.com" version="2.0">Optimizely World</generator> <entry><title>Change Order Number generator</title><link href="http://episerveradventures.com/?p=254" /><id>By default, the orders numbers are generated by an instance of EPiServer.Commerce.Order.IOrderNumberGenerator. The default number generation is: So, to change this, first we need to inject a custom implementation and remove the default one. On an initialization module that depends on EPiServer.Web.InitializationModule have the following: And my custom order generator, can be like this:</id><updated>2021-02-01T11:29:17.0000000Z</updated><summary type="html">Blog post</summary></entry> <entry><title>Add migration step with sql script</title><link href="http://episerveradventures.com/?p=238" /><id>Scenario: Wanted to add a new schema, table and stored procedure to the same database where CMS is installed. The script should run only once after deployment to an environment. Using IMigrationSet can do this job, although is different from a Initialization Module that run every time the site starts up. Interface IMigrationStep documentation: https://world.episerver.com/csclasslibraries/commerce/EPiServer.Commerce.Internal.Migration.Steps.IMigrationStep?version=13&lt;a class=&quot;more-link&quot; href=&quot;https://episerveradventures.com/2020/11/02/add-migration-step-with-sql-script/&quot;&gt;Continue reading &lt;span class=&quot;screen-reader-text&quot;&gt;&quot;Add migration step with sql&amp;#160;script&quot;&lt;/span&gt;&lt;/a&gt;</id><updated>2020-11-02T23:02:47.0000000Z</updated><summary type="html">Blog post</summary></entry> <entry><title>Missing &quot;For all sites&quot; folder</title><link href="http://episerveradventures.com/?p=231" /><id>Even with access rights correctly in place, the &amp;#8220;For all sites&amp;#8221; folder did not appear. So, went to the Website settings at Admin, and remove the check on &amp;#8220;Use site-specifics assets&amp;#8221;, save and recheck again to true. It worked for me, and the images appeared again &#128521;</id><updated>2020-09-24T15:01:28.0000000Z</updated><summary type="html">Blog post</summary></entry> <entry><title>Download images from assets from HTML Anchor tag</title><link href="http://episerveradventures.wordpress.com/?p=224" /><id>Suppose the front end code wants supply a way to download images from the assets folder. Consider the following code: Assuming that 127.0.0.1:5500 is your EPiServer instance, you can say that the image will be downloaded. Note that download anchor attribute will work if the url is from the same origin of the http request.&lt;a class=&quot;more-link&quot; href=&quot;https://episerveradventures.com/2020/09/02/download-images-from-assets-from-html-anchor-tag/&quot;&gt;Continue reading &lt;span class=&quot;screen-reader-text&quot;&gt;&quot;Download images from assets from HTML Anchor&amp;#160;tag&quot;&lt;/span&gt;&lt;/a&gt;</id><updated>2020-09-02T14:02:54.0000000Z</updated><summary type="html">Blog post</summary></entry> <entry><title>CMS New Page context menu not enabled</title><link href="http://episerveradventures.wordpress.com/?p=212" /><id>Creating a new page under root&amp;#8217;s page site, the New Page menu was disabled. So, checked the available languages for the site and the master language was not set: Checked the English language and also check the language setting for the root page site. And now, the New Page was available.</id><updated>2020-04-17T12:36:37.0000000Z</updated><summary type="html">Blog post</summary></entry> <entry><title>Missing Group on &amp;#8220;Set Access Rights for &amp;#8216;Page&amp;#039;&amp;#8221;</title><link href="http://episerveradventures.wordpress.com/?p=205" /><id>Context: Episerver authentication integrated with Azure Active Directory B2C; A fresh installation of Episerver; Virtual roles configured to map Roles configured on AD; Logged only with an account that was mapped for a AD role named &amp;#8216;SpecialMegaRole&amp;#8217; &#128521; Another virtual role was mapped for an AD role named &amp;#8216;NotSoSpecialRole&amp;#8217; Objective : Set the access rights&lt;a class=&quot;more-link&quot; href=&quot;https://episerveradventures.wordpress.com/2020/04/17/missing-group-on-set-access-rights-for-page/&quot;&gt;Continue reading &lt;span class=&quot;screen-reader-text&quot;&gt;&quot;Missing Group on &amp;#8220;Set Access Rights for &amp;#8216;Page&#39;&amp;#8221;&quot;&lt;/span&gt;&lt;/a&gt;</id><updated>2020-04-17T08:56:55.0000000Z</updated><summary type="html">Blog post</summary></entry> <entry><title>Add Metafields to OrderSummary view</title><link href="http://episerveradventures.wordpress.com/?p=184" /><id>I need to add extra information on each LineItem of the order. But also to see it on the OrderSummary view on the Commerce UI. Please comment if i can implement a better solution than following approach, because i thought that it could be a fast solution by changing the xml file were we define&lt;a class=&quot;more-link&quot; href=&quot;https://episerveradventures.wordpress.com/2020/01/23/add-metafields-to-ordersummary-view/&quot;&gt;Continue reading &lt;span class=&quot;screen-reader-text&quot;&gt;&quot;Add Metafields to OrderSummary&amp;#160;view&quot;&lt;/span&gt;&lt;/a&gt;</id><updated>2020-01-23T11:00:43.0000000Z</updated><summary type="html">Blog post</summary></entry> <entry><title>Add Metafields to OrderSummary view</title><link href="http://episerveradventures.wordpress.com/?p=184" /><id>I need to add extra information on each LineItem of the order. But also to see it on the OrderSummary view on the Commerce UI. Please comment if i can implement a better solution than following approach, because i thought that it could be a fast solution by changing the xml file were we define&lt;a class=&quot;more-link&quot; href=&quot;https://episerveradventures.wordpress.com/2020/01/23/add-metafields-to-ordersummary-view/&quot;&gt;Continue reading &lt;span class=&quot;screen-reader-text&quot;&gt;&quot;Add Metafields to OrderSummary&amp;#160;view&quot;&lt;/span&gt;&lt;/a&gt;</id><updated>2020-01-23T11:00:43.0000000Z</updated><summary type="html">Blog post</summary></entry> <entry><title>The view &#39;index&#39; or its master was not found or no view engine supports the searched locations. From IISExpress to IIS</title><link href="http://episerveradventures.wordpress.com/?p=162" /><id>Consider the following scenario: Developing with debug compilation and using IIS Express. Everything works fine without license. Episerver allows development under those circumstances. But if you deploy to a new IIS site or even to Azure web app and you set compilation without debug, because you probably published with Release configuration: The site will show [&amp;#8230;]</id><updated>2019-10-25T00:22:48.0000000Z</updated><summary type="html">Blog post</summary></entry> <entry><title>Start from empty folder to a running Episerver CMS and ECommerce</title><link href="http://episerveradventures.wordpress.com/?p=70" /><id>Assumptions: this post was written at 23/10/2019 with Visual Studio 2019 and Episerver CMS Visual Studio Extension version 11.5.0.412. The idea is to create a running empty site with CMS and ECommerce. Ensure that you have Episerer nuget feed configure to https://nuget.episerver.com/feed/packages.svc/ Lets create a new empty Episerver CMS site: With this we start to [&amp;#8230;]</id><updated>2019-10-24T13:38:17.0000000Z</updated><summary type="html">Blog post</summary></entry> <entry><title>Setting icons for content types</title><link href="http://episerveradventures.wordpress.com/?p=63" /><id>When creating new types instances, such as pages or blocks, we get a lot of help from the CMS UI identifying which type we want. But, to offer better experience to the editors, it would be much nice that these types could be present with an image. Episerver recomend 120&amp;#215;90 dimention for each icon, but [&amp;#8230;]</id><updated>2019-10-01T13:13:14.0000000Z</updated><summary type="html">Blog post</summary></entry> <entry><title>Sharing properties between content types, and action methods between controllers</title><link href="http://episerveradventures.wordpress.com/?p=47" /><id>It is a good idea to provide derived types from the Episerver content types PageData, BlockData and MediaData to share common properties among all the pages on the site. We should also consider to use that also on the controllers. Considering the class diagram: We can start to implement the Base[Classes] and Standard and Start [&amp;#8230;]</id><updated>2019-09-30T11:25:34.0000000Z</updated><summary type="html">Blog post</summary></entry> <entry><title>Update an existing page property</title><link href="http://episerveradventures.wordpress.com/?p=41" /><id>Using methods from IContentLoader or IContentRepository to get existing data, it will be returned as read-only version. If you try to update and save it, you will get a ReadOnly exception, although the model has the public set available Since the API assume that most of the time are read operations, than it shares the [&amp;#8230;]</id><updated>2019-09-24T17:54:01.0000000Z</updated><summary type="html">Blog post</summary></entry> <entry><title>Add Episerver site from scratch</title><link href="http://episerveradventures.wordpress.com/?p=18" /><id>Settings: Visual studio 2019 Version 16.1.3 Episerver CMS Visual Studio Extension Installed 11.6.0.421 Episerver NuGets package source configure to https://nuget.episerver.com/feed/packages.svc/ Open Visual Studio and create a new Episerver project. Select Empty Project After press OK, you will have a new solution with a web project on it. The connection string to a database is set [&amp;#8230;]</id><updated>2019-09-24T10:19:09.0000000Z</updated><summary type="html">Blog post</summary></entry> <entry><title>Default Schedule jobs from empty Episerver Visual Studio Project</title><link href="http://episerveradventures.com/?p=46" /><id>After creating the project with Empty Episerver site using Episerver CMS Visual Studio Extension version 11.4.0.370, updated the EPiServer.CMS Nuget packages to version 11.10.1 and checked the default schedule jobs that were defined: The default scheduled jobs that are out of the box and their configuration are: Link Validation (Inactive) Checks links on the website &amp;#8230; &lt;p&gt;&lt;a href=&quot;https://episerveradventures.com/2018/09/20/default-schedule-jobs-from-empty-episerver-visual-studio-project/&quot; class=&quot;more-link&quot;&gt;Continue reading &lt;span class=&quot;screen-reader-text&quot;&gt;Default Schedule jobs from empty Episerver Visual Studio&amp;#160;Project&lt;/span&gt;&lt;/a&gt;&lt;/p&gt;</id><updated>2018-09-20T14:23:48.0000000Z</updated><summary type="html">Blog post</summary></entry> <entry><title>Missing Geographic Coordinate and Location</title><link href="http://fernandonunesepiserver.wordpress.com/?p=28" /><id>During Bootcamp exercise A4, is demanded to create a new Visitor Group for personalization. But the Geographic Location was not present. Only Time of Day was present. EPiServer.GoogleAnalytics add-on was not installed or configured. So, checked the settings for GoogleAnalytics and also not present. To have it available on Tools Settings, i have added thought &amp;#8230; &lt;a href=&quot;https://fernandonunesepiserver.wordpress.com/2018/09/18/missing-geographic-coordinate-and-location/&quot; class=&quot;more-link&quot;&gt;Continue reading &lt;span class=&quot;screen-reader-text&quot;&gt;Missing Geographic Coordinate and&amp;#160;Location&lt;/span&gt;&lt;/a&gt;</id><updated>2018-09-18T15:57:04.0000000Z</updated><summary type="html">Blog post</summary></entry> <entry><title>Episerver CMS Bootcamp</title><link href="http://fernandonunesepiserver.wordpress.com/?p=3" /><id>Hi all, at 17/09/2018 I started Episerver CMS Bootcamp online. This blog will serve to write all the difficulties that i had and what were their solutions. Disclaimer. The logo image of this blog is the Episerver logo and not my creation.</id><updated>2018-09-18T11:19:35.0000000Z</updated><summary type="html">Blog post</summary></entry></feed>