Page Attribute

Permalink
I need help with a page attribute. I've created a image/file page attribute called "bkgd_image"

<div id="content" style="background: url(<?$imageObj = $c->getAttribute('bkgd_image');
$imgVersion = $imageObj->getVersion();
echo($imgVersion->getRelativePath());
?>) no-repeat">


and I went to a page to plugin my jpg for the background page attribute but its throwing a error up any ideas?

bryanlewis
 
bryanlewis replied on at Permalink Reply
bryanlewis
I could use the text attribute but how would I call the image in the text of the page attribute? any idea's would be appreciated!

i hope this makes sense
ScottC replied on at Permalink Reply
ScottC
5.3 or so code: apparently doesn't work with 5.2.1

<?php echo($c->getAttribute('bkgd_image')->getVersion()->getRelativePath());?>