Topic RSS
4:20 pm
6 April, 2009
OfflineHi Mark,
Listed in known bugs is "URL attachments are not shown on search page."
The Identified Problem:
This appears to be because dictionary.php[files_loop] explicitly references $stuff["Files"].
A Solution:
I solved the issue by
Step 1: updating dictionary.php adding (around line 18):
'[urls_loop]' => '<?php foreach ((array) $stuff["URLS"] as $file): ?>',
'[/urls_loop]' => '<?php endforeach ?>',
Step 2: updating default (and used) search template in admin by adding a new row to the table
<tr>
<td class="files">[urls_loop][file_with_download][/urls_loop]</td>
</tr>
Step 3: Save Template (needed because applies dictionary.php substitutions as well as updating database)
This template shows both files and urls on the search page, complete with audio player if installed.
Hope that helps.
I realise this is a 'work-around' and there may be a better way to do this, but at least it works!
Every blessing.
Most Users Ever Online: 40
Currently Online:
15 Guest(s)
Currently Browsing this Page:
1 Guest(s)
Top Posters:
malpan - 2453
jogen - 2440
VanWatterson - 652
GeraldSebring - 364
LucasWoltman - 362
RandellFeenstra - 362
Member Stats:
There have been 7 guest posters
There are 1936 members
There are 1 moderators
There are 1 admins
Forum Stats:
Groups: 1
Forums: 2
Topics: 971
Posts: 3747
Newest Members: twinton, ellison13579, Daigh, mchunful, jesua, LGRG Design
Moderators: Ben Miller (383 )
Administrators: Mark Barnes (425)
Log In
Register
Home



