I'm a novice Joomla developer working in a couple of components, and I need to attach documents (pdf and doc) in one of them, and images to the other.
I've already built a backend to the components, without the attachments part and I've already defined the tables to store the attachments and so.
And my problem is that I don't know how to start. If I'm not wrong, the behavior must be:
- If the component is in create mode, don't show anything about attachments
- If the component is in edit mode, show the currently attached documents and an input field of type "file" and an "attach file" button.
- When a file is uploaded, I must add it to my attachments table (only information data) and move the file to the uploads directory.
So, if I'm not wrong, I know how all the procedure must work, but I don't have a clue about how to implement this. Do you know any tutorial or documentation about this?
Thank you a lot!
--
You received this message because you are subscribed to the Google Groups "Joomla! General Development" group.
To unsubscribe from this group and stop receiving emails from it, send an email to joomla-dev-gene...@googlegroups.com.
To post to this group, send an email to joomla-de...@googlegroups.com.
Visit this group at http://groups.google.com/group/joomla-dev-general.
For more options, visit https://groups.google.com/d/optout.