So after hours of working on this, I realized that the reason that above code is returning a zero is because I was doing$this->maincontent = '<div id="section-row3" class="section-row"><div id="section-row3-inner"><div id="main-body-surround" class="spacer '+$this->joomla->get('pageclass_sfx')+'">';
instead of$this->maincontent = '<div id="section-row3" class="section-row"><div id="section-row3-inner"><div id="main-body-surround" class="spacer '.$this->joomla->get('pageclass_sfx').'">';
I didn't realize that to concatenation operand in php is a . and not a +, which is why I getting a 0 for the output. However get('pageclass_sfx') is now returning an empty value. This is better than the zero, but not what I need. I need to extract the actual pageclass_sfx value. Any idea why I can't get this when the default.php (html/com_content/frontpage/default.php) file can? I don't get it...