Hello everyone:

I used to assist CCK a contemplate module, how let it in the home pagedemonstrate I joined voting module (nodevote)? How does the codewrite?

<div class="field field-type-text field-field-text">
  <h3 class="field-label">text</h3>
  <div class="field-items">
    <?php foreach ((array)$field_text as $item) { ?>
      <div class="field-item"><?php print $item['view'] ?></div>
<?php print $nodevote->vote_display ?>
    <?php } ?>
  </div>
</div>

The in code prompt has these:contemplate:
$nodevote (object)
$nodevote->vote_display (integer)
1
$nodevote->vote_do (integer)
1

Thanks

Comments

dancewolf_88’s picture

NodeVote Download here http://drupal.org/project/nodevote

WillieBHines’s picture

I am not familiar with nodevote.

Are you trying to get something to appear on the front page?

Does nodevote provide a "block"? If so, you could go to "administer->blocks", and set the nodevote block to appear in the "left sidebar."

dancewolf_88’s picture

Thanks for your answer!
But, what I want isn't so
I hope it show at contemplate for CCK~

laura’s picture

Hello dancewolf,
I have the same problem. Has anybody provided you with a solution that you could share with me?
Thanks.
xLaura

laura’s picture

I just need the piece of php that goes into my contemplate teaser and body fields.
Anyone?

Bests, Laura