Drupal is up and running but how do I ...?

How can i see the View's SQL

i have writen this view :
<?php
function diary_views_tables() {

$tables["rc_og"] = array(
'name' => 'rc_og',
'join'=>array(
'left'=>array(
'table'=>'node',
'field'=>'nid'
),
'right' => array(
'field' => 'og_nid'
)
),
'fields'=>array(
'img_nid'=>array(
'name'=>'Picture Path',
'handler'=>'diary_views_handler_field_imgNode',
'sortable'=>false
),
'title'=>array(
'name'=>'GroupTitle',
'handler'=>'diary_views_handler_field_Title',
'sortable'=>false
),
'changed'=>array(
'name'=>'date changed',
'handler'=>'diary_views_handler_field_Date',
'sortable'=>false
),
)
);
$tables["rc_og"] = $table;

return $tables;
}

function diary_views_default_views(){
$view = new stdClass();
$view->name = 'Fan_Group_API';
$view->description = 'Shows the FAN_Group Related to Taxonomy.made by Edy';
$view->access = array (
);
$view->view_args_php = '';
$view->sort = array (
);
$view->argument = array (
);
$view->field = array (
array (
'tablename' => 'n',
'field' => 'title',
'label' => 'Group Title',
),
array (
'tablename' => 'n',
'field' => 'type',
'label' => 'type',
),
array (
'tablename' => 'n',
'field' => 'changed',

Block title translation with localizer?

I've installed + actived the localizer module
-> menu items translated to German = OK

but what about the block titels? I've got a "Locale" in the block configuration, which ties the block to the selected language
case locale = English -> the block is only visible if English is selected
case locale = German -> the blockl is only visible if Germanis selected
case locale = Any -> shows the block in both cases, but I cannot translate the title
or at least I don't know how

Any ideas?

How can I display information from the database?

What I want to do
Display a chunk of information acquired from the database. The SQL query to extract the information is complicated. Ie: I want to join tables and do other things etc that Views doesn't handle without extra stuff.
How I can do it now
I could do it by writing my own module and just outputting the list in the mymodule_block() function.
How I think I should do it
I thought it would be better if I could feed my newly created table to the Views module, and let it display it. I figure the information on http://drupal.org/node/99564 should help, but I don't understand where the php code described fits in: How do I tell example_views_tables() what table to join with? How do I later use this View? will it show up in the administrator's section of the site only if I add it as a default view?
What I'll want to do later
There are quite a few different SQL queries I'll be using. Eventually I'll want to provide several tables for the Views module to use. Each one from a different query. I might make a node type to hold my queries, so they can be edited by the administrator. This might be a useful module for other people.

Question

Does Ping work with scheduled publishing?

Hi,

when I create a node that is set to be published later, e.g. Feb.1, will the ping module then send a ping at that publishing date?

Or is the ping sent when the node is created? Or is it not sent at all when using scheduled publishing?

Thanks,
Ralf

Remove subject from forum replies

I've had a bit of a search, and a dig around the admin panel but can't seem to find what I want.

Random Images link

How can I remove the link to the image node in the random images module? I would prefer to have the image displayed without the link to a node . Thanks

Pages

Subscribe with RSS Subscribe to RSS - Post installation