Data for view not displaying

I installed views and wanted to describe one of my own tables, called Recipes, to it. I did this be creating a modules called Recipes and in this module I created a file recipe.views.inc as described in the documentation.

recipe.views.inc


<?php
function recipe_views_data() {
$data = array();
$data['Recipes']['table']['group'] = t('Recipes');

$data['Recipes']['table']['base'] = array(
'field' => 'id',
'title' => t('Recipes'),
'help' => t("Contains recipes data."),
'weight' => -10,
);

$data['Recipes']['table']['join'] = array(
'users' => array(
'left_field' => 'uid',
'field' => 'user_id',
),
);

$data['Recipes']['id'] = array(
'title' => t('Recipe id'),
'help' => t('The unique id for the recipe.'),
);

$data['Recipes']['name'] = array(
'title' => t('Name'),
'help' => t('User entered recipe name.'),
'field' => array(
'handler' => 'views_handler_field',
'click sortable' => TRUE,
),
'sort' => array(
'handler' => 'views_handler_sort',
),
'filter' => array(
'handler' => 'views_handler_filter_string',
),
'argument' => array(
'handler' => 'views_handler_argument_string',
),
);

$data['Recipes']['datecreated'] = array(
'title' => t('Date Created'),

unable to add content to panel page

While creating a panel page everything works according to plan until I want to add content to the 2 column panel page. When I choose "add content" a window opens with a loading sign but that's it. The opened window stays blank. I tried reinstalling ctools and panels by removing the modules form the modules directory and removing all related entries from the database (I think...).

Does anyone have experience with this problem? Any suggestions?

combine existing code with drupal

I want to set up a new site, combining Drupal's facilities for the main pages, and some specific code from the old fashioned existing site. This old site does something that I do not see how to realize with content-types and views. It was written in PHP using Mysql.

I see as my options:

Creating a Menu Content Page that will pull content from Database

Hello,

Firstly, I want to create a Menu Content Page that will display data from the Database pertaining to the user that logged in.

For example, the user_table has a column that I added called Amount invested. I want to display the amount pertinent to the user that logged in on this page.

Secondly, I want to have a user friendly utility interface in the Admin Cpanel that will let me update a few columns in the user_table in the database.

thank you guys

Combining Taxonomy Terms in Drupal 7

I'm sad to see that support for combining taxonomy terms by using URLs like taxonomy/term/1,2 & taxonomy/term/1+2 has been removed in Drupal 7: http://drupal.org/node/503456. This would be incredibly helpful on a site I'm working on.

Implementing article on basic page as "block"

Dear community,

I'm trying to create basic pages with an extra block that shows recent news links with a short summary and link to the full document (articles). Below that I'd like a link to the news archive, which is to create a list of all news items with their respective links. How do I achieve this in Drupal 7? I can create both static pages and dynamic pages but haven't been able to figure out how to mix and match the two inside specific blocks.

Very kind thanks in advance!

Pages

Subscribe with RSS Subscribe to RSS - Drupal 7.x