Download & Extend

Add link @ the bottom of Latest Clissifieds to ed_classified; remove "Category:" prefix from category listing

Project:Classified Ads
Version:6.x-3.x-dev
Component:User interface
Category:feature request
Priority:normal
Assigned:Unassigned
Status:active

Issue Summary

Well, i dont really need it but it would be nice if a user could see a link at the bottom of the Latest Classified Ads block. The link would point to the URL: ed_classified

On another note, remove the "Category" text next to each Taxonomy Term. It's repetitive at this time.

Thanks.

Comments

#1

Title:Add link @ the bottom of Latest Clissifieds to ed_classified» Add link @ the bottom of Latest Clissifieds to ed_classified; remove "Category:" prefix from category listing

#2

Status:active» postponed

RE the "Category:" text removal - I've committed this fix to the DRUPAL-5 and DRUPAL-4-7 branches. Get the next dev build or wait for the next release.

RE [more] link in the latest ads block: I don't include a 'more' link because the module doesn't provide a listing of ads by date (recent ads). The URL /ed-classified just shows the categories with the last ad created in each category... not very useful, I think. I'll look into enhancing this in later releases, but for now: One can easily create a view using the Views module that will provide the feature you are looking for, and use the views-based block. You can import the following into the Views module (do not include the

<?php
....
?>
tags) and use this block instead of the standard latest classified ads block.

<?php
  $view
= new stdClass();
 
$view->name = 'ed_classified_lastest';
 
$view->description = 'Latest classified ads';
 
$view->access = array (
);
 
$view->view_args_php = '';
 
$view->page = TRUE;
 
$view->page_title = 'Latest Classified Ads';
 
$view->page_header = '';
 
$view->page_header_format = '1';
 
$view->page_footer = '';
 
$view->page_footer_format = '1';
 
$view->page_empty = '';
 
$view->page_empty_format = '1';
 
$view->page_type = 'node';
 
$view->url = 'ed-classified/latest';
 
$view->use_pager = TRUE;
 
$view->nodes_per_page = '10';
 
$view->block = TRUE;
 
$view->block_title = 'Latest Classified Ads';
 
$view->block_header = '';
 
$view->block_header_format = '1';
 
$view->block_footer = '';
 
$view->block_footer_format = '1';
 
$view->block_empty = '';
 
$view->block_empty_format = '1';
 
$view->block_type = 'list';
 
$view->nodes_per_block = '3';
 
$view->block_more = TRUE;
 
$view->block_use_page_header = FALSE;
 
$view->block_use_page_footer = FALSE;
 
$view->block_use_page_empty = FALSE;
 
$view->sort = array (
    array (
     
'tablename' => 'node',
     
'field' => 'created',
     
'sortorder' => 'DESC',
     
'options' => 'normal',
    ),
  );
 
$view->argument = array (
  );
 
$view->field = array (
    array (
     
'tablename' => 'node',
     
'field' => 'title',
     
'label' => '',
     
'handler' => 'views_handler_field_nodelink_with_mark',
     
'options' => 'link',
    ),
    array (
     
'tablename' => 'node',
     
'field' => 'created',
     
'label' => '',
     
'handler' => 'views_handler_field_date_custom',
     
'options' => 'M j Y',
    ),
  );
 
$view->filter = array (
    array (
     
'tablename' => 'node',
     
'field' => 'status',
     
'operator' => '=',
     
'options' => '',
     
'value' => '1',
    ),
    array (
     
'tablename' => 'node',
     
'field' => 'type',
     
'operator' => 'OR',
     
'options' => '',
     
'value' => array (
 
0 => 'ed_classified',
),
    ),
  );
 
$view->exposed_filter = array (
  );
 
$view->requires = array(node);
 
$views[$view->name] = $view;
?>

#5

Status:postponed» active

Bumping version: features will only be considered for the latest and next versions (was 5.x-1.5-5)

#6

Version:5.x-1.5-5» 6.x-3.x-dev