I am relatively new to theming and would like any insights on theming a page view of a cck node type.

My view is set up as follows:

Provide Page View: Checked
View Type: Full Nodes
Filter: Node Type = "meet_the_team" (cck node type)

My understanding is that i need to add a function to "template.php" to override the function used to create the above view. I read a good bit of materials on theming views but i could not find in which file to find the "built in" function involved in creating the above view.

If I knew which file to look in, i'd copy and paste the function into my "template.php" and edit it according to the instructions here Theming your Views (http://drupal.org/node/42597)

thnxs in advance...

Comments

Hunabku’s picture

So the function "theme_views_view_nodes" as shown in the "Theming Your Views" topic is extracted from the "views.module" file. I'm starting to get a better picture, but i'm still not clear how to do more granular theming by accessing the variables that make up the "$output" variable.

For example there is a line in each node that has when/whom submitted the node - ex "Tue, 08/21/2007 - 19:49 — MasterAdmin"

I'd like to remove this line - but alas i know not how.

Hunabku’s picture

Ok so what i really need to get granular with is $node, and my approach to do this was via the Contemplate module. However I still can't get rid of the submitted by/time stamp mention earlier.

Hunabku’s picture

I found out that you can easily turn off the authoring info per content type by going to Administer > Themes > Configure. That will do but it would be better if content template could handle that.

najibx’s picture

simply create

node-YOUR-CONTENT-TYPE.tpl.php as modify as you wish.

YOUR-CONTENT-TYPE is the content type being displayed by views. If your views is displaying more than fullnode content type, create both/all.

-najibx -
Drupal developer in Malaysia

derekwebb1’s picture

Hello,

I see you are trying to custom theme (or template) your views. So long as you are using Drupal 5.x you can use the Active Template module at http://drupal.org/project/active_template

Best regards, Derek
http://collectivecolors.com