In the full node view of an Audio node, I would like to hide the text that displays Length and Format underneath the flash player.

Comments

sgriffin’s picture

Use ckk/contemplate

You can format everything just the way you want.
Or use views.

This is exactly what these modules are for.

drewish’s picture

Category: support » feature

i guess it would be nice to make those optional as well... though sgriffin is correct you could do this via theming.

capellic’s picture

Version: 5.x-1.2 » 5.x-1.3

I am stuck. I want to create a custom View or use CCK/Contemplate to override the "$node->body" default and only display a subset of the following fields like Aaron. I am specifically interested in isolating the Flash Player.

CONTEMPLATE

First I tried to use Contemplate. I found that I could easily access all the fields that are otherwise in the $node->body field (as documented below). I am wondering why the Flash player doesn't have its own field? From what I can tell, it only appears in the $node->body?

- Flash Player: ???
- Artist: $node->audio_tags['album']
- Title: $node->audio_tags['title']
- Album: $node->audio_tags['album']
- Track: $node->audio_tags['track']
- Year: $node->audio_tags['year']
- Length: $node->audio_fileinfo['playtime']
- Format: $node->audio_fileinfo['fileformat']

VIEWS

In the Fields section of the "audio" view override, I see this: "Fields are only meaningful with List view and Table View; they allow you to choose which fields are presented and in what order." So it doesn't look like Views is an option.

sgriffin’s picture

The flash player is something static and doesn't need to be stored for every node. Just create your code in contemplate for any flash player you want and go. You may need a little basic training on drupal first, so step back for a couple days and check out the handbook section on drupal basics.