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.