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

  • Home
  • SEARCH
  • 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 7756525
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T12:50:46+00:00 2026-06-01T12:50:46+00:00

This is about to drive me completely insane! I’ve done this before and I

  • 0

This is about to drive me completely insane!

I’ve done this before and I know it should work and it’s supposed to be straightforward.

I’ve created a macro which is like this

@inherits umbraco.MacroEngines.DynamicNodeContext
@{
    string ParameterName = Parameter.Name;
    <span>@ParameterName</span>
 }

and on the page:

<umbraco:macro Alias="MasterpageParameter" language="cshtml" runat="server" Name="logoText"></umbraco:macro>

The macro registers successfully (because I can print other data on the screen and in thise case I can see the gets printed otu) but the Parameter is always empty. I’ve tried lower case, other names (e.g Param1 Param2 etc) and the Parameter is always empty.

I am sure I’ve done something identical in another project before which worked fine.
Can’t possibly find out what’s stopping this macro from working.

What’s even worse is that if I add a property on a DocumentType i.e. “IsReadable” what I previously did on a previous project was loop through the pages and say something like if(item.IsReadable) etc. Now, using the same version of Umbraco ALL dynamic variables are empty. Something seems to be seriously wrong here but I don’t know how to fix it.

I’m using umbraco v 4.7.1.1 (Assembly version: 1.0.4393.24044)

Any help please?

  • 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-01T12:50:47+00:00Added an answer on June 1, 2026 at 12:50 pm

    I solved it by adding these:

    @using umbraco;
    @using System;
    @using System.Collections.Generic;
    @using umbraco.MacroEngines;
    

    Probably only some of them are needed, but I haven’t bothered to find out.
    Adding just MacroEngines isn’t enough though…

    It’s bizarre cause on a previous project these aren’t needed. Perhaps they are not properly referenced in the web.config in this project or something like that. Anyway it works now so I’m happy

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

Sidebar

Related Questions

Very likely I'm going about this in the wrong way entirely. I'm completely new
I know this is crazy, but IE can drive one to do crazy things.
I was reading about data driven testing using mbunit from this article. http://blog.benhall.me.uk/2007/04/mbunit-datafixture-data-driven-unit.html I
This is a question about generic c++ event driven applications design. Lets assume that
I just noticed this about a week ago. I'm storing data about the current
The MySQL 5.4 documentation, on Optimizing Queries with EXPLAIN , says this about these
This is about my assignment so I would appreciate generic answers with explanation. I
This is about when a .NET remoting exception is thrown. If you take a
This is about a school assignment so I'm trying to do things by the
This is about the design decision and understand the procs and cons for adopting

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.