Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9270187
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T15:18:27+00:00 2026-06-18T15:18:27+00:00

I am setting up a new Umbraco site – this is the first time

  • 0

I am setting up a new Umbraco site – this is the first time I have used Umbraco and was wondering how to get the generic properties for the node back as the type I set them as.

For example, I have created a generic property of includeSubNav which I have set to a type of true/false. To access this property I am calling

Node.GetCurrent().getProperty("includeSubNav").Value

My question is, is this the correct way to get the property? If so why is the .Value always returned as a string as in this instance a “1” isn’t very helpful as I can’t parse this as a boolean, which means I have to use an if statement to see if it is “1” which I just find quite dirty

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-18T15:18:28+00:00Added an answer on June 18, 2026 at 3:18 pm

    Because Umbraco is using an XML file which contains the complete content tree (for speed purpose), all values are converted to strings. When you read data from Node, you are using the NodeFactory which uses the XML file.

    The GetProperty method is the correct way to read properties and indeed returns all values as string and in case of a boolean, you need to use a .Equals("1") function or convert it to a Bool.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I made new document type in umbraco.then made some node by this document type
I'm setting up a new project and have gotten NHibernate to work with structuremap...sorta.
We're setting up a new project and I was wondering if hstore (nosql/key=>value) would
When you run perl -e "Bla->new" , you get this well-known error: Can't locate
I have a DIV containing text. Previously I just tried setting new HTML like
I have a problem with setting new frame to uiview object. here is my
I'm new to umbraco and have recently downloaded visual studio with the objective of
This my code for setting new cookie Cookie citizen = new Cookie(citizen,email); citizen.setMaxAge(3600); response.addCookie(citizen);
Setting up new git installations. On one Windows laptop, I'm running (under cygwin): git
How to view all the content in my IsolatedStorageFile by setting a new page

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.