Easy-to-follow video tutorials help you learn software, creative, and business skills.Become a member

Reviewing the module insertion code

From: Joomla! 1.5: Styling with CSS

Video: Reviewing the module insertion code

As a quick review, let's take a look at the template code in the template.css. This is a review of the Joomla! Creating and Editing Custom Templates course. I would like to just review quickly where the HTML is located and the Joomla! codes that control the modules. So if you will go to the back end of your website and make sure you have logged in, we are going to go to Extensions> Template Manager. There are four templates that are associated with this website. Three of which have come by default with Joomla! and the fourth one called Inside is the custom template that we coded in the Joomla! Templates course.

Reviewing the module insertion code

As a quick review, let's take a look at the template code in the template.css. This is a review of the Joomla! Creating and Editing Custom Templates course. I would like to just review quickly where the HTML is located and the Joomla! codes that control the modules. So if you will go to the back end of your website and make sure you have logged in, we are going to go to Extensions> Template Manager. There are four templates that are associated with this website. Three of which have come by default with Joomla! and the fourth one called Inside is the custom template that we coded in the Joomla! Templates course.

It is also the template that was installed by default when you installed the lynda.com tutorial component and ran it. I will select Inside and select Edit. From this screen, we can edit the HTML or edit the CSS. I am going to show you the HTML now. In our Joomla! template, we have several regions of this web page that are calling for modules. Right here in this particular line is the code that calls for a module. This module is assigned a position of top, which we will find in the drop-down in our Module Manager and the style is XHTML.

XHTML means that a single div generally of the class of module cable will be wrapped around the particular modules that are in the top position. But there are some other choices that we can use for the XHTML style. Another style that we are going to use later in the course is rounded. Rounded puts four divs around the particular module and that will help us to get some rounded corners associated with the outside box of our modules. Other choices that you can use in this spot include Outline, which is useful for debugging. Vertical, which is a table-based layout that will layout your modules in a table in a vertical direction, one module per cell. Horizontal, which will write a table with a series of cells going horizontally, one module per cell.

None is also a position. None will not write any mark-up surrounding the module at all. But it also will not write the module title in place if you have decided that you want the module title to show. Let's also take a look at the HTML that we can use for setting up menu items. I have canceled out the HTML screen because I don't want to make any changes at this point in time and I am going to cancel out this screen as well. Now I am going to go to Extensions > Module Manager and I am going to take a look at our Main Menu Setting.

By default, when you create a new menu in Joomla!, a module is also created. The menu controls will allow you to add pages and components to your menu structure where the module determines where that menu will appear on your web page. As with all Joomla! modules, on the left side of the page, there is space for a title, whether that title will show or not, whether the module is enabled or not, and what position your module will appear. These positions, as we learned in the Joomla! Templates course, are controlled by your XML file. We can also assign this particular module to certain pages on the site.

On the right side of the page, there are a number of settings that are associated with your menus. You can choose which menu you wish to display within the module and you can choose the menu style. The menu style I recommend you always use is List, which may be written inside of a div if that's the way you have configured it. The three legacy settings are old settings in Joomla!. And they are generally based on table layouts. I recommend that you not use these. There are plenty of other parameters that are located inside Menu module such as those under Advanced Parameters and these under Other Parameters. I will be going through these in another movie where we will actually be applying a few of these to the menus on our website.

Now you have a handle on where all of the HTML is coming from that comprises your website and now you know where to go to change that HTML for styling purposes. We will be using this many times in this course.

Show transcript

This video is part of

Image for Joomla! 1.5: Styling with CSS
Joomla! 1.5: Styling with CSS

22 video lessons · 15922 viewers

Jen Kramer
Author

 

Start learning today

Get unlimited access to all courses for just $25/month.

