Blog
Paul Seal's personal blog
Blog posts
This post shows you how to create an XML sitemap in your Umbraco website. I will share the code I have used to create my XML sitemap page http://www.codeshare.co.uk/xmlsitemap You will need an XML sitemap when you submit your site to search engines.
umbraco Create a redirect page in Umbraco without editing the config fileIf you or your client needs to be able to create short urls or links to other sites without wanting to add it as a redirect in the web config, then this is the post for you. You can create them as umbraco pages that act as fast links or redirects.
dev Font Awesome Social Share Icon LinksYou may have noticed the links on my site after each article which let you share the article on social sites like Facebook and Twitter etc. This post gives you the code I used for the icons on my site. Font gives you access to hundreds of icons, and allows you to stack them on top of eachother to create different icons. In this code example you will see I stacked the twitter icon on top of a circle and did the same for the other links.
dev jQuery copy values from one set of textboxes to anotherIf you ever wanted a simple bit of jQuery to copy values from one set of texboxes, to another set of texboxes, this is the post for you. This is useful for copying billing address details over to the shipping address. I looked everywhere for a post like this to give me the answer, so now that I solved it myself, I created the post for others who are looking for the same answer.
dotnet Sorting a list into random order using linqEvery now and again, there is a need to produce a list in a random order. I've found a very reliable way to do this using linq and the Guid class. It might sound complicated, but when you see the example, it should make sense and you should see how simple it is.
dotnet List ForEach MethodYou may or may not be aware of the .ForEach() Method which is available on List<T> objects. It is very handy for shortening your code. Lets say you want to write a method which returns a list of MailAdress objects. A more traditional way would be to do the following:
umbraco Umbraco Alternate Template Feature (bug)There is an annoying feature in Umbraco which, when not wanted, seems like a bug. If you want to view a page with a different template, you can enter the url/templateAliasName
dotnet Null-coalescing OperatorShorter code for using the value of a nullable object or another value if not.
umbraco Allow any markup in the TinyMCE editorIf, like me, you find it very annoying that Umbraco seems to stop you from entering whatever markup you want to put in the editor, then this post should help you.