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

kbahey - November 18, 2008 - 15:53
Status:active» duplicate

duplicate of http://drupal.org/node/101106

#2

chaps2 - September 8, 2009 - 13:47
Version:HEAD» 6.x-1.x-dev
Component:Miscellaneous» Code
Status:duplicate» needs work

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

AttachmentSize
currency-335866.patch 7.87 KB

#3

chaps2 - September 9, 2009 - 13:16

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.

AttachmentSize
currency-335866-2.patch 8.17 KB

#4

kbahey - September 13, 2009 - 03:26
Status:needs work» fixed

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

System Message - September 27, 2009 - 03:30
Status:fixed» closed

Automatically closed -- issue fixed for 2 weeks with no activity.

#6

TheoRichel - December 4, 2009 - 10:44

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

 
 

Drupal is a registered trademark of Dries Buytaert.