News:

Support the VirtueMart project and become a member

Main Menu

setLayout(), loadTemplate() and similar functions...

Started by ITN, January 13, 2014, 16:47:42 PM

Previous topic - Next topic

ITN

Hello.

$view->setLayout('login');
$this->loadTemplate ('shopper');


How to find out what actual files ('login', 'shopper') these functions use? I searched and renamed every login/mod_login/etc folder and file on my site, however it didn't affect login form..
I just want to change the layout of the login form.

Milbo

the view.html.php which you see there is in the user view. There is the layout login. Please read our docs about layout overriding explaing all of this (inclusive links to good joomla tutorials). http://docs.virtuemart.net/tutorials/33-templating-layouts/78-introduction-template-system.html
Should I fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/

ITN

Quote from: Milbo on January 14, 2014, 22:16:31 PM
the view.html.php which you see there is in the user view. There is the layout login. Please read our docs about layout overriding explaing all of this (inclusive links to good joomla tutorials). http://docs.virtuemart.net/tutorials/33-templating-layouts/78-introduction-template-system.html

Thanks but I know how to override layouts, however I just can't find that actual login.php (or whatever it called) file. Did I miss something?

Milbo

Definitly
Quote from: Milbo on January 14, 2014, 22:16:31 PM
the view.html.php which you see there is in the user view. There is the layout login.

If you do not understand what is the user view and where to find the files of it, then it is the proof that you do not know how the template system is structured.
Should I fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/