Hi!

I just upgraded the views to the latest version using D7.
I'm building a block that should present a pdf file. The outpust is rewritten to an image that i want to use as link. I tick the "output field as a link" and enter this in the field:
http://mydomain.com/sites/default/files/[field_file]

Let's say the file presented is called "file.pdf". the result i get, when block is visible adds a space between the absolut url and the filename called with the replacement patern as in:
http://mydomain.com/sites/default/files/ file.pdf
instead of :
http://mydomain.com/sites/default/files/file.pdf
hence producing an error 404 when clicking the link...

Am i missing something here?

Thank you for your time! And big props for the new layout! :) much more comprehensive :)

CommentFileSizeAuthor
#5 view_export.txt14.98 KBSakrecoer

Comments

merlinofchaos’s picture

Status: Needs review » Active

There should be a 'trim' checkbox you can set on field_file that should, I think, alleviate this.

Also, 'active' is for reports. 'needs review' is for patches.

Sakrecoer’s picture

Version: 7.x-3.x-dev » 7.x-3.0-beta3

Thank you! will try it out asap! :)
Patches? Is a module a patch?
oh i see... i was not using the -dev ... but this is regarding to the module 7.x-3.0-beta3... That shouldn't be a patch right?

sorry if i'm making it hard for you... :/ will keep it in mind next time!

Sakrecoer’s picture

Sorry, Trim checkbox gave no different result... but why is there a build in   anyway? it's not very hard to add a space if needed :)

merlinofchaos’s picture

Status: Active » Postponed (maintainer needs more info)

A module is not a patch. A patch is a change to a module. When the status is 'needs review' it means that someone has attached a patch to be reviewed for possible inclusion into the official module code. That is our basic change mechanism. Users submit bug reports and feature requests, other users and module developers submit patches, and then the maintainers review and commit or reject them.

There is no intentionally built in  . Views is definitely not adding one, and the functionality you mention is something I use on a regular basis, so there is something extra going on.

Can you tell me precisely how the field in question is configured so I can attempt to reproduce this?

(Another workflow process: 'active' means that issues need attention. When asking a question to the submitter(s) we mark issues "postponed (maintainer needs more info)". When that information is provided, the submitter needs to mark the issue 'active' again to ensure it gets seen).

Sakrecoer’s picture

StatusFileSize
new14.98 KB

Thank you for clarifying! :) Sorry for being such a n00b. Your patience is much appreciated.

The field is configured to react on taxonomy, present in the URL. It's a block that basically, takes the attached file from one of the content type connected to the taxonomy term i'm calling (only one node per taxonomy term acting like a datacontainer) and displays it as a link with a big picture icon when the taxonomy view is displayed.

I have also used this system before, but i just can't find the reason why this space appears now.....

Perhaps it's better if i attach the views export code here? It's a view generating 4 different blocks, I put it in a txt file attached to this repsonse...

thank you for taking the time! :)

Sakrecoer’s picture

Ok, i found it! Error was mine :)

I set the formatter to 'URL to file'. This turned the replacement pattern to the full URL of the actual file! :)

Sorry for bugging your mind with my n00biness! Hopefully this will help another n00b!

PHPeace!
*Set

merlinofchaos’s picture

Status: Postponed (maintainer needs more info) » Fixed

Status: Fixed » Closed (fixed)

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