adding submit button to the top of forms

I tend to do a heck of a lot of mousewheeling to get down to the submit button. Is there an easy way to duplicate the row of buttons at the top of forms, or to add at least a submit button?

Thanks!
Chris

help with db_query_temporary pls

Goal : say I have a term (term-a) i am trying to create a list of all terms used in nodes that use term-a

First I try to create a temporary table listing the nid's of nodes that have term-a (tid = 4)

$sql = "SELECT nid FROM {term_node} tn WHERE tid = '4'";
$result = db_query_temporary($sql, 'tmptable');

so far so good I think..

CCK, Contemplates help please!

My problem is with links created with the CCK link module. Specifically, none of my links are showing up. In my database under "node_field_link_data" all of the information for the links is there but on actual web pages the links do not show up.

One example can be seen at http://chibabeat.com/upper_float_mexican_bar_grill

Link data has been entered in for Website and Map Url's but there is no output on the page.

Also an example of the code I am using in contemplate is this one

CCK preview error at addnode

I have CCK running. When pressing preview on addnode I get quite few errors to logs.
Perhaps the challenge is that how e.g., a computed field should work at preview. It seems that the value of computed field gets defined as the node is submitted and stored to databased not at preview.

My situation:
* CCK field has exercise duration and distance. Speed is calculated based on those two.
* As in preview noting is stored to database speed gives divided by zero.

How to get e.g., computed field value defined at preview?
Any pointers to how preview works (e.g., how nodevariables or CCK fields should be handled) ?

=========== errors =====================

mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /var/www/themes/friendselectric/node-content_peruslenkki.tpl.php on line 22.

mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /var/www/themes/friendselectric/node-content_peruslenkki.tpl.php on line 30.

mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /var/www/themes/friendselectric/node-content_peruslenkki.tpl.php on line 64.

mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /var/www/themes/friendselectric/template.php on line 138.

Invalid argument supplied for foreach() in /var/www/modules/node.module on line 374.

Dual or Split Drupal Pages

My drupal page is here: http://www.worldtradelaw.net/community/ Is it possible to set up a completely separate set of drupal pages, with different display options, header, images, etc., with the same installation? For example, could I set up a separate sub-directory (e.g. http://www.worldtradelaw.net/community/example) that would have its own features?

Thanks,

Simon

How to get breadcrumb for cck content type?

Hello!
I noticed that for any cck content type, on viewing a node created using a cck type, the breadcrumb is not set. This seems different from say a story or page node where on viewing a story/page, it shows the breadcrumb trail.

How do I set the breadcrumb for a cck content type to behave similar to a core content type?

the $breadcrumb variable only has 'home' and not the trail, is there an easy way to manually 'build' $breadcrumb from within say template.php?

For core nodes (blog), the breadcrumb on viewing is:

Pages

Subscribe with RSS Subscribe to RSS - Drupal 4.7.x