This would mean the page view could be generated with URLs of the form -
http://
assuming that Sony is the company for which you want to find the uploads.
Now, we need to validate that the user who is generating this URL actually belongs to Sony.
I added those validations using PHP code snippet by clicking on arguments link as shown -

Next, go to the validation section, select the validator as PHP and enter -
global $user;
profile_load_profile($user);
return $argument == $user->profile_company;
Refer image -
You can also choose the behavior you want in case of default arguments, illegal arguments, etcSave the view. Check the preview by giving some valid and invalid arguments.
We are all set with a foolproof view definition.
0 comments:
Post a Comment