January 10, 2012
As of late I’ve been doing a lot of working on Joomla and creating a Joomla template for a school district that will be used district wide. It will not only be used on the districts website but it will also be used on the High School’s website, the Middle School’s website, and the Elementary School’s website. That’s a big thing for me because it means that the template has to actually be a template and not just a template that is that site specific, which I used to do a lot when creating Joomla templates. This has been a tremendous learning curve for me and has and will defiantly help me out when I do other website. Here are a couple coding tips for anyone who has use of them, but mainly they’ll be here for me to easily reference to and know where they are at.
This first one is to tell if the current page is from a certain Joomla component. The one in this example is JEvents, which is a really good calendar component for Joomla.
1
2
3
4
| <?php /*store true or false in a variable for ease of use*/$is_calendar = (JRequest::getCmd('option') == 'com_jevents'); ?>
<?php /*see if this page is the events page*/ if ($is_calendar) : ?>
<p>Do something in here if the page being displayed is of the com_jevents</p>
<?php /*end the if statement */ endif; ?> |
The second one is to see if the current page is the front page, or the default that people go to when they come to your website.
1
2
3
4
| <?php /*store the menu in a variable for ease of use*/ $menu = JSite::getMenu(); ?>
<?php /*see if the current page is the front page, if so then do something*/ if ($menu->getActive() == $menu->getDefault()) : ?>
<?php /*if it's not, then do this instead*/ else : ?>
<?php /*end our if statement saying if the page is the front page or not*/ endif; ?> |
Pretty nice and easy to do once you figure out how to do them, there’s so many different options out there that you can do. For example, the first one you can replace “com_jevents” with any other component and use it that way.
If you have any questions, feel free to ask!
Bradley Hilton
June 8, 2010

Here’s just a quick update about something I recently did. As many of you know I love coding, especially website coding. Many people have asked me why I like it so much, and the only truthful answer I can give is the fact that it’s sometimes a challenge. I love challenges even if I get mad or angry while doing it. Why? Because after I’m done and get it working 100% correctly, I’m happy and excited about it.
With that in mind, you also know that I’ve coded a couple websites. Including but not limited to My Pastors, My School’s, My School District’s Welcome Center, and mine (new one in the process).
As of just recently, I can now add another one to that list. Also in a couple days from now I’ll be able to add two more, but for now I’ll just talk about one.
This picture is a screenshot taken from my phone (since it’s what I’ve typed up this blog post with) and it’s of the site I can now add to my portfolio. It’s for a real estate company as you can maybe see from the screen shot. It is a Joomla! template and it’s also a Joomanager theme. There was a little bit of a learning curve going from just coding a Joomla! template to adding and making sure that Joomanager worked and looked correctly. I was excited to do this site and glad that I got it done before my deadline. The link to the live website is: http://www.svcliving.com/ even though they currently don’t have it all the way up as they are learning how to use Joomla and Joomanager. Just thought I’d share this with you all.
And upcoming sometime soon is a post called “Who Are the Best Actors”. I’ve still got a ways to go before that post is complete, but I’m hoping it’s going to end up good.
God Bless,
Bradley
March 19, 2009
FINALLY I CAN SLEEP!!! Lol – That’s how i feel right now because I’ve figured out how to add a drop down menu to my template for Joomla! I told you guys in my last post that I would be posting here whenever I finally got my template with a MooMenu added. And that’s what I am doing, but in the process of doing it I thought that you guys might want to see my screen when I work on it. This screen shot is actually from whenever I was testing out the new menu and seeing if it would work in all the browsers I have installed. The ones open and up are Opera and Safari. To my surprise Internet Explorer handled the menu better than Firefox! To all the web developers you know that this came as a huge surprise!!! Lol – As you can tell I’m really excited (from all the “!”‘s). Here’s the screen shot:

The only thing that I have left to do is to edit the “templateDetails.xml” file to be up to date and to include all the files when installing. Then the next test will be to test the installing of the template and work out all of the errors that I get. Let’s pray that I can get it all working before I go to bed!
On a side note, I’ve been texting this girl since last week sometime, and then this past Saturday a local church had a youth service with fellowship afterward. I stayed for it and talked to someone about this girl and to find out she’s on fire for God which is AWESOME! This means that once I talk to my pastor about his rules for talking to girls, then I am going to move on from there and I’m praying that she actually likes me!!! Lol – I’m sure most of my readers don’t really care about this, but I just thought I would put that in there! Haha – That’s all for now, will update later some time, that ain’t a promise that it’ll be within a week, but I will try.
God Bless,
Bradley Hilton
March 19, 2009
I’m sure that most of you have probably been wondering when I will acutally get done with creating a template for Joomla. Well the time has come for me to show you all the almost finished Joomla template! The thing that I will include in release 1.5 will be a MooMenu (or a.k.a. Drop Menu). I will also include in that realse is CSS fixes, index.php fixes, and just little bugs and stuff. Tell me what you guys think of this template!
Link: http://www.graywolf336.com/joomla
Preview:

I know that the preview image isn’t that big, that’s because this is the only image that i have myself. If you want to look at it with a “bigger” image, then feel free to visit http://www.graywolf336.com/joomla/ Thanks and let me know what you think!!!
God Bless,
Bradley Hilton