Become a member
Sometimes @lynda teaches me how to use a program and sometimes Lynda.com changes my life forever. @JosefShutter
@lynda lynda.com is an absolute life saver when it comes to learning todays software. Definitely recommend it! #higherlearning @Michael_Caraway
@lynda The best thing online! Your database of courses is great! To the mark and very helpful. Thanks! @ru22more
Got to create something yesterday I never thought I could do. #thanks @lynda @Ngventurella
I really do love @lynda as a learning platform. Never stop learning and developing, it’s probably our greatest gift as a species! @soundslikedavid
@lynda just subscribed to lynda.com all I can say its brilliant join now trust me @ButchSamurai
@lynda is an awesome resource. The membership is priceless if you take advantage of it. @diabetic_techie
One of the best decision I made this year. Buy a 1yr subscription to @lynda @cybercaptive
guys lynda.com (@lynda) is the best. So far I’ve learned Java, principles of OO programming, and now learning about MS project @lucasmitchell
Signed back up to @lynda dot com. I’ve missed it!! Proper geeking out right now! #timetolearn #geek @JayGodbold
Share a link to this course

What are exercise files?

Exercise files are the same files the author uses in the course. Save time by downloading the author's files instead of setting up your own files, and learn by following along with the instructor.

Can I take this course without the exercise files?

Yes! If you decide you would like the exercise files later, you can upgrade to a premium account any time.

Become a member Download sample files See plans and pricing

Please wait... please wait ...
Upgrade to get access to exercise files.

Exercise files video

How to use exercise files.

Learn by watching, listening, and doing, Exercise files are the same files the author uses in the course, so you can download them and follow along Premium memberships include access to all exercise files in the library.


Exercise files

Exercise files video

How to use exercise files.

For additional information on downloading and using exercise files, watch our instructional video or read the instructions in the FAQ .

This course includes free exercise files, so you can practice while you watch the course. To access all the exercise files in our library, become a Premium Member.

Join now Already a member? Log in

Are you sure you want to mark all the videos in this course as unwatched?

This will not affect your course history, your reports, or your certificates of completion for this course.


Mark all as unwatched Cancel

Congratulations

You have completed Joomla! 1.5: Styling with CSS.

Return to your organization's learning portal to continue training, or close this page.


OK
Become a member to add this course to a playlist

Join today and get unlimited access to the entire library of video courses—and create as many playlists as you like.

Get started

Already a member ?

Become a member to like this course.

Join today and get unlimited access to the entire library of video courses.

Get started

Already a member?

Exercise files

Learn by watching, listening, and doing! Exercise files are the same files the author uses in the course, so you can download them and follow along. Exercise files are available with all Premium memberships. Learn more

Get started

Already a Premium member?

Exercise files video

How to use exercise files.

Ask a question

Thanks for contacting us.
You’ll hear from our Customer Service team within 24 hours.

Please enter the text shown below:

The classic layout automatically defaults to the latest Flash Player.

To choose a different player, hold the cursor over your name at the top right of any lynda.com page and choose Site preferences from the dropdown menu.

Continue to classic layout Stay on new layout
Exercise files

Access exercise files from a button right under the course name.

Mark videos as unwatched

Remove icons showing you already watched videos if you want to start over.

Control your viewing experience

Make the video wide, narrow, full-screen, or pop the player out of the page into its own window.

Interactive transcripts

Click on text in the transcript to jump to that spot in the video. As the video plays, the relevant spot in the transcript will be highlighted.

Learn more, save more. Upgrade today!

Get our Annual Premium Membership at our best savings yet.

Upgrade to our Annual Premium Membership today and get even more value from your lynda.com subscription:

“In a way, I feel like you are rooting for me. Like you are really invested in my experience, and want me to get as much out of these courses as possible this is the best place to start on your journey to learning new material.”— Nadine H.

Thanks for signing up.

We’ll send you a confirmation email shortly.


Sign up and receive emails about lynda.com and our online training library:

Here’s our privacy policy with more details about how we handle your information.

Keep up with news, tips, and latest courses with emails from lynda.com.

Sign up and receive emails about lynda.com and our online training library:

Here’s our privacy policy with more details about how we handle your information.

   
submit Lightbox submit clicked
Terms and conditions of use

We've updated our terms and conditions (now called terms of service).Go
Review and accept our updated terms of service.