I have a custom content type with an Image field. I've set a default image for this field which works briefly, before the field empties. I've checked sites/default/files/default_images directory where the file appears when first uploaded. I can be working on the site and seeing the default image without any issues but then it disappears completely (wondered if it might be related to logging out of the site?) Checking the default_images directory confirms the file has been deleted.
Peeps,
Ive got a custom view setup for an RSS feed. Handles all the normal stuff just fine. The issue I have is that Ive added one custom CCK field (name:field_file) to handle the uploading of a file. Im trying to print out this field value in the view template (views/theme/views-view-row-rss.tpl.php) and cannot find a way to do so.
I'm trying to display the submitted date two different ways on a node. One of them is simply the month and day. I'm trying to do this by using this function in the template.php file:
function ivorypearl_preprocess_node(&$vars) {
$node = $vars['node'];
// Variables for the calendar date display.
$vars['month'] = date('M', $node->created);
$vars['day'] = date('j', $node->created);
}
Then in the node.tpl.php file I am using the following: