I've tried to use a view to retrieve a link field with a ? in it but its cut off at this point.
Is this a bug or am I doing something wrong?

I notice also
$node->field_logourl[0]['url'] is cut off as well in contemplate, but at least there are other working fields for use.

Comments

jcfiala’s picture

If you can give me some more data that may help.

I'll start working on seeing what's happening this weekend.

sgriffin’s picture

Sure, essentially i just have a link with and ? in it, and I don't know how to retrieve it with views via a field. It gets cut off.

I've tried the other formatters and various tricks but didn't succeed. I also noticed in contemplate the url stops for several variable formats like ['url'] as above, but not for others.

I could piggy back it to a computed cck field and grab it from the new field , but I thought I'd post this possible bug report first before I create a work around.

jcfiala’s picture

No, that's good - the reason it's a beta release is because I didn't really have time for heavy testing, and some users were wanting an overdue release of some code. One of those fixes people were waiting for was a fix where the query string (the part of the link after the ? is called the query string) was being lost entirely - it sounds like the current code is still not fixing that problem.

jcfiala’s picture

Status: Active » Postponed (maintainer needs more info)

Well, I just created a view based around my test node type that has a field_link link field, and it's working fine.

I created the Content: Link field to display, and chose the 'Format' of Separate Title and URL, and it displays fine with the querystrings - using different Formats works just as fine.

As for the querystring not displaying in the $node->field_logourl[0]['url'] - well, that's by design. If you use devel to look at the field, you'll see that in Dev Render we provide you with the url secgment in ['url'], and the querystring in ['query']. If you want them together, I suggest using $node->field_logourl[0]['display_url'] - that will provide you with all of the parts that you need.

If you're still not getting views to work, first please make sure that you've got the most recent copy of views, and if it still isn't working, please share the url you're having trouble with here and I'll see if I can reproduce.

sgriffin’s picture

Ya I concur,
I added the cck field to a new CT and ripped out everything except for this field and it works fine.
continuing the autopsy on the original CT...

sgriffin’s picture

Status: Postponed (maintainer needs more info) » Closed (fixed)

I ruled out every possibility for it not to work and it starts working.
Stupid computers.

Thanks for your time.
Perhaps views was installed but not updated.
-_-