We have a business website I'm trying to migrate to Drupal 7 We have a custom download system that was implemented as a custom page in native PHP - wich is terrible and I want to convert it to a Drupal module.
I've searched, but haven't fount any modules that would satisfy all of my needs. That's why I want to build a custom module (either from scratch or modifying a contrib module). I just need some starting points.
What I need:
- I upload all files via FTP, I don't want to use Drupal for that as there are large files and they are problematic to upload via HTTP
- I want to create document entities, each with multiple files for each language (i.e. "Terms and conditions" in several languages - one file for each language but only one document entity)
- I need to have lists (views?) of those document entities and I need to change the order manualy (like the order of Drupal menu items)
For example: I have 3 documents: "Terms and conditions", "Registration form" and "Company Presentation" - all three have English, German and Spanish translations. In the admin section I create the three document entities and select the different language files (from the files uploaded via FTP) for each document. Then I create two lists - one has all three documents in all languages, the other only has "Company Presentation" and without the English version. I create a node for each list.
When the visitor opens the node for list 1, they will see all three documents and can select (for each document) wich language version they'd like to download - 3 entries, each with selectable language. When they visit list 2 they only see "Company Presentation" and only with Spanish and German available.
The goal is to have a system of files where if I update a file, every list that contains that file is also updated and if I add or delete a file it is also reflected in all lists that contains that particular document I have added/deleted the file from. This way I only need to add a file once.
It's pretty complex but we have 13 languages (and growing) and it would be impossible to maintain all files separately.
Unfortunately I'm not a guru when it comes to Drupal modules. I have two ideas, but both have a fault at some point.
One idea is to create a custom content type for documents that can have multiple items for the files and then my module would handle storing and displaying. But this way, each document would have it's own node and I don't know how could I manage the list of them (i need to make custom lists, placing them individually)
My other idea is to create a vocabulary for the documents and each term would have custom fields for the files. But then how can I add a term to multiple lists?
I want to make it compatible with Drupal's standards and I'm lacking in such experience.
Can you please recommend any module I can use as a base or some directions on how to store or handle this type of datas? Like - do I pull and insert data directly from my module or should I use another Drupal module for this? I just need to get started, I can probably figure things out.
Thanks in advance.