bbeer Posted January 31, 2014 Share Posted January 31, 2014 Sorry this is a stupid beginner question. Already triedthe whole morning to find a solution. I need to output the Name of the descriptions as well as generating the link to the file. <p class="tripFlyer"><a href="" target="_blank" title="<?php echo $page->reise_flyer;?>"><?php echo $fields->get("reise_flyer")->label;?></a></p> I manage to call the label, but I do not get the Description. So with the URL. Have not managed to get the url of the file. Your help is much appreciated! Link to comment Share on other sites More sharing options...
MatthewSchenker Posted January 31, 2014 Share Posted January 31, 2014 Greetings, Assuming "reise_flyer" is an uploaded file, just do this: <a href="<?php echo $page->reise_flyer->url;?>" target="_blank"><?php echo $fields->get("reise_flyer")->label;?></a> Thanks, Matthew Link to comment Share on other sites More sharing options...
bbeer Posted January 31, 2014 Author Share Posted January 31, 2014 Thanks perfect! 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