This forum is for module development and code related questions, not general module support. For general support, use the Post installation forum.

Complex query in Views API - advice

Hi

I want to use the views module to list the nodes returned by a query like this:

<?php 
 $querynobody = "SELECT uid FROM users WHERE name = 'nobody'";
  $nobodyobject = db_fetch_object(db_query($querynobody));
 $query = "SELECT m.evalid,n.title,n.nid,n.created FROM (node n INNER JOIN fhsstadmin_mediation m ON n.nid=m.nid) WHERE n.type='fhsstadmin-mediation' AND m.mediationstatus='0' AND m.evaluid != '$user->uid' AND m.pageuid != '$user->uid' AND n.uid='$nobodyobject->uid' GROUP BY n.title ORDER BY n.created ";
 if ($limitnum >= 0 ) $query .= " LIMIT " . $limitnum;
?>

How do I put in all the ANDs in the end properly?

I know how to expose the various columns using:

<?php
$tables['fhsstadmin_mediation'] = array(
"name" => "fhsstadmin_mediation",
"join" => array(
"left" => array(
"table" => "node",
"field" => "nid"
),
"right" => array(
"field" => "nid"
),
),
"fields" => array(
"mediatoruid" => array(
'name' => "Mediator ID",
'sortable' => true,
'mediatoruid' => "mediatoruid",
'addlfields' => array("mediatoruid")
),
"evaluid" => array(
'name' => "Mediator Eval ID",
'sortable' => true,
'evaluid' => "evaluid",
'addlfields' => array("evaluid")
),
// etc.
),
"filters" => array(

Abour URL...

Can you help me with my question:

how I can change url of directory on my site

from "http://example.com/dir"

to "http://dir.example.com"?

TimyMCE Image handling (McImageManager/McFileManager integration Vs Image.Module Integration)

My first post on drupal.org finally :)

I was looking at http://drupal.org/node/41694 posting by moxiecode and found that MCFileManager and MCImageManager are being being integrated into TinyMCE as plugins.

They also mention that it includes a new authenticator specifically written for drupal.

Firstly,

1) Will images and/or files loaded by these plugins be drupal nodes or will be just stored as normal files and be accessible only thru MCFileManager and MCImageManager.

2) I checked the code (the drupal authenticator) and found that it is creating a directory for each user. Does this mean that each drupal site user will have his own private store of images which he/she can manage using MCFileManager and MCImageManager plugins.

Secondly,

1) The tinyMCE project - http://drupal.org/project/tinymce - has provided support for images to be imported directly and implemented as a plugin in TinyMCE. I know this imports images as proper drupal nodes. (Please correct me if I am wrong)

and finally what I would like to understand are views on

1) Does it make sense to import/manage an image collection like normal files and not as proper drupal nodes, (the way image module does) like as I believe is happening with TinyMCE plugins (MCFileManager and MCImageManager)

I just initiated this discussion to understand the pros and cons of using the above approaches. Managing images as normal files or as proper drupal nodes by the image module.

Disabling Caching Totally in Module

Hi all,

I'm writing a very dynamic module that is to interface with a back-office database, however, I need to progmatically disable the cachine mechanism on each of the pages (not blocks) returned by the module.
I've had a look through the API and development handbooks, but can't find anything related to the cache.
Searching the site + the net has just led me to think about disabling it, although this is a far from ideal solution.

Am I missing something?

Andy

flexinode - creating a new field type

I'm trying to understand how I create a new field type, but I just don't get it.

I wish to create 2 new field types for flexinode, and base them on the 2 existing contributed fields - url and image.

URL: I want it to contain another text field - the url text, so that the final output will be: <a href="/url_link_field">url_text_field</a>

LDAP in 4.7?

Are there any modules out there right now for user authentication with LDAP in 4.7? If not would porting the 4.6 module be difficult (does it have a lot of 4.6 depedent code)?

Pages

Subscribe with RSS Subscribe to RSS - Module development and code questions