Welcome, Guest
Username: Password: Remember me

TOPIC: How to add note to form?

How to add note to form? 1 year 8 months ago #48

  • lip420
  • lip420's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 18
  • Karma: 0
Hi~
I am trying to add a note like, "your email won't be published" to the form. I have been looking in views trying to find the H4 Comments but can't find it. How can I add this?
The administrator has disabled public write access.

How to add note to form? 1 year 7 months ago #70

  • admin
  • admin's Avatar
  • OFFLINE
  • Administrator
  • Posts: 58
  • Thank you received: 9
  • Karma: 5
You could use a template override.
- create a file in /templates/you template name here/html/com_content/comments/default.php
- copy the content of the file "components/com_slicomments/view/comments/tmpl.php" to the file created before
- modify whatever you want, your changes wont be replaced if the component is updated.
The administrator has disabled public write access.
The following user(s) said Thank You: lip420

How to add note to form? 1 year 6 months ago #75

  • lip420
  • lip420's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 18
  • Karma: 0
"components/com_slicomments/view/comments/tmpl.php"

Hi~
I looked but there is no file there named that. So I don't know which file to change or where to put the change.
Last Edit: 1 year 6 months ago by lip420.
The administrator has disabled public write access.

How to add note to form? 1 year 6 months ago #76

  • admin
  • admin's Avatar
  • OFFLINE
  • Administrator
  • Posts: 58
  • Thank you received: 9
  • Karma: 5
Sorry, the correct path is "components/com_slicomments/view/comments/tmpl/default_*.php"
default.php -> the main file who stick all other files together
default_form.php -> the form
default_comment.php -> the comment structure (repeated for each comment)
default_comment_hidden.php -> same as default_comment but for comments that are hidden

create a file with the name of the file you want to override e.g. "/templates/you template name here/html/com_content/comments/default_comment.php"
The administrator has disabled public write access.

How to add note to form? 1 year 6 months ago #77

  • lip420
  • lip420's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 18
  • Karma: 0
Haha, thanks I got it. tmpl/default.php
right after the </h4> I added my line <p>Your email won't be made public or shared</p> in the override.
The administrator has disabled public write access.
Time to create page: 0.155 seconds
Powered by Kunena Forum

Latest Topics

  • No posts to display.