In CCK I've created a new content type called Artists, which allows me to enter details of artists we currently work with, or have worked with in the past. So far, it's defined as such:
- Artist Name - title
- Active Artist - field_active_artist - Text
- Artist Website - field_band_website - Link
- Artist Forum - field_band_forum - Link
- Artist Merchandise - field_band_merchandise - Link
- Artist Mailing List - field_artist_mailing_list - Text
- Artist Picture - field_artist_picture - Image
Now, once I have entered all the details I want to be able to view the page, but the problem is all the fields show. I want to customise the view for a node view to only show the title, the body (which isn't listed here but part of the content type), picture, mailing list signup form and the links - I don't want active artist to show, as this is only for my list view page where I list the artists we work with.
I've tried to create a node view, but the template generator only outputs for a list type. Also in each content item, I've already defined the menu I want to use, but the view will only let me define one URL, and I'm not sure what $arg I can pass into it?
Any help will be much appreciated.
Comments
use contemplate
This is what the contemplate module is for.
cck and contemplate make drupal IMHO.
Using 5.x
I'm currently using the HEAD version from the CVS, and I can see that contemplate has not been updated for Drupal 5 yet, I had noticed a few posts talking about this, also one about creating a node-content_cck_artists.tpl.php file (as artists is my CCK type) but I've tried that along with creating a view in Views, but with no luck :(
did u manage this?
it wld be nice to know how u do it..i have something similar to do..want to have certain cck fields aligned in certain ways in output..and make things look better.
thanks
However,sometimes
However,sometimes contemplate is not enough and you might be better off using a custom node.tpl.php file. Its more hands on..but more flexible and less modules to keep up with.
would it be possible to post
would it be possible to post an image here of what you really see when you make your own node? both the form and the outcome? Thanx.
Authentically,
BassPlaya