Could really do with ability to expose to block administration. Have also tried putting this into views without success.
| Comment | File | Size | Author |
|---|---|---|---|
| #3 | currency-335866-2.patch | 8.17 KB | chaps2 |
| #2 | currency-335866.patch | 7.87 KB | chaps2 |
Could really do with ability to expose to block administration. Have also tried putting this into views without success.
| Comment | File | Size | Author |
|---|---|---|---|
| #3 | currency-335866-2.patch | 8.17 KB | chaps2 |
| #2 | currency-335866.patch | 7.87 KB | chaps2 |
Comments
Comment #1
kbahey commentedduplicate of http://drupal.org/node/101106
Comment #2
chaps2 commentedHere'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
Comment #3
chaps2 commentedNew 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.
Comment #4
kbahey commentedCommitted 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.
Comment #6
theorichel commentedWell 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