-
AuthorPosts
-
mx5gr Friend
mx5gr
- Join date:
- September 2009
- Posts:
- 62
- Downloads:
- 0
- Uploads:
- 2
- Thanks:
- 2
- Thanked:
- 1 times in 1 posts
April 15, 2011 at 10:46 am #162820We use JAT3 2.0 for our site template. However, we need to add some custom code just before the </head> and </body> HTML tags. We tried making a module and assign it to footer (for example by using a module @ the very bottom position) but we always got <div> around it.
Any ideas how we can enter our custom code before the tags?
khoand Friendkhoand
- Join date:
- February 2011
- Posts:
- 4500
- Downloads:
- 0
- Uploads:
- 179
- Thanks:
- 169
- Thanked:
- 1166 times in 1060 posts
mx5gr Friendmx5gr
- Join date:
- September 2009
- Posts:
- 62
- Downloads:
- 0
- Uploads:
- 2
- Thanks:
- 2
- Thanked:
- 1 times in 1 posts
April 15, 2011 at 12:13 pm #386557<em>@khoand 234441 wrote:</em><blockquote>Hi,
You try edit <joomla url>pluginssystemjat3jat3base-themesdefaultpagedefault.php file</blockquote>Thanx, it worked out!
Phill ModeratorPhill
- Join date:
- February 2014
- Posts:
- 7013
- Downloads:
- 40
- Uploads:
- 77
- Thanks:
- 917
- Thanked:
- 2206 times in 1818 posts
bkmja Friendbkmja
- Join date:
- June 2010
- Posts:
- 96
- Downloads:
- 0
- Uploads:
- 3
- Thanks:
- 25
- Thanked:
- 1 times in 1 posts
July 9, 2011 at 7:26 pm #400398<em>@phill luckhurst 234451 wrote:</em><blockquote>Please copy that file to the templates folder ie template>your_template_name>page>default.php
That way if you update the JAT3 framework plugin your changes will not be lost.</blockquote>
Hi, is this an actual path? The “page” directory is confusing. Thanks for the clarification.
khoand Friendkhoand
- Join date:
- February 2011
- Posts:
- 4500
- Downloads:
- 0
- Uploads:
- 179
- Thanks:
- 169
- Thanked:
- 1166 times in 1060 posts
July 10, 2011 at 8:28 am #400416Because JAT3 sets priority to templates.
<joomla url>pluginssystemjat3jat3base-themesdefaultpagedefault.php file has low priority
<joomla url>templateyour_template_namepagedefault.php file has higher priority
If <joomla url>templateyour_template_namepagedefault.php file is missing, <joomla url>pluginssystemjat3jat3base-themesdefaultpagedefault.php file is loaded
To do as phill luckhurst said, because when you upgrade JAT3 in future, <joomla url>pluginssystemjat3jat3base-themesdefaultpagedefault.php is replace by new. So if you edit <joomla url>pluginssystemjat3jat3base-themesdefaultpagedefault.php directly, your code that you changed is overrided
Refer: http://wiki.joomlart.com/wiki/JA_T3_Framework_2/Guides#Override_Priority1 user says Thank You to khoand for this useful post
bkmja Friendbkmja
- Join date:
- June 2010
- Posts:
- 96
- Downloads:
- 0
- Uploads:
- 3
- Thanks:
- 25
- Thanked:
- 1 times in 1 posts
July 10, 2011 at 4:32 pm #400434Hi,
Thank you. Very clear explanation. Checked a more recent version of framework and found “page” so that clears that up.
Like the idea of future proofing for T3 upgrades. Have seen the wiki, lots of hours on it recently, but something is still not clear. It leads one to believe one can future proof template upgrades too. I believe it has to do with the local directory, but would like to confirm.
Thanks again for the help.
-
AuthorPosts
This topic contains 7 replies, has 4 voices, and was last updated by bkmja 13 years, 4 months ago.
We moved to new unified forum. Please post all new support queries in our New Forum