I am new to Joomla and I am already a huge fan of it. If you are just an IT guy just want post something about yourself on your blog, not fancy(it can be if you want to), this can be the easiest tour for you.

The whole idea is based on the origninal introduction of how to make a joomla 3.0 module. For me, I only want to post several pictures and write several lines about myself, Also keep it listed at the right side bottom so people can always know the website is my personal website.

To start with, you need upload the pictures into joomla and record the file location, you can wrap them into the folder however I think it is easier to make them seperate.

we need folder structure like this:

 

-tmpl (folder)
		----default.php
		----index.html
-index.html
-mod_aboutlei.php
-mod_aboutlei.xml

 

default.php

<?php // no direct access
defined( '_JEXEC' ) or die( 'Restricted access' ); ?>
<p>Lei Liu</p>
<img src="/images/img/mcitp.jpg" height="160" width="100">
<img src="/images/img/rhct.jpg"  height="130" width="100">
<img src="/images/img/itil.jpg"  height="120" width="100">

 

as you can tell, you can add whaever you want to into this default.php.
It can work like a static html and you add css to it. Add flash to it.
Or insert some PHP functions into it.

both index.html are empty.

mod_aboutlei.php

<?php
defined( '_JEXEC' ) or die( 'Restricted access' );
require( JModuleHelper::getLayoutPath( 'mod_aboutlei' ) );
?>

 mod_aboutlei.xml\

<?xml version="1.0" encoding="utf-8"?>
<extension type="module" version="3.1.0" client="site" method="upgrade">
    <name>About lei</name>
    <author>Lei Liu</author>
    <version>1.1.0</version>
    <description>About Lei.</description>
    <files>
        <filename>mod_aboutlei.xml</filename>
        <filename module="mod_aboutlei">mod_aboutlei.php</filename>
        <filename>index.html</filename>
        <filename>tmpl/default.php</filename>
        <filename>tmpl/index.html</filename>

    </files>
    <config>
    </config>
</extension>

 

Wrap the whole folder into zip, use extension manager in Joomla to install it,
once installed, go to module management, add the module to the right position,
in my case, I am using protostar, so I choose position 7,make sure under menu assignment,
it is allowed on all the pages.

Finished.

 

 

About Lei

I am an IT specialist with over 10 year experience - years on Automation, on-Premise or Azure.

I am happy to develop however never want be a full time developer. Only do what I have to do. If it has to be PowerShell,HTML, PHP, CSS, C#, VBS or JS, front end or backend, so be it, doesn't matter!

Spent years with Windows, SCCM, SharePoint, SQL and Exchange servers. For last several years, I have been actively working under On Premise > Azure environment.

THERE IS NO WAY BACK!!!

Current Certificates:
    Microsoft® Certified-
  • -Enterprise Administrator
  • -Database Administrator
  • -SharePoint Administrator
  • -Administering and Deploying SCCM 2012
Red Hat Certified Technician
ITIL V3 Foundation - Practitioner

Working on Azure Certificates now and hopefully they can stop upgrading their questions one day! GIVE ME A BREAK!

Contact Lei

Name *
Email *
Comments *

Traffic since 10/08/2016

Today45
Yesterday83
This week669
This month1965
Total416325

Visitor Info

  • IP: 54.163.210.170
  • Browser: Unknown
  • Browser Version:
  • Operating System: Unknown

Who Is Online

2
Online

2017-12-17

Login