Manol Posted December 15, 2014 Share Posted December 15, 2014 Hello. I'm trying to get the title of a pdf file from a FieldtypeFile within a module, with print_r I can see basename, description.. but don't know how to get the value, any hint? $file = array(); $file = $pagina->get($field->name)->getArray(); foreach ($pagina->get($field->name) as $key => $value) { echo $key. " -> ". $value . "\n"; } Thank you. Link to comment Share on other sites More sharing options...
Manol Posted December 15, 2014 Author Share Posted December 15, 2014 Sorry, to much wine or to little sleep: $value->description 4 Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now