Rendering View Result as a Control within another View..

We encourage users to post events happening in the community to the community events group on https://www.drupal.org.
hamedtaha's picture

Hi All
i'm trying to make a view which i can do some operations like this image [attached]
Only local images are allowed.

the Registerlinks is shown based on the user Roll , and i want to send an argument within that link
is that applicable ?

AttachmentSize
1.jpg35.18 KB

Comments

From within the view or in a tpl.php file

bryan_savage's picture

You can do this from within the view itself. I took a field that is the customers balance (money owed) and turned it into a link to pay. Choose "Rewrite the output of this field", use the token and custom html. My example:

[field_balance_value] &nbsp;<a ref="/pay?amount='[field_balance_value]'">Pay now</a>

For more power, you can also do this at the theme level. From the theme, click Theme: Information and see the template file that controls the output of your theme and create it. From within that file, you can do all kinds of stuff - print variables, include markup, use conditional logic, etc.

Views Developers

Group organizers

Group notifications

This group offers an RSS feed. Or subscribe to these personalized, sitewide feeds:

Hot content this week