-
AuthorPosts
-
syahzul Friend
syahzul
- Join date:
- October 2006
- Posts:
- 11
- Downloads:
- 0
- Uploads:
- 2
- Thanks:
- 2
- Thanked:
- 2 times in 1 posts
August 25, 2011 at 7:20 pm #167802i would like to suggest T3 developer to add override template parameters. at the moment, the config.xml and params.xml is fetch from /plugins/system/jat3/core/admin/ and there’s no way (as far as I test) we can override these files. for example, i want to remove some settings from the page, or maybe i want to add additional values to existing fields, all i ca do is hack the JAT3 system plugin which is not a good idea.
so i would like to suggest something like this:
file: /plugins/system/jat3/core/admin/index.php
before:
$configfile = dirname(__FILE__).DS.’config.xml’;suggestion:
$userConfig = JPATH_ROOT . DS . ‘templates’ . DS . $template . DS . ‘core’ . DS . ‘config.xml’;if (JFile::exists($userConfig)) {
$configfile = $userConfig;
}
else {
$configfile = dirname(__FILE__).DS.’config.xml’;
}before:
$paramsFile = dirname(__FILE__).DS.’params.xml’;suggestion:
$userParams = JPATH_ROOT . DS . ‘templates’ . DS . $template . DS . ‘core’ . DS . ‘params.xml’;if (JFile::exists($userParams)) {
$paramsFile = $userParams;
}
else {
$paramsFile = dirname(__FILE__).DS.’params.xml’;
}this way, we can override the params easily.
i hope T3 dev can implement this (or maybe using some other technique) so template developers like myself and extend the template parameters without having to hacking the T3 core.
1 user says Thank You to syahzul for this useful post
n6rej Friendn6rej
- Join date:
- November 2006
- Posts:
- 1040
- Downloads:
- 0
- Uploads:
- 63
- Thanks:
- 79
- Thanked:
- 145 times in 90 posts
September 5, 2011 at 12:25 pm #410742This is an interesting over ride as I have found the templating system a little hard to work with. Do you recommend we implement these changes?
syahzul Friendsyahzul
- Join date:
- October 2006
- Posts:
- 11
- Downloads:
- 0
- Uploads:
- 2
- Thanks:
- 2
- Thanked:
- 2 times in 1 posts
September 5, 2011 at 12:30 pm #410743i really hope T3 dev implement this so we can customize which parameter we want to show / hide from end users.
n6rej Friendn6rej
- Join date:
- November 2006
- Posts:
- 1040
- Downloads:
- 0
- Uploads:
- 63
- Thanks:
- 79
- Thanked:
- 145 times in 90 posts
September 6, 2011 at 11:15 am #410940Can you give an example of which params you’d like to override? Also, I’d not recommend using DS as its deprecated. afaik
syahzul Friendsyahzul
- Join date:
- October 2006
- Posts:
- 11
- Downloads:
- 0
- Uploads:
- 2
- Thanks:
- 2
- Thanked:
- 2 times in 1 posts
September 6, 2011 at 11:38 am #410947noted about the DS.
about the parameters, if you take a look the Profile tabs, sometimes I want to hide the Google Font API Settings from end-user (the one who will use the template). because changing the fonts might break the template. or maybe I want to hide the User Tools setting section completely from end-user.
T3 is a good framework for template developers, but the parameters page slightly overkill for end-user. so if we can override the parameters, we can hide some section that we don’t want to show to end-user.
just my few cents 🙂
-
AuthorPosts
This topic contains 6 replies, has 3 voices, and was last updated by syahzul 13 years, 1 month ago.
We moved to new unified forum. Please post all new support queries in our New Forum