Support

Akeeba Ticket System

#23676 Template Assignment

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 on Friday, 11 December 2015 17:20 CST

user88538
 Hi,

I have two questions related to Akeeba Ticket component.

First is something I emailed Nicholas about before purchase, something I suspect he will handle automatically from our email discussion. The subject was about being able to php echo back the total time investment for all of the users tickets (regardless of status) when logged in. This php echo would be displayed outside of the Akeeba Tickets component via a custom HTML module.

The second question is more a how-to question as I am new to Joomla.

I have created and assigned a template to the menu links "create a ticket" and "submit a ticket" so that the akeeba ticket component displays within the page content on that assigned template - on the surface that works perfectly. However when creating a ticket once you select a category the view changes from the assigned template to a new blank page template. I need all of akeeba ticket pages to load within the defined template page content area. Is there a trick to doing this? I have successfully done this for other components without issue, it just seems to be akeeba tickets that behaves differently.

Thanks!

nicholas
Akeeba Staff
Manager
Hi Michael,

I was about to contact you myself :) The feature you requested is already implemented in Akeeba Ticket System. Actually, it's always easier to implement this kind of features in ATS than a separate script. Just the code to bring up an environment is much more than the code to actually display the total amount of time per user :)

However when creating a ticket once you select a category the view changes from the assigned template to a new blank page template.


You'd need to create another menu item pointing to All Categories and assign the template to that menu item too. Since that menu item represents the "root" of the ticket system any page that is derived from the "root" (tickets in a category, specific ticket) will inherit the menu item ID of the root menu item and, with it, the assigned template. That's exactly how Joomla! is supposed to work. I know, it sounds complicated. It's a very powerful feature, though!

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!

user88538
Thanks Nicholas. I did get the template assignment to work with your advice. I also saw the module that returns the user's ticket status. So both of those are crossed off.

The only thing remaining is the time tracking that we discussed previously. Is it relatively simple to echo back the total time invested for a user's tickets via a custom html module without hard coding the user id into the php script or is there a more simple way to accomplish this?

Thanks!

nicholas
Akeeba Staff
Manager
There is a much simpler solution. Install the latest development release from https://www.akeebabackup.com/download/developer-releases/ats-dev/rev80222f6.html and then go to any ticket on the front-end. Right below the avatar and the username you'll find the number of tickets of the user in a gray pill and next to (or below) it you'll see the total time spent supporting this user in minutes. This information is presented to managers only.

If I understand correctly you also want to display that total time spent to the user himself?

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!

nicholas
Akeeba Staff
Manager
I got your email. Sorry for the late reply.

You asked me if it's possible to show to the user how much time we've spent on their tickets. Yes, it is possible. I made a small addition to the Credits module so now it can show credits and time spent (or just credits, or just time spent – you get to choose in the options). You can find that feature in dev release rev974af29.

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!

System Task
system
This ticket has been automatically closed. All tickets which have been inactive for a long time are automatically closed. If you believe that this ticket was closed in error, please contact us.

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!