Paxton
Banned User
Many of you might now know about this great feature which comes with Modern AAC.
Basically it is great for designers.
What it does:
You can create different template, for each of sub-pages within one template folder. This is how it works.
Create new folder for example called tutorial in templates folder, and create inside it new file called index.tpl and paste some content into it for example:
Open your config.php and change the value of $config['layout'] to tutorial as this is name of your template folder.
If you go to a website now, you will see:
You gonna have this same template on all of the subpages.
And now use of alters!
Create new folder inside your template folder called alters and inside it create another folder called: account_create inside it create file called index.tpl and paste some content into it, for example:
And now if u refresh your website, you won't see difference, but if you go to account/create you will see other template
Small tip:
If you want to make an alter on all account pages, the call your alter folder account not as an example account_create
This is how it works, it takes the current controller, which is the first text after index.php and method which is the second text. In an example above:
controller: account
method: create
First it looks for alter called account_create because it has the biggest priority, if it doesn't exists it looks for account alter, if it doesn't exists either it will display default template
By this you can create subpages like WOW Login, here is an example: https://us.battle.net/login/login.xml?ref=https://www.worldofwarcraft.com/account/&app=wam
Basically it is great for designers.
What it does:
You can create different template, for each of sub-pages within one template folder. This is how it works.
Create new folder for example called tutorial in templates folder, and create inside it new file called index.tpl and paste some content into it for example:
HTML:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
{$head}
<title>{$title}</title>
</head>
<body>
<h2>This is my template :) </h2>
</body>
</html>
Open your config.php and change the value of $config['layout'] to tutorial as this is name of your template folder.
If you go to a website now, you will see:
You gonna have this same template on all of the subpages.
And now use of alters!
Create new folder inside your template folder called alters and inside it create another folder called: account_create inside it create file called index.tpl and paste some content into it, for example:
HTML:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
{$head}
<title>{$title}</title>
</head>
<body>
<h2>Another template :)</h2>
</body>
</html>
And now if u refresh your website, you won't see difference, but if you go to account/create you will see other template
Small tip:
If you want to make an alter on all account pages, the call your alter folder account not as an example account_create
This is how it works, it takes the current controller, which is the first text after index.php and method which is the second text. In an example above:
controller: account
method: create
First it looks for alter called account_create because it has the biggest priority, if it doesn't exists it looks for account alter, if it doesn't exists either it will display default template
By this you can create subpages like WOW Login, here is an example: https://us.battle.net/login/login.xml?ref=https://www.worldofwarcraft.com/account/&app=wam