title: Umbraco dynamic properties or parameters in razor macro don't work
body: <p>This is about to drive me completely insane!</p>
  
  <p>I've done this before and I know it should work and it's supposed to be straightforward.</p>
  
  <p>I've created a macro which is like this</p>
  
  <pre><code>@inherits umbraco.MacroEngines.DynamicNodeContext
  @{
      string ParameterName = Parameter.Name;
      &lt;span&gt;@ParameterName&lt;/span&gt;
   }
  </code></pre>
  
  <p>and on the page:</p>
  
  <pre><code>&lt;umbraco:macro Alias="MasterpageParameter" language="cshtml" runat="server" Name="logoText"&gt;&lt;/umbraco:macro&gt;
  </code></pre>
  
  <p>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.</p>
  
  <p>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.</p>
  
  <p>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.</p>
  
  <p>I'm using umbraco v 4.7.1.1 (Assembly version: 1.0.4393.24044)</p>
  
  <p>Any help please? </p>