Hi everyone,

I am in need of some PHP coding support. I will try and explain as best I can..

On my site I have created a rating and review system for study abroad programs. I use the Five Star module for a simple rating, and created a custom content type with CCK fields for the review. I used the Node Relativity module to connect each review with the correct program.

So far I have been able to get this working such that a user can select from a list of study abroad programs, complete the form, hit save, and the review will automatically be displayed at the bottom of the selected study abroad program.

My problem however, is that the review is also being displayed in my node teasers. I don't want this. I would think this would be a simple fix, but so far I haven't been able to get a solution working. I have found other Drupal users have had similar problems, but I don't understand how to implement the suggested solution:

From: http://drupal.org/node/563760
--
Yes it is. Its just a thing of your theming. You have to create a .tpl.php for your parent-nodetype, where you

<?php
print $node->content['relativity_children']['#value'] 
?>
to give out your childrennodes, and wrap this print with a
<?php
if $page: 
?>
<?php
endif; 
?>

--

I don't have a strong PHP background, so I am not sure how to implement this solution. Any assistance would be greatly appreciated!

Cheers,
Andrew

Comments

dunklea’s picture

Any help at all? I still have not had any luck getting this to work properly..