Hello !
I am working on a Music-Label-Site with the usal categories.
To add a new Band/Artist, i have created a contenttype "artist_main", where (more or less) static content like the biography, a picture, a description, year of foundation etc.. is written into. Every artist has his own taxonomy term(of course). Furthermore there are content-types like Albums, where mp3-snippets, videos etc can be uploaded. This stuff is linked through taxonomy perhaps also through CCK_Node_reference (but this is not so important).
Now, on the most pages, there has to be an "Artists"- Block with just the portrait_Images of all the artists, which is clickable and links to www.xxxx.com/artists/artistx .
I made a "block"-view which shows the Portrait_images of all bands, but there is just the automatic possibility to link to the refering node. So i made this picture not linkable, and created a views-list-ArtistPicture.tpl.php, added some code to template.php, which i took of the theme-wizard. Okay, now i can change my view:
I want to now just create a linked picture with something like:
<a href="/artists/<?php $artist ?>"> <img src="<?php $path_artistpicture ?>"> </a>
a)Now i dont know how to get the path of the picture which i can show with print $field_band_faces_fid ...its an array. I could read it out with php, but thats such an unclean solution.
b)i get $artist either with
$artistcategories = taxonomy_node_get_terms($nid);
.... but this is also unclean, because its also an array, which i have to loop through...
So it looks like, i have to folly load each node with $node = node_load($nid); and get my datas out of this.
But... if i have >50 artist... i think this will become a performance problem !
What can i do ?
Felix