Reference Joomla Module Help Please

flynny
flynny used Ask the Experts™
on
Hi All,

an extremely basic question, but I am new to joomla and can't find any docs on it for some reason.

Basically I am trying to create a new theme for Joomla.

I want to reference in the mod_login module into the front page (so user are presented a login).

I have copied the default.php file from

PATH_TO_JOOMLA/modules/mod_login/tmpl/default.php
to
TEMPLATE_NAME/html/mod_login/default.php

as per the joomla wiki.

However, how do I then go about referencing it in my theme please.

Thanks in advance,

Matt
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
That approach is a misunderstanding of how Joomla works, UNLESS you are specifically modifying the login module to look differently than the default.

Instead you want generic placeholders; then assign a login to a module position.

If you reassign the default template to your installation, you can see this in action by going to extensions, module manager, mod_login and assigning the module to a position.
Owner at Storm IT Solutions LTD
Commented:
If you are creating a new theme you need to create your position in the templatedetails.xml
lets call it login

<positions>
      <position>login</position>
</positions>

Next you need to reference your position in your index.php file for your template


<jdoc:include type="modules" name="login" style="xhtml" />

Then in the administrator side of joomla you need to go to modules and publish the login as well as assign it to the position login.

Hope this helps

Storm
Allan NisbetOwner at Storm IT Solutions LTD

Commented:
Once you create custom over rides of joomla in your html folder in template these will automatically override the default core.

So if you want to adjust the style do it in a css in the html and if you want to adjust the actual code do it to the default.php files

Hope that helps

Storm
Bootstrap 4: Exploring New Features

Learn how to use and navigate the new features included in Bootstrap 4, the most popular HTML, CSS, and JavaScript framework for developing responsive, mobile-first websites.

Author

Commented:
Storm,

Many thanks for the help.

OK I now have the login form displaying in the position (sorry it seems quite obvious now :S ).

However I do want to modify the login forms html to effectively, rename the User Name label to Email (I have a module to allow me to use the email as the username).

I also want to remove some links, etc. So as I have a copy of the default.php in a mod_login folder in my themes html folder I can simply modify this and it will automatically be used? or do I have to tell joomlas backend about it in anyway?

Finally, I am also looking at creating a modified registration form for signing up to the site. However I am unsure how I go about this as there doesnt appear to be a module for it? Any ideas with this?

thanks again for the reply.

Matt.
Allan NisbetOwner at Storm IT Solutions LTD

Commented:
You can rwname the fields via the joomla language file or by hand codi g the titles  
in via the method above with the default page

also look at mod_login as well

for advanced login look at

Community builder or joom social which have very advanced registration as well as user handling

hope that helps

Storm

Author

Commented:
Thanks for that.

I'll open up another question on the rtegistration form as I have a few more questions.

Matt

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial