Project:File Aliases
Version:6.x-1.x-dev
Component:Miscellaneous
Category:bug report
Priority:normal
Assigned:Unassigned
Status:closed (fixed)

Issue Summary

I'm not sure if this is the correct place to be posting this support request because of the other modules involved, but here it goes:

I have a Content Type set up with a FileField (using 6.x-3.2) and the FileField Path (6.x-1.x-dev) and File Alias (6.x-1.x-dev) are all set up how I want them.

I create a node of that content type and upload a file. The node itself looks great. The file is linked and points to the File Alias and it is correctly located in the directory structure.

I have a View (6.x-2.8) set up that pulls a number of these types of nodes. I have the FileField set up as a field with the Format option set to Generic files. (I need to use Generic files because I cannot get multiple files to show up properly linking with URL to file.)

All of these nodes that have files with File Aliases assigned to them are not using the File Alias when displayed through the view. The files are linked directly to their paths instead.

Is there another way I am supposed to get the File Alias to be used when the file is being displayed through a View?

Comments

#1

Hi TommyK,

I will have a look and see if I can reproduce the issue and if so determine the cause and attempt a fix.
Will let you know how I go.

Cheers,
Deciphered.

#2

Category:support request» bug report

Ok, I confirmed the issue, determined the cause and have come up with a fix :)

The issue only occurs when you allow more than 1 file in the filefield, so it was clearly a big oversight during the testing.
Simple fix:

Add the following line at line #230 of 'includes/file_aliases_content_handler_field_multiple.inc':

         $field['module'] = 'file_aliases_' . $field['module'];

Let me know how you go.
Will commit the fix to the development release ASAP.

Cheers,
Deciphered.

#3

Status:active» fixed

Committed to DRUPAL-6--1.

Cheers,
Deciphered.

#4

I installed the latest dev today and it works.

Thanks so much!

#5

Fantastic.

Will likely push out the 1.1 realease shortly.

Cheers,
Deciphered.

#6

Status:fixed» closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

nobody click here