Link Names Rather Than File Names

Permalink
Hi There,

is there any way that we can customise the link name so rather than listing the file name it can be a specific bit of text that is hyperlinked. We want to use this block for a software app download but there are different packages for different OS's. To make it easier for the visitor to identify the correct file it would be good to have the option to set the link text.

Thanks

Grant

Tags:

londonts
View Replies:
bastman replied on at Permalink Reply
bastman
If it's still relevant, just do the same as recommended here:http://www.concrete5.org/marketplace/addons/downloads-list/question...

You could also get a certain file attribute by changing
$fv->getFileName()
to
$fv->getAttribute("YourAttributeName")


Just make sure that there's a custom file attribute with the according name.

And I would recommend to create a new block template (instead of overwriting the standard block) by dropping your edited view.php under a new file name in /packages/swp_downloads_list/blocks/swp_downloads_list/templates.