[webfmid] & [webfmfolder-path-raw] work as expected.
Example:

Alias should be:
download/[filename]/[webfmid]

Alias created instead:
domain.com/download/159
#where 159 is webfmid.

CommentFileSizeAuthor
#1 patternfilenamemissing-1343624-1.patch2.63 KBnhck

Comments

nhck’s picture

Version: 6.x-2.15 » 6.x-2.x-dev
Assigned: Unassigned » nhck
StatusFileSize
new2.63 KB

Absolutely right,

I attached a patch for you to test - if that would be possible? (In case you are unfamiliar with patching: http://drupal.org/patch)

nhck’s picture

Status: Active » Needs review
kasalla’s picture

hey,

now filename works, but webfmfolder-path-raw does not...

[filename]/[webfmfolder-path-raw]/[webfmid]
comes to
testpdf/12

nhck’s picture

Hej,

thats odd - because for me that one works. Maybe you can illustrate the case a bit more? :-) In which folder did you place your file? What do you expect it to be and why?

kasalla’s picture

heyho,

I defined an alias in url-alias section with all available webfm patterns in it.
e.g. [filename]/[webfmfolder-path-raw]/[webfmid]

Before the patch the result was:
path_to_file_raw/159 //filename missing.

After the ptach the url is created like this:
mydocumentpdf/159 //filepath missing :-)

I tested on a fresh d6.22 installation with webfm and pathauto.
I placed the patch in module/webfm dir.

does this help?

nhck’s picture

hmm,

but mydocument.pdf isn't in the top path is it??

webfm/mydocument.pdf -> should give example.com/mydocument.pdf/159

If you create a folder in the filebrowser "bla" so that:

webfm/bla/mydocument.pdf -> should give example.com/mydocument.pdf/bla/159

are you maybe expecting webfm to show up?

kasalla’s picture

oh year, my fault.... in my fresh d6 installation webfm file place is right under sites/all/files.
Initially this "bug" occures on a live site, where files where placed in sites/all/files/bla.

think you can close this

nhck’s picture

Status: Needs review » Patch (to be ported)

Thank you anstosser for your help :-)

You actually found a bug that I could fix AND stayed on to help. Very nice - thank you.

I'll get this in the rc-version soon.

nhck’s picture

Status: Patch (to be ported) » Fixed

This is now in the dev version.

Status: Fixed » Closed (fixed)

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