Support

Akeeba Ticket System

#33787 html code in frontend default new post text

Posted in ‘Akeeba Ticket System for Joomla! 4 & 5’
This is a public ticket

Everybody will be able to see its contents. Do not include usernames, passwords or any other sensitive information.

Environment Information

Joomla! version
n/a
PHP version
n/a
Akeeba Ticket System version
n/a

Latest post by nicholas on Thursday, 01 October 2020 01:08 CDT

justme

When I type a default new post text, in the frontend the html code is visible (see screenshot). How can I hide this or make it as plain text? I need these two lines on seperate lines but this looks weird for users since the purpose of the form is not webdesign related.

tampe125
Akeeba Staff

Hello,

Is this a new installation of ATS or it's an old one?

in latest version of Akeeba Tickets System we switched from the BBCode editor to the HTML one. Can you please fill the default text once again in the category section and check if that fixes the issue?

Davide Tampellini

Developer and Support Staff

๐Ÿ‡ฎ๐Ÿ‡นItalian: native ๐Ÿ‡ฌ๐Ÿ‡งEnglish: good โ€ข ๐Ÿ• My time zone is Europe / Rome (UTC +1)
Please keep in mind my timezone and cultural differences when reading my replies. Thank you!

justme

HI Davide, Thanks for the reply. This is the most recent version and I have installed this about two weeks ago. You needed to fix some things because the auto reply did not sent because of the switch from bbcode to html (you said at the time). But in the frontend the html code is visible in the form. I never noticed this because we did not have any default text in the field. But now we have changed that and noticed all the html code is visible in the frontend.

justme

I just installed the latest version from the website. But I had to put the backup back because the auto reply did not work with the downloaded latest version. So there is still an error in that version. I also tested the html in the frontend, but with that version the html is also showing in the frontend. So putting text on every line in the "Default text in the field" field, shows all the html in the frontend. So if I want to put a line with red text, the html is shown in the frontend. I don't believe that is what it is supposed to do.

Also we previously spoke about the field with the keywords. You say it is supposed to auto reply to any keyword in the field, but thinking about that, that is not a logical solution. Why would you make multiple lines possible? If you want to auto reply to a question, you never know the exact sentence someone is going to use. You would have to place every possible phrase in that field. It is much more logical that you can say that certain words need to be in the field for the auto reply to be sent.

Say you want to auto reply to a question that has been asked over and over again about how to set the default for refund on unpublish ticket. You don't know how that question will be asked, but if you have an auto reply that has to match all the keywords "refund", "unpublish", "ticket". You can make an auto reply for that question. The auto reply is now actualy useless since you can never send an auto reply for only one word or the exact sentence. That is nearly impossible to do.

tampe125
Akeeba Staff

I just ran some quick tests with a new category created from scratch. As you can see in the attachment that everything is working as it's supposed to be.

Can you please share a screenshot of the issue?

Is the user creating a ticket allowed to use the HTML editor in Joomla?

Davide Tampellini

Developer and Support Staff

๐Ÿ‡ฎ๐Ÿ‡นItalian: native ๐Ÿ‡ฌ๐Ÿ‡งEnglish: good โ€ข ๐Ÿ• My time zone is Europe / Rome (UTC +1)
Please keep in mind my timezone and cultural differences when reading my replies. Thank you!

justme

Thanks Davide, It was indeed my editor. I was using Rokpad and that was the problem.

Now there is only the problem with updating. You have changed someting on my website to get the auto reply to work. These changes are not in the downloadable version because when I install the latest version from the website, the auto replies no longer work.

tampe125
Akeeba Staff

The edits I manually did on your site are the same you can find in the new version of ATS.

Please try to install ATS twice in a row without uninstalling it, maybe some files were not correctly copied.

Davide Tampellini

Developer and Support Staff

๐Ÿ‡ฎ๐Ÿ‡นItalian: native ๐Ÿ‡ฌ๐Ÿ‡งEnglish: good โ€ข ๐Ÿ• My time zone is Europe / Rome (UTC +1)
Please keep in mind my timezone and cultural differences when reading my replies. Thank you!

justme

Thanks for the reply. I will try that. Just one more question. Is it possible to place a default text in the title or create an override per category so I can change the label for the title field? Under options there is a display selection, is that for selecting a different template for the different categories? Since it is not possible to use the custom fields in the auto reply or have multiple keywords on which a auto reply needs to be sent, I would like to use the title field for one of the keywords but in every category the same label for the title field is used. Is there anyway I can change that? Thanks.

justme

