image attribute in header?
Permalink 1 user found helpful
so i have an image attribute i want pulled into my header element.
i tried this:
this is the error i'm receiving:
and also added the loader model:
i tried this:
this is the error i'm receiving:
<b>Warning</b>: call_user_func_array() [<a href='function.call-user-func-array'>function.call-user-func-array</a>]: First argument is expected to be a valid callback, 'FileVersion::getFileRelativePath' was given in <b>/xxxx/xxxx/xxxx/concrete/models/file.php</b> on line <b>31</b><br /> " /></a>
and also added the loader model:
<?php Loader::element('header_required'); Loader::model('collection_attributes'); ?>
have you tried $c->getAttributeValue('background');
<b>Fatal error</b>: Call to undefined method Page::getAttributeValue()
<b>Catchable fatal error</b>: Object of class File could not be converted to string in <b>concrete/libraries/3rdparty/adodb/adodb.inc.php</b> on line <b>983</b><br />
Add first.
or
What C5 Version?
This function was added I think it was 5.3.3 or later.
$c = Page::getCurrentPage();
or
What C5 Version?
This function was added I think it was 5.3.3 or later.
5.3.3
unfortunately,
$c = Page::getCurrentPage();
didn't do anything...
unfortunately,
$c = Page::getCurrentPage();
didn't do anything...
i love you!