gantry / gantry5

:rocket: Next Generation Template / Theme Framework
http://gantry.org
1.03k stars 203 forks source link

Gantry 5 not supporting Advance Template Manager #3108

Open lipatovroman opened 1 year ago

lipatovroman commented 1 year ago

Hello! It seems Advanced Template Manager not working with Gantry Framework templates. This is a big disappointment. Because Gantry 5 is a genius framework, extremely flexible and fast. In same time it has poor assignments options - only to menu items. So, we can't assign templates to some tags, specific items and URLs. Example: We use Google AdSense code in the head area. Ok, we need to remove this code for specific tags and specific items and some URLs. In the same time, we can't create menu items for that (too many tags and items). So, question: Isn't there any way to make it work together - Gantry and ATM? Maybe some hack?

ghost commented 1 year ago

If you look on regular labs site it states that their product is not compatible with Gantry 5 (i.e. it's the other way around).

2022-12-28_09-59-47

https://docs3.regularlabs.com/advancedtemplatemanager/going-further/not-compatible-with

Regards, Mark.

lipatovroman commented 1 year ago

If you look on regular labs site it states that their product is not compatible with Gantry 5 (i.e. it's the other way around).

2022-12-28_09-59-47

https://docs3.regularlabs.com/advancedtemplatemanager/going-further/not-compatible-with

Regards, Mark.

I know about that. But is there any way to solve my problem? I wrote about AdSense above.

ghost commented 1 year ago

Not that I know of unless you want to ask Regularlabs to make their product compatible.

Regards, Mark.

joomlabeat commented 1 year ago

This actually on template manager to add compatibility with Gantry, as it's that extension that addresses the loading of specific templates under certain conditions. I don't know about Joomla4, but for Joomla3, and also I am not sure about how Advanced Template Manager handles that, but most likely it does it through a system event that runs rather early in the execution flow and sets the right/selected template.

So, assuming ATM does the expected job, then is should be a rather quick and easy addition to give compatibility with Gantry - it does need a few more lines of code, in order to be able to not only load the right template (usually with Gantry someone would only use one Gantry template), but also to extend the loading to the right outline - that in regards to the part of loading the template in frontend. Not sure what it would take for ATM to give these options in its admin interface though.

Check this in case you would like to create something on your own: https://github.com/gantry/gantry5/issues/1341