Reply to commentReply to comment

It supports CCK. but, sure thing, it doesn't work with Content Templates.

this is a php snippets in my node-*.tpl.php, pubdlcnt doesn't work!

  1.         <?php
  2.           if($node->field_link_download){
  3.             foreach($node->field_link_download as $view){
  4.               print  '<li>'.$view['view'] . '</li>';
  5.             }
  6.           }
  7.         ?>

I fix it as follows:

  1.         <?php
  2.           if($node->field_link_download){
  3.             foreach($node->field_link_download as $view){
  4.               print  '<li>'.'<a href="/sites/all/modules/pubdlcnt/pubdlcnt.php?file=/' . $view['filepath'] . '&amp;nid='.$node->nid.'">' . $view['filename'] . '</a></li>';
  5.             }
  6.           }
  7.         ?>

But it's too complex, and I don't know how to output counts.Hope fix this,thanks a lot :)

Reply

  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Lines and paragraphs break automatically.
  • You can enable syntax highlighting of source code with the following tags: <code>, <blockcode>. The supported tag styles are: <foo>, [foo].

More information about formatting options

CAPTCHA
This question is for testing whether you are a human visitor and to prevent automated spam submissions.