Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
By Rosamunda on
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
Have you turned the
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.
yes
Thanks for your reply anner.
Yes, I´ve done that... but still they doesn´t appear...
<?phpprint