Everything App
rss imageI am working on a multilingual site which requires me to localize the date format for each enabled language.
Here are the available languages and their date formats:
* Spanish(es) - j de F, Y
* German(de) - j. F Y
* Japanese(ja) - Y年n月j日
In order to achieve this, I have enabled date_locale and its dependencies(date_api, locale).
Here are the steps that I took in order to localize the date format:
1) Navigate to "Site Configuration... [read more]
There are a number of Drupal modules that handle node access and which may address many requirements. However, using hook_node_grants() and hook_node_access_records(), you can also define in your own module which nodes a user can view, edit and delete.
There is a good... [read more]
There are a few things that come with the default Drupal 6 installation that our clients often asked to be changed. If you are building a Drupal site there's a good chance you'll encounter the same requests. As a result I have a list of items below to get you better prepared for your new project.
"I want this form to have these 3 fields in a group. Can we add as many of them as possible by clicking a button or something?"
By default you can only make a... [read more]
Last time I posted a blog: "Using UUID and UUID_FEATURES modules Part 1" where I explained the basics of using UUID module to generate identity values.
The next thing you'll want to do is to use it in the real feature export components. Here is an example how we use it:
One of the projects I was working on needed locale languages support in taxonomy terms. Unfortunately, the exportable taxonomy component uuid_term provided by uuid_features module does not support i18n and is not... [read more]
Here are a few ways to detect if the user is coming from a mobile device. Used for redirection, different interfaces, or special cases.
Javascript:
PROS: Most common solution.
CONS: Many mobile devices don't support Javascript or users turn it off.
<script>
var isMobile = navigator.userAgent.match(/(iPhone|iPod|iPad|Android|BlackBerry)/);
</script>
... [read more]
