HTML
How to insert an image into primary links in Drupal
Drupal normally provides powerful and secure menu system to all of us. We are able to manipulate primary links and secondary links seamlessly and easily with little effort. However, sometimes we would like to insert an image instead of text. I found a good snippet but it does not work for me. This snippet is just for menu item but actually, I am talking about primary links or secondary links. Starting in Drupal 5, primary links and secondary links are not formatted by the theme engine, instead, a list of arrays are passed to the theme directly. By default, all menus are passed to check_plain()
to prevent unexpected security holes so we cannot insert HTML tag here include . Fortunately, this is Drupal. We can customize theme to let us insert just only
img
tag.
- sugree's blog
- Add new comment
- Read more
- 4715 reads
Building academic conference site using Drupal
I have just assigned to find a solution for building an academic conference site as quick as possible. I used to be authors and also reviewer assistant but I have never been an organizer. This is my first time in this area. Anyway, it seems there are many softwares available right now. Below are just a list I found in Google.
- BYU Paper Review System - This one is very old and maybe obsolete for so long. The most interesting thing I found is that it was written in C as external PHP module.
- MyReview - It has just released the latest feature-rich version last month.
I don't have much time to find more but it seems MyReview is one of the most popular player. Anyway, my favorite CMS is Drupal and most of our sites are Drupalized. It would be nice if we can build an academic conference site using Drupal. And I found Conference module for Drupal.
- sugree's blog
- Add new comment
- Read more
- 3475 reads
Web Application and Weapon
I have a chance to think about developing web application and a question just popped in my mind. Actually, programming looks like fighting in a war which we are going to move forward to the goal. There are so many obstacles along the way. However, just like in the war which we have a set of weapons, we have libraries, frameworks and systems instead. The question is what weapon such each library or framework or system look like in the war.
Caution! Below are just my intuition so read at your own risk and don't trust me.
- sugree's blog
- 3 comments
- Read more
- 1679 reads
New theme for healthy eyes
According to my previous post regarding my eyes, I have already changed my desktop theme to Neutronium for a while. It works so great. As a plus, I get an hour battery life from my laptop without optimizing anything else. Cool! To promote this healthy eyes campaign, I have also changed theme of this site to be more eyes-friendly like you might see right now.
- sugree's blog
- 4 comments
- Read more
- 2144 reads
Django: FloatField for newforms
I'm trying to develop something using Django because it must be cross-platform. The easiest solution for cross-platform application is web-based application. Since I have just started and the document recommends me to use newforms instead of the oldforms. The concept of newforms is to define fields in the form for later validation and rendering the form in various formats and styles. However, the current implementation of newforms is in very early state (I guess) so there are so many missing pieces. For example, I would like to have a float field which automatically validates the input to be a valid floating point number. So I have to implement it myself.
- sugree's blog
- Add new comment
- Read more
- 4386 reads
Patching Tagadelic module for Drupal
I have just patched Tagadelic module for Drupal to fix a bug regarding number of levels in its block. The patch has been submitted here.
- sugree's blog
- Add new comment
- Read more
- 2372 reads
Recent comments
3 years 29 weeks ago
3 years 34 weeks ago
3 years 35 weeks ago
3 years 35 weeks ago
3 years 35 weeks ago
3 years 38 weeks ago
3 years 38 weeks ago
3 years 38 weeks ago
3 years 38 weeks ago
3 years 38 weeks ago