Hi.
I'm working on a drupal module, and one thing that it needs to do is modify the display of cck file fields automatically (using template files is not an option). For example, this array:
$node->field_images[0]['view'];
That is what I would like to get into. The 'view' part will output an image based on the display settings for ...
I have a product, and I want it to have many changeable attributes so I did it with Taxonomy, now I have a list that holds "price, color, shape", how do I let a user choose from it within the "add product" page and let him write a color for instance?
UPDATE
I found something called Taxonomy Field.
That is almost exactly what I'm lo...
I have a view with many nodes.
I need to reference to 4 specific nodes from a menu. and scroll the view to these nodes.
The order could change, and new nodes could be added so I cannot use the class "row-4.. or row3".
I need to add a specific ID to that nodes. It would be great to add their 'nid' in the html code as ids.
How can I ma...
I'm using the Schema API to create tables for my module on Drupa 6.17, but the tables just do not get created in the database. I have the Schema module installed, and it tells me that while the schema for my module is recognized, its table is not in the database. It comes up under Missing:
Tables in the schema that are not present in th...
I have this schema which I need to define two primary keys; one is Drupal's 'vid' field and the other one is my site 'bid' field which is of auto increment type which in turn requires it to be a primary key: wtherwise I get MySQL error. I'm having trouble finding syntax for defining multiple primary keys in a Drupal schema. If anyone can...
I have a problem with multiple forms in one page with inputs sharing the same key.
I have a form in a page and another form in a block showing on the same page.
Both forms have a field name exactly the key name (mail). I can't change those field's keys or I would break 2 modules.
So, whenever I try to post the page form and the mail i...
What are the best tuts sites for advanced learning on Drupal i.e hooks, modules, API?
...
I'm using Taxonomy View to display all nodes belonging to a term.
If it is a parent term, all nodes belonging to the children term are displayed (I've set depth>0).
However the nodes are displayed all together. While I would like them to be displayed in different groups (one for each children term).
Thanks
...
Hi,
I'm having big troubles at displaying blocks on a custom content page only.
So here's the problem;
I have block X that I want to display on a node that is of a custom content type Y.
I do not want this block to show on every page, only those that are of a given content type.
If I define custom region Z on my custom content page te...
I'm using node_load to load a node based on the value of one of its fields. If the field I'm testing against were uid for example, I would do it like this:
$n1 = node_load(array('uid' => $val));
but this field sub1 is nested in an array field_val[0][sub1]. I tried putting quotes around the whole thing, but it didn't work. I tried othe...
Say you have a page callback from Module #1 using hook_menu(). You want to create Module #2 that would basically just append something on the bottom of Module #1's page callback (think of having some notes you wanted to add to the bottom of the page). How could you do this? My understanding is that you could use hook_menu_alter to compl...
Hi, i'm developing my first Drupal project and i'm wondering how should alter the breadcrumbs and active menu item. part of my site setup is as follows:
Virtual Exhibitions (which is a view, that lists all the taxonomy terms related to a certain taxonomy vocabulary, breadcrumb should be "home > Virtual exhibitions")
Theme...
I have a simple drupal block which displays top terms from a given vocabulary, ordered by the frequency of use of those terms (ie, most popular tags). I would like to add a "view more..." link at the end of this block, which links to the "page" mode of this view, listing all terms, instead of just the top N terms. How would I go about do...
I want to have a view displayed as a menu either in primarylinks or secondarylinks.
I searched and looked up all modules with no luck.
should I build this functionality manually ==> build a module?
thanks in advance
...
I am looking to add separate buttons that will be displayed at the top of the view that I am creating in Drupal.
So far all the fields that I have added appear inside of the table as they should. The only thing that shows outside of the table is the search filter above (as it should).
I would like to add 3 buttons(links) in a row tha...
I have three node types
a-type
b-type
c-type
in my system c-type is child of b-type, and b-type is child of a-type.
b-type has one node-reference field of a-type only
c-type has two node-reference field for both a-type and b-type.
In the node of c-type I want to create a select-box of all nodes of b-type which which have the same ...
Hi,
I need a function for a plugin to check, if the shown account is the user's account or that from another one. I am using this function for that:
global $user; $account;
$account = user_load(array('uid' => arg(1)));
if ( $user->uid == $account->uid ) {
}
I am doing that inside a module but it does not work. When I go to my profi...
Drupal provides these two methods for iterating through a db_query() result. For example,
$users = array();
$result = db_query('SELECT uid FROM {users} WHERE status=0 AND login=0');
while ($row = db_fetch_object($result)) {
$users[] = $row->uid;
}
However, it seems that db_fetch_array($result) could be used just the same here, onl...
I'm updating a node with nodeapi update, but there's more that I need to do behind the scenes which requires me to know the old value of a field/ Is there a way I could get the old value of a field before it's overwritten.
...
I'm looking for a google search module that uses the 'Google Custom Search API' so that I can pull the results and theme them on my page.
I know about the google_cse module. But that module does not let you customize the look of the results pulled because it's doing it via an iframe. What a I'm looking for is more like what you s...