Media queries are a wonderful thing. One of the most common uses is hiding things like large images and videos on small screen sizes. On a recent project I was using an embedded video as a background for a section of the home page. On small, narrow screens the user could see so little of it it did not make sense to show it (plus most mobile phone browser won't even render video). However, the video file is still requested and downloaded, slowing down the page.
I came across a great tutorial by …… [Read More »]
The ProEvents add-on for Concrete5 is one of the best extensions on the C5 marketplace. Calendars and any software that deals with time and dates is always a pain. If you need an event calendar on your site, for $38 you can save yourself a lot of trouble. However, just like anything, it will require some customization if you want a unique look and there is some missing functionality.
One of the issues I ran into was changing the name of the event categories. At first it seemed like all I would …… [Read More »]
When creating a custom block in Concrete5 there are some great helper classes that allow you to quickly and easily create an easy to use form for the editor. This includes a date and date/time helper that will display a jQuery date picker. However, when adding and editing date fields there is one step that is not immediately obvious. The date has to be formatted correctly before it is saved in the database.
In this example we'll be dealing with a MySQL database where the date format is the stan…… [Read More »]
This should, obviously, only be done on a local development site and not in a production environment. If you're like me you have a lot of development sites and databases. Occasionally I'll come back to one and for one reason or another not know the password. This is a quick and easy way to recover it by temporarily setting the admin console log in page to automatically authenticate you.
Go to the login page template at `app/design/admin/default/template/login.phtml`. Anywhere on the page add th…… [Read More »]
On a typical Magento site there is a button on the cart page labeled “Continue Shopping”. If the user adds an item to the cart then clicks this button it will return her to the product page of the last added item. The URL for this link is retrieved using the checkout session, which stores a value with the key ‘last_added_product_id’. However, there are a couple minor flaws in this functionality. First, is that the session key is cleared after it’s accessed by a core module. So, if the cart is up…… [Read More »]
When trying to use the Google Maps API to display a map within a Magento CMS page I was having trouble trying to get the map controls to display. I found many suggestions on the web that involved removing the 'max-width: 100%' style on images inside the map canvas container. The style change is still need, but that wasn't working for me.
One of the missing features of Magento is lack of control over the main navigation menu. By default the top menu is used exclusively for product categories. I was recently working on a project where I wanted to have all the products under one sub-menu and then link to several CMS pages next to it. For stores that may have a variable number of top level categories this prevents the client from stuffing too many links in the top menu.
Magento's solution for linking to CMS pages is to create empty…… [Read More »]