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

Real time saver and great Component Builder tool ! I have been developing with J-Cook Pro Component Builder for several months now and can say with all honesty that this product/service is second to none. The product is feature rich and is being improved and added to all the time. Do yourself a favor if you need to build a Joomla! Component then you can do no wrong in trying the product. You will save on time and effort while being able to deliver your project on time. J-Cook pro does the hard work for you you then have the freedom to fully customise the end result for your own needs. 

One word: Awesome.
Edwardcox (JED)
         

Get Started