Is possible show my custom CCK Date field instead the node post date in the search result?

I know how to hide the node info (user, date, comments) but I don't know how call any other CCK field.

Sorry if this is duplicated

Comments

masher’s picture

Status: Closed (fixed) » Active

I achieved this it by adding:


<?php  $timestamp = strtotime($result['node']->field_date[0]['value']);?>

<?php print format_date($timestamp, 'custom', 'jS M Y') ?>

into search-result.php

markus_petrux’s picture

Status: Active » Fixed

Thanks masher. I think that's correct.

@RAFA3L: In case of doubt about how to format a Date field, please file a support request to the Date module queue. Thanks.

Status: Fixed » Closed (fixed)

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

Status: Active » Closed (fixed)