Closed (fixed)
Project:
Views (for Drupal 7)
Version:
6.x-2.9
Component:
Miscellaneous
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
28 Oct 2010 at 13:23 UTC
Updated:
11 Nov 2010 at 20:30 UTC
Hi,
i want to pass an external Website-URL as an argument in views.
I created a page in views, wich is called:
Now I want to pass the argument "www.google.de/intl/de/about.html" into views:
http://localhost/viewspage/www.google.de/intl/de/about.html
Unfortenatly it is cut off after the first slash.
So I decided to make a base64 encoding and decode it via a custom-php code (default argument) in views:
http://localhost/viewspage/d3d3Lmdvb2dsZS5kZS9pbnRsL2RlL2Fib3V0Lmh0bWw=
custom code:
$args[0]=arg(1);
$args[0] = base64_decode ($args[0]);
return $args[0];
This does not work too. Does anyone can give me a hint? How can I pass an argument that contains an url?
Thanks
Comments
Comment #1
dawehnerThis is views on drupal5 handling code.
Read the description below the text field. There is $argument and $handler->argument.
Comment #2
spamwelle commentedI can't see a description below the field. How can i access this parameter? Could not find an answer after long time searching...
?
Comment #3
dawehnerWell
=> $argument.