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.195 seconds

Awards for the best Joomla app. This product is gonna win an award for this amazing job. Cook Self Service is the the best application from all over the Joomla universe ! It brings Joomla to a professional level really advanced for developers. It is a real fun to develop with it. The ACL part and security checks implementation are just... so much hours saved. I can now concentrate myself more on the design part and the creative works. Thank you so much. Guys I offer you all my congratulation ! Keep up the works because Joomla is needing it to increase the quality of extensions availables on the JED. I also learned a lot because I can see how to code at the proper place and I found all my answers reading the forum.
lack_hanson (JED)
          

Get Started