Hi all,
Is it possible to have the download link the title of the file, instead of the filename?
Thanks
Download title instead of filename
-
leewilson78
- Phoca Newbie

- Posts: 2
- Joined: 05 Jan 2009, 16:58
SOLVED
Solved it, open up: components/com_phocadownload/views/category/tmpl/default.php
Change the following:
to:
Looks like this should be an option somewhere, I couldn't find it though.
Change the following:
Code: Select all
// Title or name
if ($this->paramstmpl['filename_or_name'] == 'title') {
$displayNameHead = '';
$displayName = $valueDoc->title;
} else if ($this->paramstmpl['filename_or_name'] == 'filename'){
$displayNameHead = '';
$displayName = PhocaDownloadHelper::getTitleFromFilenameWithExt( $valueDoc->filename );
} else if ($this->paramstmpl['filename_or_name'] == 'filenametitle'){
$displayNameHead = '<div><strong>'.$valueDoc->title.'</strong></div>';
$displayName = PhocaDownloadHelper::getTitleFromFilenameWithExt( $valueDoc->filename );
}Code: Select all
// Title or name
if ($this->paramstmpl['filename_or_name'] == 'filename') {
$displayNameHead = '';
$displayName = $valueDoc->title;
} else if ($this->paramstmpl['filename_or_name'] == 'title'){
$displayNameHead = '';
$displayName = PhocaDownloadHelper::getTitleFromFilenameWithExt( $valueDoc->filename );
} else if ($this->paramstmpl['filename_or_name'] == 'filenametitle'){
$displayNameHead = '<div><strong>'.$valueDoc->title.'</strong></div>';
$displayName = PhocaDownloadHelper::getTitleFromFilenameWithExt( $valueDoc->filename );
}- Jan
- Phoca Hero

- Posts: 49144
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: Download title instead of filename
yes it is in paramters - File Name or Name
Jan
Jan
If you find Phoca extensions useful, please support the project
-
QldFirey
- Phoca Newbie

- Posts: 3
- Joined: 20 Jun 2010, 02:55
Re: Download title instead of filename
Where are the Paramters?
Thanks, Chris.
Thanks, Chris.
- Jan
- Phoca Hero

- Posts: 49144
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: Download title instead of filename
If you find Phoca extensions useful, please support the project