Hi Davide, Do you have an answer on how we can solve this? We are having a big issue with constantly having to check the tickets and if the right auto reply is sent, so we would really appreciate it if you could help us with an override for the template.

tampe125
Akeeba Staff

I'm sorry but the logic of the autoreply is not going to change, since it's very tied to the whole ATS architecture.

Davide Tampellini

Developer and Support Staff

๐Ÿ‡ฎ๐Ÿ‡นItalian: native ๐Ÿ‡ฌ๐Ÿ‡งEnglish: good โ€ข ๐Ÿ• My time zone is Europe / Rome (UTC +1)
Please keep in mind my timezone and cultural differences when reading my replies. Thank you!

justme

HI Davide, I'm afraid you've read an old post. I asked a different question:

Is it possible to place a default text in the title or create an override per category so I can change the label for the title field? Under options there is a display selection, is that for selecting a different template for the different categories? Since it is not possible to use the custom fields in the auto reply or have multiple keywords on which a auto reply needs to be sent, I would like to use the title field for one of the keywords but in every category the same label for the title field is used. Is there anyway I can change that? Thanks.

In regards to the html issue, that has been resolved as I stated in my post on monday.

tampe125
Akeeba Staff

I'm sorry but it's not possible to create an override for each category. It's possible to have different layouts but it's not possible to have completely different forms based on the category.

Regarding the HTML issue, yeah, I remembered about it after I hit "submit", that's why I have edited my reply (but notifications are sent for the first post). Sorry for the mixup :/

Davide Tampellini

Developer and Support Staff

๐Ÿ‡ฎ๐Ÿ‡นItalian: native ๐Ÿ‡ฌ๐Ÿ‡งEnglish: good โ€ข ๐Ÿ• My time zone is Europe / Rome (UTC +1)
Please keep in mind my timezone and cultural differences when reading my replies. Thank you!

justme

What do you mean it is possible to have different layouts? I don't need a different form per category, I just need to be able to change the title label or have a default text in the title field per category. What does the field Display under Options inside the category select? Because I can't select anything there. Is that for a different layout as you mentioned? Like I said, I don't need a different form, it is just the label of the title I would like to change or give it a default text.

tampe125
Akeeba Staff

I don't need a different form per category, I just need to be able to change the title label or have a default text in the title field per category.

That's not possible. You can't have a different text (or anything else) based on the category. What you're seeing are display options for template overrides. You can create a template override but it will be valid for every category. Once again, you can't have a dynamic text based on the category you're in.

Davide Tampellini

Developer and Support Staff

๐Ÿ‡ฎ๐Ÿ‡นItalian: native ๐Ÿ‡ฌ๐Ÿ‡งEnglish: good โ€ข ๐Ÿ• My time zone is Europe / Rome (UTC +1)
Please keep in mind my timezone and cultural differences when reading my replies. Thank you!

justme

What file do I need for the template override and where do I put that?

nicholas
Akeeba Staff
Manager

The answer to your question is already in https://www.akeeba.com/documentation/akeeba-ticket-system/customising-frontend-layout.html Please consult that page. We even link to the Joomla's documentation page on template overrides to make your life easier.

If you want to customize the New Ticket page you need to copy the components/com_ats/ViewTemplates/NewTickets/form.blade.php file into templates/YOUR_TEMPLATE_NAME_GOES_HERE/html/com_ats/NewTickets/form.blade.php and edit this new file. That said, you CAN NOT do what you are trying to do as Davide has been telling you all along. This file applies to ALL categories, not just a specific one.

I think that we have fully answered your question, telling you that what you are trying to do is really not possible and explaining how template overrides work โ€“ even though it's already documented and actually a Joomla feature, not an ATS feature. We have fully exhausted our options for helping you on this issue so now I'm going to close this ticket. Have a great day!

Nicholas K. Dionysopoulos

Lead Developer and Director

๐Ÿ‡ฌ๐Ÿ‡ทGreek: native ๐Ÿ‡ฌ๐Ÿ‡งEnglish: excellent ๐Ÿ‡ซ๐Ÿ‡ทFrench: basic โ€ข ๐Ÿ• My time zone is Europe / Athens
Please keep in mind my timezone and cultural differences when reading my replies. Thank you!

Support Information

Working hours: We are open Monday to Friday, 9am to 7pm Cyprus timezone (EET / EEST). Support is provided by the same developers writing the software, all of which live in Europe. You can still file tickets outside of our working hours, but we cannot respond to them until we're back at the office.

Support policy: We would like to kindly inform you that when using our support you have already agreed to the Support Policy which is part of our Terms of Service. Thank you for your understanding and for helping us help you!