Support

Akeeba Ticket System

#19478 ATS: Alternate Views

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 tampe125 on Wednesday, 12 March 2014 02:48 CDT

user20655
I have search and looked for any information on this will no success. How do I make an Alternate Layout for a ATS Category?

I tried the Joomla standard override location:

/templates/mytemplatename/html/com_ats/views/alternate_layout

This did not appear to work as my alternate layout did not appear in the list options for any of my ATS Categories.

tampe125
Akeeba Staff
Hello Wayne,

the path you created is not correct, you should setup something lik

/templates/your_template/html/com_ats/categories

Please take a look at this Joomla guide for further info.

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!

user20655
Davide,

I read the link you posted and verified I was creating my alternate layout correctly.

Even after following the standard, my new view is still not displaying in any Categories alternate layout drop down list.

I used the following:

/templates/your_template/html/com_ats/new_categories

Is there a trick to being able to select my new layout from the Categories list?

tampe125
Akeeba Staff
As I previosly wrote, the path ofr your template override override MUST be exactly the same:

/templates/your_template/html/com_ats/categories

Otherwise the logic won't kick in.
Inside that, you can create a new layout, for example foobar.
Please note that the new layout must not have any underscore ( _ ) in the filename otherwise it won't be reconized as Alternate Layout

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!

user20655
Davide,

I have tried the following with no success:

/templates/your_template/html/com_ats/categories
/templates/your_template/html/com_ats/newCategories
/templates/your_template/html/com_ats/foobar

For whatever reason my template overrides do not display in the Alternate Layout lists. I have tried manually creating my override, as well as using the Template Manager to generate my override. I have created overrides for many components in the past and never had such trouble. Is it possible that this functionality is not yet fully complete?

If there is any additional information I can provide to assist you, please let me know.

tampe125
Akeeba Staff
Sorry, my fault I didn't get you want to create an Alternate Layout for a single category.

Sadly for technical reasons that's not possible. You can only create a template override; however please keep in mind that all the layouts are highly coupled togheter, so most likely you will end up overriding almost everything.

Moreover there is a lot of "php logic" inside layouts, so most likely they are subject to change in future versions.

So long story short, you can only create template overrides, but there's an highly chance to break something.

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!

user20655
Davide,

Thanks for your time and answers.

Most template overrides typically involve me needing to select my override to use in some options/params.

For Akeeba Ticket System, I am guessing that so long as my override is named exactly the same as the component views, that my overrides will be discovered auto-magically?

example:

../com_ats/views/categories
../templates/your_template/html/com_ats/categories

Can you please confirm this for me? Once I have that answer this ticket can be closed.

Note: I am more than comfortable with working through the PHP code, as I have actually started making my changes. I am aware of the possible code changes moving forward and will handle it. Mostly what I am changing is the styling and layout, not removing code altogether or adding new code.

tampe125
Akeeba Staff
Yes, the logic you posted is the correct one.

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!

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!