Block View Feature Request
Brico - November 18, 2008 - 14:14
| Project: | Currency Exchange |
| Version: | 6.x-1.x-dev |
| Component: | Code |
| Category: | feature request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | closed |
Description
Could really do with ability to expose to block administration. Have also tried putting this into views without success.

#1
duplicate of http://drupal.org/node/101106
#2
Here's a basic views 2 implementation. It's designed to show current exchange rates rather than act as a conversion form although that functionality could be fairly easily added.
As ever with views you get great flexibility. Both "from" and "to" currencies can be set as either arguments or filters. Filters can be used to display a set list of exchange rates or exposed to allow user selection of currencies. You can even have mutliple "from" currencies and multiple "to" currencies and use the grouped table display for a handy lookup. Obviously you can create as many block views as you like.
It uses the currency_api_convert function for all exchange rate lookups so the update frequency setting is respected.
Andy
#3
New patch with a couple of tweaks to a) pick up currency arguments set using php and b) display the currency name in argument title substitution.
#4
Committed to the -dev version.
Should be in the downloadable tarball in about 9 hours from now.
Please test and re-open the issue if there are still problems.
#5
Automatically closed -- issue fixed for 2 weeks with no activity.
#6
Well I have installed it, but is there supposed to bne a block view in the Views list or should I create one from scratch (in that case I have failed, the block just doesnt appear). Is there some Views code for this block that I coud import?
Much obliged,
thanks
Theo Richel