Comments for izabelawlodarska.com https://izabelawlodarska.com Follow me for architecture, .net, sitecore and software engineering tips Wed, 16 Mar 2022 11:31:51 +0000 hourly 1 https://wordpress.org/?v=6.9.4 Comment on Elegant one-line way to use TryParse by TPAKTOPA https://izabelawlodarska.com/2018/04/15/elegant-one-line-way-to-use-tryparse/comment-page-1/#comment-23 Wed, 16 Mar 2022 11:31:51 +0000 http://www.izabelawlodarska.com/?p=225#comment-23 thank you, I use this construction:

.int value= int.TryParse(valueToParseFromString, out value) ? value: 0;.

]]>
Comment on Getting started with Unicorn serialization for Sitecore Experience Accelerator (SXA) – part 2 by betgopa https://izabelawlodarska.com/2019/01/07/getting-started-with-unicorn-serialization-for-sitecore-experience-accelerator-sxa-part-2/comment-page-1/#comment-12 Tue, 18 Jan 2022 12:48:10 +0000 http://www.izabelawlodarska.com/?p=304#comment-12 Awesome !

]]>
Comment on Elegant one-line way to use TryParse by DevD https://izabelawlodarska.com/2018/04/15/elegant-one-line-way-to-use-tryparse/comment-page-1/#comment-9 Thu, 11 Nov 2021 17:56:14 +0000 http://www.izabelawlodarska.com/?p=225#comment-9 This is still great, use it all the time! Only thing that’s changed that can make this one-liner more elegant is by removing the ‘int value’ declaration before the parse, add the ‘int’ datatype to the out variable ie:

if (!int.TryParse(valueToParseFromString, out int value)
value = 0;

//dostuffwithvaluenow

]]>
Comment on Getting started with Unicorn serialization for Sitecore Experience Accelerator (SXA) – part 2 by Benj Bayfield https://izabelawlodarska.com/2019/01/07/getting-started-with-unicorn-serialization-for-sitecore-experience-accelerator-sxa-part-2/comment-page-1/#comment-7 Thu, 10 Sep 2020 16:35:46 +0000 http://www.izabelawlodarska.com/?p=304#comment-7 This is an excellent article, thanks for posting it! I’m looking to set up something very similar.

In the time since writing this have you had to adapt your approach at all, or is it still sound?

Once again, thanks for sharing this.

]]>
Comment on Getting started with Unicorn serialization for Sitecore – Part 1 by Izabela Wlodarska https://izabelawlodarska.com/2018/11/24/getting-started-with-unicorn-serialization-for-sitecore/comment-page-1/#comment-6 Sun, 01 Dec 2019 20:48:18 +0000 http://www.izabelawlodarska.com/?p=254#comment-6 In reply to Tofu.

Yes, you have two different configurations: Content-Data and Content-Data-Configuration which are trying to serialize the same item (/sitecore/content/Data/Configuration). This is not supported and the solution is to remove this path from one of the configurations then reserialize. The path may not be referenced directly in both configurations – e.g. you could include the parent path with children in one of them and directly in the other one and that’s why it’s included twice. I hope this helps!

]]>
Comment on Getting started with Unicorn serialization for Sitecore – Part 1 by Tofu https://izabelawlodarska.com/2018/11/24/getting-started-with-unicorn-serialization-for-sitecore/comment-page-1/#comment-5 Sun, 01 Dec 2019 20:36:11 +0000 http://www.izabelawlodarska.com/?p=254#comment-5 Hi, do you happen to know what might cause this error?

The trees Content-Data and Content-Data-Configuration both contained the global path /sitecore/content/Data/Configuration – overlapping trees are not allowed.

I am trying to install a package from production copy.

]]>
Comment on Elegant one-line way to use TryParse by Brent https://izabelawlodarska.com/2018/04/15/elegant-one-line-way-to-use-tryparse/comment-page-1/#comment-4 Fri, 31 May 2019 14:22:37 +0000 http://www.izabelawlodarska.com/?p=225#comment-4 No longer required. Variable declaration can now be used within TryParse.

https://docs.microsoft.com/en-us/dotnet/csharp/whats-new/csharp-7#out-variables

]]>
Comment on Setting custom field as Browser Title in SXA by JP https://izabelawlodarska.com/2019/01/03/setting-custom-field-as-browser-title-in-sxa/comment-page-1/#comment-3 Thu, 21 Feb 2019 03:51:54 +0000 http://www.izabelawlodarska.com/?p=355#comment-3 This is gold – thanks!!

]]>