HI i have created a content type call “mycontent”
it has 2 fields
Label: MyText , Name: mytext , type: Text
Label: MyImage , Name: myimage , type: Image
All good so far, I have create a custom theme and inside this i have included
‘node-mycontent.tpl.php’
my quesiton is, how do i get at the variables.
I wish to $mytext
I can render global variables ie $content
you might mention that you are using cck, imagefield, filefield (or whateever you are using).
cck automatically adds template variables for custom fields. they are accessible via
$field_<field-name>, eg.$field_mytextand$field_myimage. do avar_dump($variables)orvar_dump($field_myimage)etc. in younode-mycontent.tpl.phpto see how these variables are structured.cck for themers might also be of help.