Hi there!
I´ve been reading about showing and theming files using flexinode.
Where and how you should show the flexinode that is a file.

This is not my case.

I´ve been using this code:

<?php if ($files): ?>
<div class="files">
<ul>
      <?php foreach ($files as $file): ?>
Download here:<br>
<li><a href="<?php print base_path() . $file->filepath; ?>"><?php print $file->description; ?></a></li>
      <?php endforeach; ?>
</ul>
</div>
<?php endif; ?>

To show the files that I´ve upload using the upload.module inside flexinodes.

Now I´ve used the attachment.module, and with that code files simply doesn´t show up...
The onlu appear in pages bot won´t do in flexinodes.

What can I do? is that code correct with attachment module?
How can I do?

Thanks in advance!!!

Rosamunda

Comments

anner’s picture

Have you turned the attachment module on for your flexinode content types? This is under administer -> content -> configure -> content types -> your content types configure screen in 4.6.

Rosamunda’s picture

Thanks for your reply anner.
Yes, I´ve done that... but still they doesn´t appear...

amnon’s picture

print theme('attachments', $node);