By Dupal Idiot on
Dear Tech Friends,
How can I create a cutom view for a node type, example blog or product. I've done this with the help of custom template such as node-blog.tpl.php, but I failed in getting some custom images associated with that node as additional fields. I've to display 2 different images as per my custom design.
How can I get the uploaded file related variables in custom template?
If its not the solution my first statement need some answers related to custom view.
So please help me with either custom view or custom node template
Regards,
Richard
Comments
Hi Richard, So you are saying
Hi Richard,
So you are saying that your custom content type has two image fields? Do you have the Developer module installed? If so, you can add the code
<?php dpm($node) ?>to your custom node template, and view all the variables that are available. (If you don't have the Developer module, you can do<?php print_r($node) ?>, but it will be messier.You should be able to get all the information you need on how to print those variables from that output. But let me know if you need a hand.
Amanda
I agree with Amanda: you
I agree with Amanda: you should try with Developer module.
You can try with Content Template module too.
Good luck!