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

How do I display teasers in alphabetical order (by last name)?

I know how to pull nodes from a certain taxonomy and display various information of that node. I have kind of a php question. I need an easy way to sort the nodes by a field, actually the title because the title is the first and last name of the person.

Now if there is an easy mysql fix I'm all for that. Fail that I need to put the nodes into an array and maybe parse some strings so that I can spit them out in alphabetical order by last name.

Any ideas on the easiest way to do this?

Thanks

301 redirect url

Hello,

I was wondering if anyone could help me. I want to 301 rediect a url. I want this done:

http://www.mydomain.com/index.php 301 redirected to: http://www.mydomain.com

Can anyone help me please?

Thanks,
Joey.

excerpt.module with tinyMCE, 4.7.0.rc1

Trying to use excerpt.module from CVS with tinyMCE.module from CVS. tinyMCE 2.0.4, drupal.4.7.0.rc1

On every "Submit" and also "Preview" I see <*><* /> </*> tags added to excerpt. No such tags added to body or title. I ended up adding str_replace in excerpt.module:

hook vs. nodeapi

Hello,

I'm relatively new to drupal and am in the process of writing my first few modules.

I have a question about the differences between using the various hook_ functions (hook_insert, hook_delete, etc...) versus hook_nodeapi.

disknode in 4.7 still uses form_checkbox()

I downloaded disknode from 4.7.x but received a file named "disknode.4.6.0.tar".
Nevertheless, I tried to install and yes .. does not work.

Seems that disknode in this tarball still uses form_checkbox(). Thought that this function is eliminated.

I wonder whether there is a patch or update available?

Help with a SQL query

It must be late at night. I'm stumped by what should be a really simple query. Here's the db schema and data:

mysql> select * from mms_node;
+-----+--------+-------+
| nid | mms_id | realm |
+-----+--------+-------+
|   1 |     20 |     2 |
|   1 |      4 |     1 |
|   6 |      7 |     2 |
|   6 |      1 |     1 |
|   7 |     10 |     2 |
|   7 |      2 |     1 |
|   5 |      8 |     2 |
|   5 |      1 |     1 |
+-----+--------+-------+
	
mysql> select * from manufacturer;
+----+------------+
| id | name       |
+----+------------+
|  1 | Alabama    |
|  2 | Arkansas   |
|  3 | Canada     |
|  4 | Delaware   |
|  5 | California |
+----+------------+

mysql> select * from model;
+----+--------+----------+
| id | man_id | name     |
+----+--------+----------+
|  6 |      1 | Aardvark |
|  7 |      1 | Anteater |
|  8 |      1 | Animal   |
|  9 |      2 | Albino   |
| 10 |      2 | Banana   |
| 11 |      2 | Book     |
| 12 |      5 | Cookie   |
| 13 |      5 | Dog      |
| 14 |      3 | Canoe    |
| 15 |      5 | Eagle    |
| 16 |      3 | Elefant  |
| 17 |      4 | Duck     |
| 18 |      4 | Dingo    |
| 19 |      4 | Dragon   |
| 20 |      4 | Dolphin  |
+----+--------+----------+

What I want is this:

+-----+-------------------+------------+
| nid | manufacturer_name | model_name |
+-----+-------------------+------------+

Pages

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