chirale

IT and beyond

  • Coding
  • SysAdmin
  • whoami
  • Get view block by view name

    This is a simple function to grab a View block by view name. Usage: my_get_view_block(“my_view_name”); Code: function my_get_view_block($viewname = NULL){ if(!empty($viewname)){ # from View name, i got the view ID $vid = db_result(db_query(‘SELECT vid FROM {view_view} WHERE name = “%s”‘,$viewname)); # read related comments for views_view_block on view.module $block = views_view_block($vid); return $block; } else […]

    chirale

    July 14, 2008
    Drupal
    block, Drupal, howto, view
  • Wiki style: multilingual subdomain on 6.x

    Drupal 6.x comes with some nice multilingual features: I want to use these to transform my multilingual website from “prefix path” (http://example.com/en) to language subdomains (http://en.example.com). I like this method on Wikipedia, so it will be a nice additions to my Drupal wiki site. Prerequisites: Drupal 6.x (tested on Drupal 6.x) A sites/default directory with […]

    chirale

    July 13, 2008
    Drupal
    Drupal, i18n, internationalization, language, multilingual, subdomain
  • Blamcast’s: speed up Drupal

    John Forsythe, the father of Drupal Modules, write this interesting article enumerating some Drupal performance tips.

    chirale

    July 11, 2008
    Drupal
    articles, blamcast, Drupal, howto, performance
  • Tertiary links on Drupal

    Update: check Tertiary links / 2: tree workaround before this. That’s a wiser solution in many cases. Tested on: Drupal 5.x Zen subtheme If you use primary and secondary links in distinct blocks/area of a page, you can add the ability to browse the third navigation level. Just hack your page.tpl.php. <div id=”secondary”> <?php #display tertiary […]

    chirale

    July 10, 2008
    Drupal
    Drupal, links, menu, page.tpl.php, secondary links, tertiary links, zen theme
  • Make drupal working in a subdirectory

    Tested on HostMonster.com (main domain) Drupal 5.7 e.g. drupal57 as public_html subdirectory containing Drupal codebaseI’ve an existing Drupal installation within public_html on HostMonster for my main domain. Here the steps I’ve done to move the codebase on a subdirectory without changing URLs: Put offline the website: go to Administer > Site Maintenance Backup your codebase […]

    chirale

    July 4, 2008
    Drupal
    domain, Drupal
←Previous Page
1 … 22 23 24 25 26 … 30
Next Page→

Blog at WordPress.com.

  • Follow Following
    • chirale
    • Join 28 other followers
    • Already have a WordPress.com account? Log in now.
    • chirale
    • Edit Site
    • Follow Following
    • Sign up
    • Log in
    • Report this content
    • View site in Reader
    • Manage subscriptions
    • Collapse this bar