1/15/2013

Programming in DotNetNuke 101 - Introduction to Razor Syntax - Part 1/3

 

6 min : 8 sec

Who said it's hard to develop in DNN? This video series will introduce you to the Razor syntax and how to use it on DotNetNuke. The Razor syntax is used via the RazorHost module and it is a great way to create your own modules quickly and without the need to go all the way in the more advanced techniques that you would have to use to create modules for DNN. This is part 1 of 3.

Programming 101 - Razor Syntax

6 min : 8 sec

Who said it's hard to develop in DNN? This video series will introduce you to the Razor syntax and how to use it on DotNetNuke. The Razor syntax is used via the RazorHost module and it is a great way to create your own modules quickly and without the need to go all the way in the more advanced techniques that you would have to use to create modules for DNN. This is part 1 of 3.

User Details:

  • UserID: @Dnn.User.UserID
  • Username: @Dnn.User.Username
  • DisplayName: @Dnn.User.DisplayName
  • FirstName: @Dnn.User.FirstName
  • LastName: @Dnn.User.LastName
  • Email: @Dnn.User.Email
  • IsSuperUser: @Dnn.User.IsSuperUser
  • Biography: @Dnn.User.Profile.GetPropertyValue("Biography")

Module Details:

  • Name: @Dnn.Module.ModuleTitle
  • Id: @Dnn.Module.ModuleID
  • Type: @Dnn.Module.ModuleDefinition.FriendlyName

Page Details:

  • Name: @Dnn.Tab.TabName
  • Id: @Dnn.Tab.TabID
  • Path: @Dnn.Tab.TabPath

Site Details:

  • Name: @Dnn.Portal.PortalName
  • Id: @Dnn.Portal.PortalId
  • Alias: @Dnn.Portal.PortalAlias