Hi all,
I have a suggestion and I also need some help.
My suggestion is that there should be a separate block for the front page. I have done a bit of work copying the original block to give a second block that mimics the usual 'recent ads' block. That way I can have the block with recent ads on the side and on the front page.

However, I'd like to add some code to put the 'teaser' on the front page block.
Here's what I've got so far from the ed_classified_utils.inc file

/**
 * Get a list of latest ads for FRONT PAGE block use
 * need to put in code to get 'teaser' from 'node_revisions' db table. 
 */
function ed_classified_get_latest_ads_list_long() {
  $q = db_query('select title, nid, created as timestamp, changed from {node} where type="ed_classified" AND status = 1 ORDER BY created DESC LIMIT %d;', _ed_classified_variable_get('block_latest_limit', 10));
  return theme('ed_classified_ads_block', _ed_classified_query_results_to_array($q), TRUE, FALSE, TRUE );
}

So what I think I'm seeing is that the function is reading from the 'node' table of the DB and I want it to read the 'teaser' from the 'node_revisions' db table.
How can I make that happen?

Another question is how to put a picture (if one has uploaded) with the brief description (teaser). Is that possible? I'm using node images for picture uploading (if that matters)

As always your help is greatly appreciated
JR

Comments

jack_ruby’s picture

Status: Active » Fixed

I think I've got this problem licked using 'views'.
yay!

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.