开发者

Creating downloads for a 'page' content type

开发者 https://www.devze.com 2023-03-06 15:39 出处:网络
I need each \'page\' node to have a number of downloads attached to it. So if I have a page called \'about me\', the downloads could be:

I need each 'page' node to have a number of downloads attached to it. So if I have a page called 'about me', the downloads could be:

  • cv.pdf
  • tax_return_2010.pdf
  • what_I_like.pdf

开发者_JAVA技巧There may be up to 10 downloads attached to a node.

I need the ability to add a title too.

Any help would be appreciated.


The default Drupal "File Attachment" functionality will do this for you. You can enable it in the admin area under Content -> Content Type -> (Your Content Type). Go to the "Workflow Settings" and enable "Attachments". Then you will see the "File Attachment" dialogue on all nodes of that type. You can upload files to it and choose to "List" them at the bottom of the node. There's even a box to type in a description/title for each file you upload.

0

精彩评论

暂无评论...
验证码 换一张
取 消