Add content type CCK field to join with custom table field in drupal view 2
Hi,
I have following table structure:
CREATE TABLE IF NOT EXISTS views_price (
nid int(11) NOT NULL,
price float NOT NULL,
UNIQUE KEY nid (nid)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
In order to expose my price field in view, I wrote following code
function mymodule_views_api() {
return array(
'api' => 2,
'path' =>
drupal_get_path('module', 'mymodule'),
);
}
function mymodule_views_data() {
$data['views_price'] = array(
'table' => array(
'group' => 'My Custom Data',
'title' => 'views_price',
'join' => array(
'node' => array(
'left_field' => 'nid',
Drupal Updates from OSI Days 2010 - Open Source Conference, Chennai, India - September 19-21, 2010
Conference Details - http://osidays.com
Drupal Sessions with Overview and details: http://osidays.com/tracks/60
Conference Registration - http://osidays.com/register-now
Shortlisted Sessions:
Building Powerful search in Drupal by Prajwala Manchikatla - http://osidays.com/proposal/building-powerful-search-drupal
Citizen Journalism on Drupal by Markus Franz - http://osidays.com/proposal/citizen-journalism-drupal
Drupal Theming (Workshop) by Marek Sotak - http://osidays.com/proposal/drupal-theming
Read moreOrgranizer is not interested!
It looks like the organizer of the Ahmedabad group is no more interested in maintaining this group since it doesn't do much for his/her business. kindly pass the administration to some other deserving group member.
Regards.
Read moreMultiple Indian drupal community sites effects and concerns
Last updated by gloscon-gdo on Sat, 2009-02-28 09:32
hi all,
One of the important things we discussed at drupal camp india (Pune edition) was to identify ONE "accepted" drupal site for indian community. This may sound undemocratic on the surface but the problem creeps in when we talk about:
1>the usage of site, which of the site should I share my regional drupal experiences?
2> Which site to look for when we talk about drupal sites built in india.
3> which site should I enter my location data (kevin's idea of map ui).
Drupal development across India
Hello there,
If you or your organization is developing in Drupal, please list yourself here. The aim of this post is to prepare a list of the organizations which are working on Drupal CMS. Thus if we want to organize a major event like Drupalcon in India in future, it helps us a lot to co-ordinate between all the organizations developing in Drupal.
Thank you.
---------------
How about organizing 'Drupalindia -0x' (x--year, of course!)
start listing yourself here, below this.
-----------------------------------------------
- « first
- ‹ previous
- 1
- 2
- 3
