Syndicate content

Page list for Drupal

  • Today I played around with my feedback button (a button that sticks on the edges.)

    The one I had worked on manually was fixed on the edge just fine, even in Internet Explorer.

    Today, I felt like testing a few more things and thus tested with some HTML code. The code was very simple, a few paragraphs, one div with the feedback button, and a few more paragraphs. The style for the feedback button was in the <style> block in the header.

    It worked just find in SeaMonkey and I found something of interest! (see below) but the position of the feedback button was fixed.

      ...
      position:
    
    
  • I spent hours today to find this one module: Rules.

    In most cases, you can set up a rule in Drupal with their Actions and Triggers and it will work just fine. The fact is that these options are extremely limited if you want any kind of condition on the Rule before triggering the action.

    The idea is very simple:

    1. Something happens

    2. Check whether it is of interest1

    3. Trigger the action

    I needed that functionality for a couple of websites because I wanted to get an event whenever someone created a new page, but not for any type of ...

    • 1. This part is what is missing in Drupal Core v6.x
  • Several times, you may have been creating views and wondered: how the heck could I add a link to my node Edit page, or if you are like me, my node Outline, Track, Convert pages on top of the Edit page.

    This is actually pretty easy.

    To your fields, add a Node: Nid then click the Add button at the bottom.

    In the setup of the field, select Rewrite the output of this field and enter the text of the link as it should appear (i.e. 'Edit' or 'Convert'.)

  • Today AddThis is down, big time! For hours...

    So to make my websites load faster (although I did not delete all the caches, which is a problem too?!) I removed the functionality. If you have Drupal, there is what I have done to leave the settings the same but still hide the AddThis button and thus get all the pages of all my websites to load fast.

    First we remove the link by returning an empty array:

    /**
     * Implementation of hook_link(). 
     */
    function addthis_link($type, $node=NULL, $teaser = FALSE) {
    return array(); // immediate return
      $links = array();
    
      if ($type ===  ...
  • I just switched my websites from one server to another and noticed that on my main company site (http://www.m2osw.com) I would get a # at the end of the URL. Automatically added somehow. Thinking that could be a bad guy I checked the code and could not really see anything.

    Hitting "Back" once, I noticed that the # would be transformed to #atssh-digg. I don't have anything specific about digg on that page except the AddThis button. That adds Digg among some 150 different systems where you can share my pages.

  • Managing your own Drupal Download Site

    The other day, I was thinking, it would be nice if I could find the way to manage my own download site so people who use my modules that I do not provide directly on https://www.drupal.org would still show as expected (i.e. Green in the update window).

    I found this page about it: https://www.drupal.org/node/210984

    This is done by creating a service in your Drupal environment. You should use the ready made script named:

    project-release-serve-history.php

    which you can find in the D6 version of the Drupal project named Project. Being very ...

  • I've been using Drupal for a while and only now started to notice a problem with the cache of JavaScript code. In general, I don't cache the JS since they are not dynamic files. But we do that with Snap!.

    The Apache mime module offers two options: AddType and AddEncoding

    Both options are used in a similar way meaning that both react on file extensions. When a match is found, the corresponding MIME type or content encoding is attached to the content being sent.

    If you install the MIME module, it will attempt encode data properly for the most general case, but not all cases. That is, it does

  • Since I manage multiple computers and each run a PostgreSQL database system, I can see discrepancies between versions. (i.e. newer versions fix problems in older versions.)

    [toc hidden:1]
  • GIT

    Drupal now offers git to access its source code and 3rd party modules, themes, etc.

    The GIT system is interesting but it has a huge difference between the CVS and SVN scheme: it requires an action, such as commit, and a push. The push is what synchronize your copy with the repository. Without the push, all the actions you've been taking will have no effect (they only are on your hard drive.)

    As you will see in each project, there is a Version Control tab at the top. Clicking on it gives you most of the instructions you need to know to work with Drupal git. I will not repeat them here. The only two things I often do is commit + push and tagging (to create new official versions.)

  • Since December 2008, I have noticed that many RSS feeds include invalid ampersand characters. XML has a very specific way to handle the ampersand character, you have to write &amp; and not just &. Although it is similar in HTML, in XML it is actually enforced.

    This is neat, it ensures that your files are really valid.

    [toc hide:1]
Syndicate content

     

Terms of Site Index

Find the page/content you are looking for with our index.