Querying Sitecore Content Item Data Fields With Spaces in Data Field Name
<p>Please be gentle...I'm very new to Sitecore development.</p>

<p>So the following returns the value from any data field associated with a content item...as long as the data field name has no spaces in it</p>

<pre><code>    #foreach($item in $genie.QueryPageItems("/sitecore/content/Sparklev2/articles/*"))
       $item.Name - $item.Copyright - $item.Body Tag Css 
    #end
</code></pre>

<p>and the method it is calling (written by another developer):</p>

<pre><code>    public List&lt;PageItem&gt; QueryPageItems(string query){
        return (from item in Sitecore.Context.Database.SelectItems(query).ToList&lt;Item&gt;() select new PageItem(item)).ToList&lt;PageItem&gt;();
    }
</code></pre>

<p>The above returns the name and the copyright fine, but not the body tag css values. I have wrapped body tag css in everything I could think of but cannot make this work. Am I missing something or is this just not possilbe</p>