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.
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.
Code
Post Reply
Delete Post
You are allowed to delete your post for 5 minutes after it's posted.
You could also get a certain file attribute by changing
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.