Hello to all of you web designers out there! If you’re like me, you prefer designing your sites using some form of css, especially when it comes to designing menus. We love the hover over effects, and the customizable-ness of styling both hover and non-hover states of the menu items.

Expression Engine PluginsSome weeks ago while finagling with an Expression Engine template, it occurred to me that it would be pretty neat if EE could add a “_selected” next to my menu item’s class name if a visitor was on that particular page. This would effectively give me the power to do things like: make the menu item that corresponds to the current page highlighted while the other menu items stay normal. So, I set off to research the documentation of EE for plugin programming. This is what I’ve created for you to use as well:

Download the Plugin: atilusmenuclass.zip

Here’s how you use it:

Once uploaded, you will be able to add this snippet inside any of your template files:

<a href="/about/" class="{exp:menuclass:item class="aboutlink" selected="_selected" uri="about"}" title="About Page">about</a>

Any parameter you pass for selected will be added trailing your class name you pass for class. The parameter uri is used to specify the page URI for which the plugin will trigger this class name change.

For example, if a visitor is at the address http://yoursite.com/contactpage/ and you have set one of your links assigned with uri=”contactpage” as well as selected=”_selected” and finally class=”contactpagelink”, the plugin will change your link’s class name to contactpagelink_selected. And of course, when the visitor is on a page other than http://yoursite.com/contactpage/ the class name will be displayed as “contactpagelink”.

Output:

If visitor is NOT on http://yoursite.com/contactpage/ :

<a href="http://yoursite.com/contactpage/" class="contactpagelink"/>

If visitor is on http://yoursite.com/contactpage/ :

<a href="http://yoursite.com/contactpage/" class="contactpagelink_selected"/>

→ No Comments

In an effort to reverse its recent downward trend in sales, Dell has been promoting its IdeaStorm website, a place where users can vote on changes to the company’s products and services. It is amazing to see that the majority of the top 10 ideas are somewhat open-source/Linux related, ranging from offering PCs with Linux preinstalled, to using LinuxBIOS’ instead of proprietary BIOS’. Linux and open-source software have come a long way since I first tinkered with Red Hat Linux during sophomore year of college.

Dell IdeaStorm

For those of you unfamiliar Linux is an OpenSource or free (in some cases) operating system.

What does open source mean?

According to dictionary.com open source refers to:

A method and philosophy for software licensing and distribution designed to encourage use and improvement of software written by volunteers by ensuring that anyone can copy the source code and modify it freely.

There are a number of free or open source software applications out there including Linux, a complete operating system. It is quickly catching up to Windows in terms of design and usability and helps lower the total cost of ownership of a PC.

Among the top 10 ideas on the Dell site, one that catches my attention is “Provide Linux Drivers for all your Hardware.” I remembered those days when I had to search forum after forum in order to find instructions on how to get my sound card to work in Linux. I was frustrated after a while and eventually went back to using Windows XP.

As most Dell users probably already know Dell offers its (Windows) hardware drivers for free at the company’s support site. A user selects his/her machine type and model, and instantly Windows drivers are available. Now, if Dell could make the same thing happen for Linux, it would be heaven. I can just imagine if Dell opened up and provided Linux drivers how easy it is going to be for users to run a version of Linux with all hardware being supported. Heck, I might give Linux another shot if Dell provides such a service. Let’s see how many of these ideas get carried through by Dell.

For more information on Linux and it’s various distributions (versions) please visit Linux.org.

→ No Comments