I'm working on my first drupal site, and I feel like I'm missing something really obvious. I've created a content type as a node in CCK, and it works fine. There are a couple of custom fields, one an emfield for youtube videos and the other a 'video description field.' The problem I'm having is in customizing the display of this content.
By default, the content displays like this:
sidebar-left | center | sidebar-right
| video |
| description |
What I want is this:
sidebar-left | center | sidebar-right
| video | description
| |
I've made a [content-type].tpl.php file, but both fields are actually printed through the $content variable, which makes something like this really ugly (maybe impossible) to do in CSS. Is the easiest approach here to access the individual fields as values in the content array, and the print them in their own separate divs? Isn't there a simpler way to do this?
What I'm really hoping is that I can make a block for the content-type that displays just the video field, make a block from the same view with the description, and then stick both blocks on the same page so that when /video/example-video is accessed, the example-video video appears in the center, and it's related description appears in the sidebar. I can't seem to make that work though.
Any insight would be greatly appreciated.
Comments
It sounds you want to display
It sounds you want to display the node as one normally does but under the display fields tab (when editing the content type) hide the description field.
The easiest way the to show the description field in a block is to probably use the CCK Blocks module.
CCK Blocks works great
This is exactly what I was looking for - thanks for the quick response.