O'reilly 所出版的 "Using Drupal" 實在是本不可多得的好書!

2009年5月22日 星期五

Drupal 內建 Upload module 的缺點

缺點:







  1. 所有的內容形態都能夠上傳附加檔案,但實際上常常網站只希望讓某些特殊的 Content Types 具有此一功能。







  2. 所有檔案都儲存在檔案的根目錄中,檔案一多非常難管裡。







  3. 每個節點都允許無限制的附加檔案,雖然很強大,但常常希望只允許單一或是有數量限制的附加檔案。







  4. Uploading a file with the Upload module requires expanding a "File attachments" fieldset, but often a file is a prominent part of a piece of content, so this "digging down" requirement is not desirable.







  5. 只能適用針對全站設置的檔案大小、格式限制,但常常會希望針對不同的節點或內容形態,能夠設置不同的限制。







  6. The Upload module does not allow you to have more than one file browse field or to name it something specific.






解決方法當然是利用 CCK + FileField 來解決,這也是必備技巧。






沒有留言:

張貼留言