Hi there.
This is a very easy job for one who knows how to handle the template files, what i need is:

To be able to upload a pdf file, after uploading a file to a node, the user should see the title that I entered when uploaded the file.
sound easy? it is!

my skype is: eranglr
will pay only by paypal

thanks.
Eran

Comments

Anonymous’s picture

Go to yoursite.com/admin/build/modules/list and turn on the core Upload module. At yoursite.com/admin/settings/uploads set the allowed file types. That's it, you're done. ;) On the node editing pages you should see an upload widget, and after uploading a file you can rewrite the download link title to a more user-friendly name.

eranglr’s picture

That I don't know how to theme the appearnce of the file, example of I wish it do be done: http://z-ofakim.co.il/taxonomy/term/38

(Orange link under the text)

here's an example of what happened after I uploaded files: http://z-ofakim.co.il/node/70

So, there's two issues: 1. how to show the files in the "preview" node, and second - how to theme it.

Thanks!

JaredAM’s picture

Basically, if you open your node.tpl.php file you'll probably see something along the lines of

    <?php if ($links): ?>
      <div class="links"><?php print $links; ?></div>
    <?php endif; ?>

You can move that into the content area of your theme.

  <div class="content clear-block">
    <?php print $content ?>
    <?php if ($links): ?>
      <div class="links"><?php print $links; ?></div>
    <?php endif; ?>
  </div>

Now, if you want to change how the links look, you'll have to write a little module to modify that information.

Let me know if you need help.

Alexkor’s picture

To prevent modification of the core upload module, you can try this module.
http://drupal.org/project/itweak_upload

Modify its module and css files to meet your requirement ;-)