Tag field type #141
Labels
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: joomla/Component-Builder#141
Loading…
Reference in New Issue
No description provided.
Delete Branch "%!s(<nil>)"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
How exactly does the tag field type work? You can add it to an admin view, but it doesn't create a db field, so guessing that it links to the tag table. But then, if you try adding to a dynamic get, so you could filter by tag, or display tags, it doesn't work.
The option to filter by tag has not been fully developed yet. At this time you will have to custom code that.
But yet it does add it to the tag table and uses the Joomla API surrounding the tags.
i have question for File form field type :
https://docs.joomla.org/File_form_field_type
when user browse file & submit form nothing happened! is necessary we have to create custom code for Receiving The File With PHP ? https://docs.joomla.org/Creating_a_file_uploader_in_your_component & that should done in after save method ?
what if we have several file fields ? we have to create reciver for each fields? (foreach maybe?) .
The uploading of files is best done with media field. If you want to do your own file up loader, yes then you would need to add the custom coding.
I did a project where I needed to upload many files and so I build an up loader (many custom scripts) that I can now use in other components. So it can be done 👍
I have not yet made those scripts available to the public.
But a few tips, use a note-field with ajax instead... look at this https://getuikit.com/v2/docs/upload.html
Then in the ajax area add some controllers to catch the post and move the files where you please.
Here is some of the script I used in my ajax "model"
You will see that these scripts will not work unless you know how to adapt it into your own project. So I am not sure if this will even help. But at least it will give you an idea of why using media field is easier.
@sepehr09 would you like JCB to do all of that for you? I am thinking we could in the future have that build in... if you are willing to help 👍