Posted by bryan_savage on January 11, 2011 at 6:52pm
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:
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.
Comments
From within the view or in a tpl.php file
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] <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.