Template for Login/Registration

Istvanv

Joined: 2006-07-19
Posts: 6
Posted: Tue, 2011-01-04 12:04

Hallo I want to style a theme but I have problems to change the design of the login/registration page. I found the "UserLogin.tpl" but it's in the "core" directory, so I don't want to change.

1) Is it possible to integrate a custom copy in my custom template folder?
2) If yes, how to integrate it in the "theme.tpl" or another place?
3) Do I need other TPL-files for registration, password recovering?
4) If not, where is the TPL-file which creates the table around the login form?

Thanks

 
alecmyers

Joined: 2006-08-01
Posts: 4342
Posted: Tue, 2011-01-04 15:28

any template (.tpl) file can be overidden with a local alternative: create a /local directory next to the template file, and put a copy of that template file in it, with the same name. The /local copy will be used instead. You may need to turn template caching off, then on again, to see changes.

There is also in G2.3 onward a mechanism for overriding module templates (including templates in module core) in themes: see the Section GalleryModuleAPI 3.5 => 3.6 in http://codex.gallery2.org/Gallery2:API_Changes_From_2.2_To_2.3. I'm not sure if there's any better documentation to it, and I know it hasn't been used much because Gallery2 development ceased shortly after this change was introduced.

 
Istvanv

Joined: 2006-07-19
Posts: 6
Posted: Wed, 2011-01-05 16:15

Ok, I created a local directory in the modules/core/templates/ directory and it works. Is it possible to create a directory in my template directory?

What is the wrapping template? I want to catch the table that contains the login form and change the class.

Thanks