Hide or Remove Article Date
We have an events channel. We use the reverse chronological order in the channel settings just for display purposes. However the dates that are displayed are nearly always different from the dates given in the articles, which is confusing to look at. Is there a way to hide or remove the date displayed under the workflow status of a story.
I had a look in the time and date settings and the story manager but didn't find anything.
if its not possible through the CMS can I hide it manually with CSS?
Any help would be greatly apreciated.
Infact I don't want any dates displayed in my events channel unless there is a way to organise the channel listing manually. The reason being is that some events we publish for last week may not happen untill next month, other events my happen in the week they are published. If I have to specify a date then next months event will be displayed at the top of the channel untill replaced by an event (story) with a later date. At the moment I have been setting the date to the day we publish the event http://viennareview.net/channel/59/stories
I'm sorry if I'm over complicating this, basically I was assuming that if I could hide the date that I have to chose when creating a story I could use it as a means to organise the channel. I can then manually display a date in the main content of the story.
Hmmm....
You could turn off the popup Date for all story teasers if you visit .../admin/content/node-type/story/display and set the value in column Teaser, row Date to <Hidden>. But since that affects all story teasers, you probably don't want that.
You'd need some way to restrict the effect to stories in your events section.
CSS might be a good way to proceed, else some custom logic in the theme would do the trick.
However, I'm not familiar with how you've constructed your events section so I'm hesitant to offer code examples if they are likely to be wrong. Care to describe how you've done events?
It consists of manually created stories and is constructed like any other channel using a reverse chronological order and other wise all other settings are left alone (is that what you meant?).
What do ou mean by custom logic 0_o sounds a bit out of my depth.really apreciate your help, thanks :)
Hi,
> It consists of manually created stories ... (is that what you meant?).
Yep. Just checking you weren't using some other automated functionality.
Normally something like this properly belongs in the theme, but sometimes it's more convenient and there are less changes if it's done in a module. Try the following snippet of code (which actually creates a custom module for you):
Create a directory .../sites/default/modules/viennareview
In that directory, create two text files viennareview.info and viennareview.module as follows.
viennareview.info:
; $Id;
name = "Vienna Review"
description = "Vienna Review customisations"
core = 6.xviennareview.module:
<?php
// Hide the date field when viewing stories of channel 59
function viennareview_nodeapi(&$node, $op, $a3 = NULL, $a4 = NULL) {
if ($op == 'view' && $node->type == 'story') {
// Check each taxonomy term to see if they correspond to term 59
foreach ($node->taxonomy as $term) {
if ($term->tid == 59) {
// Disable Date field
unset($node->content['field_date']);
unset($node->field_date);
}
}
}
}Then visit .../admin/build/modules and enable the module Vienna Review (in the Other fieldset).
This should enable your new module, which turns off the Date field for stories belonging to the event channel (channel number 59). If I've got the channel number wrong, just go ahead and change it.
Let me know how you go. Good luck.
Beng
Thanky you very much for talking me through this. I will let you know how I get on. Once again thank you so much for you help.
cheers
Cool, good. Thanks for letting me know.

Hi,
For story nodes, there are actually two date values. One is the node creation date/time (which is common to all ProsePoint nodes) - this is hidden by default. The other is the story node's Date field (which is the one with the popup calendar when you edit a story node).
For your events listing, the site might also be showing a story node's creation date/time, thus causing your two date values.
Do you know which of the two date fields you want to hide?