Project:Insert View
Version:6.x-1.x-dev
Component:Code
Category:feature request
Priority:normal
Assigned:Pasqualle
Status:active
Issue tags:argument, token, views send

Issue Summary

Is there a way to make my arguments within my view tag dynamic?

If so, what would I use? Rep Tags, PHP, tokens, something else?

An example...

Here's my tag: [view:historical_sites_by_person=block=John Adams]

Lets say I were to place this tag in a block that displayed on both on John Adams' page and Thomas Jefferson's page. I'd like to dynamically add the name of the historical person in the argument field so that I don't have to have dozens of blocks, but only one.

Let me know if this isn't clear.

And thank you.

-JV

Comments

#1

Subscribing, very much interested! greetings, Martijn

#2

Not sure if this will help give ideas

http://drupal.org/node/337727

I have a node which I insert a view which has an argument (Happens to be a name), I wanted the header of the view to have a standard text but insert the argument (name)

#3

You can use PHP, if you enable the insert view filter for the PHP input format.

Following is an example:

<?php print $my_arg = 1 ?>
[view:tracker==<?php print $my_arg ?>]
this will show all of UID 1's tracking results

#4

Category:support request» feature request
Assigned to:Anonymous» Pasqualle

#5

Hi

I hope this thread is still monitored. I am trying to using insert view with views send and want to pass a token as argument like this. This is not working and giving me an error.

Please let me know what I am doing wrong.

[view:mystatus==[views-send-uid]]

mystatus is my view and [views-send-uid] is the token with user's userid

#6

probably the insert_view filter is evaluated first, in which case the [views-send-uid] does not mean anything for the filter..

#7

Can someone help please?

#8

Can someone help please?

#9

bumping it to get some help

#10

subscribe

#11

please help

#12

Can someone help please?