Morning.dk is now prioritizing Drupal very highly, as it has proven a great tool for delivering on-time and powerful solutions to our web-customers. A part of this prioritization is attending DrupalCon CPH 2010, where we have high hopes of learning and networking with other Drupalists... Meet us there, and we'll talk :)
Highlights from the conference are the Keynote by the creator of Drupal - Dries Buytaert, as well as PHP-centric talks by several high-profile PHP professionals, as well as leader from the webdeveloping-community. Clear-left and Ethan Marcotte will be talking of the future of HTML and HTML5.
Showing posts with label Developer. Show all posts
Showing posts with label Developer. Show all posts
Tuesday, July 27, 2010
Monday, June 7, 2010
Theming the "not-so-apparent" parts of Drupal content
An excerpt from the above-linked article/resource:
"You can create theme hooks for modules you did not write
When I wanted to theme the comments form the first thing I did was looking at comment.module. There I found a call like this:
Ok, I had a comment_form function that I could theme according to Drupal Form API, then I started looking for theme_comment_form but there was none.
How to override a theme hook that does not exist? Just as you do with your own modules, you just need to know the code involved and, this is important, you can include a hook_theme function in your template.php file. This is what I did for Woodpig:
The function starts with the theme name and the theme hook takes the form argument because it's a that's what drupal_get_form requires. Then I can write my own woodpig_comment_form($form) function."
"You can create theme hooks for modules you did not write
When I wanted to theme the comments form the first thing I did was looking at comment.module. There I found a call like this:
drupal_get_form('comment_form', $edit, $title) Ok, I had a comment_form function that I could theme according to Drupal Form API, then I started looking for theme_comment_form but there was none.
How to override a theme hook that does not exist? Just as you do with your own modules, you just need to know the code involved and, this is important, you can include a hook_theme function in your template.php file. This is what I did for Woodpig:
function woodpig_theme() {
return array(
'comment_form' => array(
'arguments' => array('form' => array()),
),
);
} The function starts with the theme name and the theme hook takes the form argument because it's a that's what drupal_get_form requires. Then I can write my own woodpig_comment_form($form) function."
Friday, June 4, 2010
Drupal - How does it work...And how do I make it work for me?
Jeff Eaton presents Drupal to the developer. He outlines the process of making a web-request, using index.php-controller as the stepping-stone, and how to hook into the Drupal-system. "Hooking" is Drupals way of modifying functionality, and hooks are primarily implemented inside Modules.
Jeff does an amazing job of keeping it simple to understand, and reveals the processes that power Drupal enough to get you more than started coding your own Drupal Modules.
Jeff does an amazing job of keeping it simple to understand, and reveals the processes that power Drupal enough to get you more than started coding your own Drupal Modules.
Sunday, May 30, 2010
SimpleMenu and Devel Themer Conflict...
These two modules, which separately are awesome tools, conflict with each other...
I haven't found documentation of the specific conflict, or the reason why they conflict -But they do.
Activating the Devel Themer module, immediately disables the display of the SimpleMenu, so re-enabling the display of the SimpleMenu is a matter of visiting the relative URL "?q=admin/build/modules" - locating Devel Themer module, and disabling it.
Please contribute with comments, and especially solutions found for this :0)
I haven't found documentation of the specific conflict, or the reason why they conflict -But they do.
Activating the Devel Themer module, immediately disables the display of the SimpleMenu, so re-enabling the display of the SimpleMenu is a matter of visiting the relative URL "?q=admin/build/modules" - locating Devel Themer module, and disabling it.
Please contribute with comments, and especially solutions found for this :0)
Saturday, May 22, 2010
Developer documentation and examples...
The general Drupal API can be found at api.drupal.org
In addition to this, you will also benefit from some select free screencasts - These display real-world usage of Drupal and Modules to provide certain custom page and content views. I can personally recommend these two...
Additionally, you might also like to have a copy of one or all of the Drupal Cheat Sheets lying around - It tells you all about the default variables, such as the login-status of your visiting user, and such essentials...
In addition to this, you will also benefit from some select free screencasts - These display real-world usage of Drupal and Modules to provide certain custom page and content views. I can personally recommend these two...
- Drupal Videos
- Drupal School
Additionally, you might also like to have a copy of one or all of the Drupal Cheat Sheets lying around - It tells you all about the default variables, such as the login-status of your visiting user, and such essentials...
Labels:
Admin,
Code,
Customizing,
Developer,
Theming
Subscribe to:
Posts (Atom)