This forum is for less technical discussions about the Drupal project, not for support questions.

Multiple login types and posting and editing restrictions

I'm setting up a site that will include a directory that local companies will be listed in. My goals/challenges are:

How to display last x with node-type.tpl.php

Is there a way to display the last x nodes using a different node template, like node-columns.tpl.php, based on taxonomy with a list limit? I'm trying to include it on page.tpl.php.

The following (working) code displays the last 3 items from taxonomy id 11.

<?php
  $listlength = 3; // [maximum] number of titles to show.
  $taxo_id = 11;  // the desired term ID.
  $res = db_query_range(db_rewrite_sql("SELECT n.nid, n.title, n.created FROM {node} n INNER JOIN term_node ON n.nid = term_node.nid WHERE term_node.tid = $taxo_id AND n.status = 1 ORDER BY n.created DESC"), 0, $listlength);
$output .= theme('node', $anode, $teaser = FALSE, $page = FALSE);
  print $output;
?>

The following modified code did not work with the defined node template:

<?php
  $listlength = 3; // [maximum] number of titles to show.
  $taxo_id = 11;  // the desired term ID.
  $res = db_query_range(db_rewrite_sql("SELECT n.nid, n.title, n.created FROM {node} n INNER JOIN term_node ON n.nid = term_node.nid WHERE term_node.tid = $taxo_id AND n.status = 1 ORDER BY n.created DESC"), 0, $listlength);
$output .= theme('node', $anode, $teaser = FALSE, $page = FALSE);
    include 'node-columns.tpl.php'; /*load node-columns.tpl.php */
    return;
  print $output;
?>

I also tried modifying node.tpl.php to load a different template, but it did not work either. I'm sure it's because the taxo id isn't usable.

Turn off pager for flexinode table?

This seems like a simple problem: I have quite a few rows for a certain flexinode content type (when vieing in a table) and I would like to simply force flexinode to list all of these entries in a single page, rather than splitting the table view across two pages. I changed the maximum posts to list for the general flexinode settings, but this did not do the trick.

Any suggestions would be appreciated. Can I do this in a template file?

Drupal CMS workflow diagram???? Anyone?

Does anyone have a link to a decent workflow diagram of the Drupal CMS? If so, I would really appreciate the help!

feature request

Is there a way in Drupal to keep track of hits to URLs from within a drupal page? I am looking for something like :

Melbourne Esperanto Association Links

where the number of hits to a link from the page is provided. (kind of opposite of referrer URL).

I have looked a bit at the module list but haven't found anything... if it doesn't exist, then I'd like to propose it as a feature request ;)

thanks in advance,
boriso

Adidas Teamgeist ball looks like druplicon

The new world cup ball looks a little like the druplicon (drupal logo)....

see ball

sigh.

maybe it's just me.

Pages

Subscribe with RSS Subscribe to RSS - General discussion