Archive for August 2014
Generic Handler to Unpublish Past Events in Umbraco
The following Generic Handler (C#) is used to unpublish the past/old Events automatically after it's expiration date in Umbraco.
Source Code:
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Configuration;
using.
Thursday, 7 August 2014
Posted by Jebastin
How to Use CDATA in XML?
All text in an XML document will be parsed by the parser.
But text inside a CDATA section will be ignored by the parser.
XML parsers normally parse all the text in an XML document.
When an XML element is parsed, the text between the XML tags is also.
C# Code to implement Google Analytics Tracking Script dynamically
In general we track a page using JavaScript statically. This C# code is used to implement Google Analytics Tracking Script dynamically for every page we want to do it.
Source Code:
using System;
using System.Collections.Generic;
using System.Configuration;
using.
How to remove the trailing directory slash from the URL?
It's possible to configure Umbraco to remove the final trailing
slash on the URL. If you want to do this, locate the
'umbracoSettings.config' file. This can be found in the
'webroot\config\' directory of your site.
Open this file and locate the.
Wednesday, 6 August 2014
Posted by Jebastin
How to remove the .ASPX extension from the URL?
First of all, to configure Umbraco to show URL's without the .aspx
extension, you're going to need to locate the 'umbracoUseDirectoryUrls'
setting in the ' appSettings' section of the 'web.config' file for your
site.
<appSettings><add.