background preloader

DEV stuff

Facebook Twitter

Mobile Tools. Description The Mobile Tools module provides Drupal developers with some tools to assist in making adjustments to your site based on the visitor's device.

Mobile Tools

Contextual switching of content and layoutExportable configurations using Spaces and FeaturesDefine your sites via domain, sub domain, path, path pairs and query stringServer side feature detection using BrowscapAutomatic redirection to a site based on device groupMobile bookmark popup/Add to home screen notificationMedia Query builderanything else we can think of! Mobile Tools integrates with the following modules to enable the described functionality PURLCToolsContextThemeKeyBrowscapSpacesPanelsFeaturesContext HTTP Headers Mobile Tools 3.x Updates: DO NOT USE 7.x-3.x ON PRODUCTION SITES.

PURL latest devCTools latest dev (to avoid PHP warnings)ThemeKey latest dev Spaces will cause warning messages (we aren't done with Spaces integration yet) The 7.x-3.x dev release is ready for community testing and patches. La révolution des cadriciels d’interface. "The need for most people to create front-end code may not even exist in the not-so-distant future.

La révolution des cadriciels d’interface

" Zurb, créateur du cadriciel Foundation. La multiplication des plateformes, et avec elle le besoin de sites adaptatifs, complexifie la vie des développeurs web. Heureusement, depuis quelques mois, une petite révolution est en train de se produire. Des cadriciels d'interface (interface framework) peuvent simplifier radicalement la production d'interfaces utilisateur. One Skill You Need to Be an Entrepreneur. If you're an entrepreneur, what skill can you absolutely not do without?

One Skill You Need to Be an Entrepreneur

Selling might come up as an obvious possible answer—after all, every business owner regardless of their venture needs to persuade someone to part with their cash. Or in this high-tech world is it a specific bit of know-how, such as SEO optimization or website design? Or could it possibly be pitching and self presentation? While all of these abilities are obviously valuable to entrepreneurs, and no one can get along starting a business if they're is entirely devoid of them, a recent Copyblogger post argues that the one skill every entrepreneur must possess to succeed is actually none of the above. What is it? The post points out that with technology putting so much knowledge at our fingertips, specific skills are pretty easy to come by.

Instead, says Copyblogger, entrepreneurs should stress over their ability to swivel and flex in reaction to the rapidly changing business environment. Nice Menus CSS Examples. Here are some examples of some common CSS changes for your menus.

Nice Menus CSS Examples

You can either edit these in your custom Nice Menus CSS file or you can simply add these to the bottom of your theme's style.css file. To create a custom Nice Menus CSS, you can make a copy of the provided nice_menus_default.css file and tell Nice Menus to use your new CSS by going to Administer -> Themes -> Configure -> Global settings -> "Path to custom nice menus CSS file" and entering your new file's path. Example: sites/all/themes/your-theme-name/css/your-file-name.css Make hovered links white with a black background: Make the link to the current page that you're on black with yellow text: Get rid of all borders: Get rid of the borders and background colour for all top-level menu items: Have a nice menu stick to the top of the page e.g. for an admin menu (where the Nice Menu block number is 1): In Firefox, as above but where the menu doesn't move as you scroll down the page (where the Nice Menu block number is 1):

Views PDF. With this module you can output a view as a PDF document.

Views PDF

Each field of the view can be placed on the PDF page directly in the administration interface. Therefore a new display called "PDF" is added. There are already some PDF solutions such as Print. But these solutions use the HTML output and converts this to PDF. The downsides of such an integration are: No control over page flow (e.g. page break).Little or no control over page header and footer.You need HTML skills to change the layout.The rendering is slow and need a lot of memory, because it needs to render the HTML.Complex tables make troubles.Vector graphics can not be implemented, therefore the printing of the document can be problematic.You are limited by HTML's capabilities.No hyphenation.

You can also specify a background PDF document. Possible Use Cases are: PDF invoice for UbercartA print at home solutionPrintable Version of your website Dependencies. Consultas SQL, de Drupal 6 a 7 (1ª parte) La nueva versión Drupal 7 ha traído muchas novedades.

Consultas SQL, de Drupal 6 a 7 (1ª parte)

Uno de los cambios que más notaremos, además de la administración, son las nuevas funciones. Las funciones para el tratamiento de consultas son sin duda de las más necesarias y usadas de Drupal. Además todo parece indicar que en futuras versiones continuarán en vigor las mismas funciones, de modo que nos tendremos que ir acostumbrando :) Consultas estáticas En Drupal 6 realizábamos todas las consultas a la base de datos mediante la función db_query(). Drupal 6 y 7:$result = db_query("SELECT nid,title FROM {node} WHERE type='blog' "); Paso de parámetros En Drupal 6 utilizábamos unos determinados modificadores (%d enteros, %s cadenas, etc) para validar los argumentos que le pasábamos y evitar las inyecciones SQL.

Cheat Sheets & Quick Reference Cards for Developers.