Welcome, Guest
Username: Password: Remember me

TOPIC: [CLOSED] try to add comments

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

  • Nicolas
  • Nicolas's Avatar
  • Offline
  • Premium Member
  • Posts: 82
  • Thank you received: 12
  • Karma: 6
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:
Last Edit: 16 Feb 2019 18:55 by Nicolas.
The administrator has disabled public write access.

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

  • admin
  • admin's Avatar
  • Offline
  • Administrator
  • Chef
  • Posts: 3711
  • Thank you received: 984
  • Karma: 140
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
The administrator has disabled public write access.

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

  • Nicolas
  • Nicolas's Avatar
  • Offline
  • Premium Member
  • Posts: 82
  • Thank you received: 12
  • Karma: 6
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 ?
The administrator has disabled public write access.
Time to create page: 0.085 seconds

Get Started