Showing posts with label Umbraco. Show all posts

How to generate pkcs12 certificate on windows?

Open a command prompt and go to the bin directory under the installation directory.   To create the private certificate type: “openssl genrsa –out private-key.pem 1024” and press [Enter]. For the public certificate type: “openssl req.
Thursday, 13 November 2014
Posted by Jebastin

Razor Code and Configuration for Umbraco Examine Search

Examine allows you to index and search data easily and wraps the Lucene.Net indexing/searching engine. Lucene is super fast and allows for very fast searching even on very large amounts of data. Examine is provider based so is very extensible and.
Posted by Jebastin

Send Email in Umbraco

Instead using the ASP.Net email sending code, we can use the following code to send email in Umbraco web applications. Web.Config Configuration: Gmail SMTP Settings: <system.net>    <mailSettings>      .
Thursday, 25 September 2014
Posted by Jebastin

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 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.
Posted by Jebastin

How to get the Created & last Published date of a Node in Umbraco?

Using the following CSHTML code we can easily get the Created & last Published date of a Node in Umbraco. To get the Created Date of an Umbraco Node: @Model.CreateDate To get the Last Published Date of an Umbraco Node:  @Model.UpdateDa.
Tuesday, 21 January 2014
Posted by Jebastin

How to check whether an Umbraco Node has children or not?

The following Razor code is used to check whether an Umbraco Node has children or not. bool hasChildren = (Model.ChildrenAsList.Count() > 0); if(hasChildren) {     //code } else {     //code   }.
Tuesday, 7 January 2014
Posted by Jebastin

Razor function to fetch the Data Type Items in Umbraco

The following Razor function is used to fetch the Data Type Items in Umbraco. Namespaces Required: using System.Xml.XPath;using umbraco.MacroEngines; @functions{     public List<string> FetchDataTypeItems(int DataTypeNodeID)    .
Monday, 6 January 2014
Posted by Jebastin

Web Service to filter the Umbraco Nodes

Web Service to filter the Umbraco Nodes The following WebMethod is used to filter the Umbraco child nodes of a particular parent node using the given parent id by the parameters Keyword, Job Type, Position, Location, Category and Division. Web Method: public.
Saturday, 14 December 2013
Posted by Jebastin

How to insert values in SQL Server database table using Umbraco?

Required Namespaces: using umbraco; using umbraco.BusinessLogic; using umbraco.DataLayer; C# Code: public bool InsertData(string FirstName, string LastName, string Email, string Phone) { bool IsSuccessful = false; try { string InsertQuery = "INSERT.
Posted by Jebastin

How to find the Document Type Alias of the First Child Node using Razor?

To find the Document Type Alias of the First Child Node using Razor. @Model.Children.First().NodeTypeAlias.
Thursday, 12 December 2013
Posted by Jebastin

Link To This Post/Page

Spread The Word

Add this button to your blog:
JJ Technology Solutions

Blog Archive

Trackers

eXTReMe Tracker
facebook

- Copyright © 2025 JJ Technology Solutions - Powered by Source Code Solutions -