I should really watch what I type! LOL
I actually got my post mixed up a little, I did the alterations but still not working.
$docInfoAlt = $modx->getDocument($modx->documentIdentifier);
$webuserId = $docInfoAlt['createdby'];
Something very odd about this... I changed the database field to include the "-" for the field I want to display.
$webuserId should dispaly -12 as it’s the ID of the user who created the page but it’s not working with the chart. If I hardcode it to $webuserId = -12; it works. Why would the above code not work the same way as the hardcoded value if it should return the exact same value?
if I create a new snippet with
$docInfoAlt = $modx->getDocument($modx->documentIdentifier);
$webuserId = $docInfoAlt['createdby'];
echo $webuserId;
it displays -12 in the document but it just won’t work with in this other snippet I made unless I hardcode the value, which I don’t want to do.