Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1

TOPIC:

[CLOSED] try to add comments 12 Nov 2018 18:58 #15623

  • Nicolas
  • Nicolas's Avatar Topic Author
  • Offline
  • Premium Member
  • Premium Member
  • Posts: 83
  • Thank you received: 12
Hello everyone.
As explained in the title I'm trying to add comments on my component.

I am on a helpdesk project and I would like to add a discussion system in the tickets.
i think the easiest way is make a comments system by adding a form in the ticket page, but I can't add a text box "comments" with the FK to it added in the right table.

Existing comments are well displayed, but not user names. I am a little lost if someone can help me.

you can find attached my database

Thank you very much in advance
Attachments:

Please Log in or Create an account to join the conversation.

Last edit: by Nicolas.

try to add comments 14 Nov 2018 22:42 #15624

  • admin
  • admin's Avatar
  • Offline
  • Administrator
  • Administrator
  • Chef
  • Posts: 3711
  • Thank you received: 986
You need to achieve that manually, using N:m

One leg (FK) to the item (article)
One leg (FK) to the user

The value of the text field should NOT be stored in the article. The form values must be catched BEFORE saving and creating a new N:m record
It would be long to explain in details, but that's the basic idea
Coding is now a piece of cake

Please Log in or Create an account to join the conversation.

try to add comments 26 Nov 2018 18:23 #15628

  • Nicolas
  • Nicolas's Avatar Topic Author
  • Offline
  • Premium Member
  • Premium Member
  • Posts: 83
  • Thank you received: 12
Salut l'admin !

would not it be simpler to create a brick form in the layout and modify the toolbar to record the written comment ?

Please Log in or Create an account to join the conversation.

  • Page:
  • 1
Time to create page: 0.079 seconds
  I still don't believe he can really be human to do all this ! From all of the forums that I've ever participated in this is certainly the one that most encapsulates the feeling of being truly open source where everyone's opinions and contributions can and will shape the development of the service! It's truly awesome! Hope you enjoy cooking and look forward to reading and contributing to any of the editorial work that you proposed too!! Thanks
Gez (audibleid - JED)

Get Started