Support

Akeeba Ticket System

#26191 Ticket Title as Topic Name

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 joomshopping on Friday, 07 October 2016 11:34 CDT

joomshopping
How and where can I edit the card of the ticket to show the ticket name (topic) as the page title.
Topic = <title>Topic</title>

Thanks.

tampe125
Akeeba Staff
Hello,

you can do that, but that's not a trivial task.
You have to create a template override of the View/Posts/tmpl/threaded.php file.
Here you have the full list of posts within a Ticket. Try to add this code at lines 15:
$first_post = $this->items[0];
$ticket = $first_post->ticket;

JFactory::getDocument()->setTitle($ticket->title);

That should do the trick. Please note that I didn't actually check the code, but it should work fine.

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!

joomshopping
Unfortunately the solution didn't work. The title field is empty.

nicholas
Akeeba Staff
Manager
Hello Aleksey,

Davide was partially right. It's true that you have to create a template override of the View/Posts/tmpl/threaded.php file. Then add the following code at line 15:
JFactory::getApplication()->getDocument()->setTitle($this->item->title);

I have tested this code on my dev site and it works just fine.

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!

joomshopping
Thank you very much! Everything works fine!

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!