2011-06-14 Galaxy S2

I just bought a new phone, Galaxy S2, you guys won't blame me if i skip one blog this week, right?

Note to self: Create new svn repo for new project

sudo svnadmin create /svn/project1
sudo vi /svn/project1/conf/svnserve.conf
anon-access = none
auth-access = write
realm = Project1 Repository
sudo vi /etc/apache2/sites-available/default
#create a new vhost for svn
#define the passwd path
sudo htpasswd -cm /svn/project1/conf/passwd joe
sudo htpasswd -m /svn/project1/conf/passwd joe2

Updating views fields changes field alias names

When views is using fields as output,
you can hidden the field, and echo them in other field templates
you will get an alias, but that alias is willing to change.
So you cannot hardcode that in tpl files.

In order to retrieve the alias and its value:

<?php
//within field tpl files
$value = $view->field['field_host_value']->render($row);
?>

http://drupal.org/node/361756#comment-4424090

當使用Views 輸出fields 的時候, 你可以隐藏 (hidden) 一個 field
但這個 field 的別名 (alias) 是會改變的
所以你不可以將這個別名寫到 code 內

要在 code 取得這個別名,

<?php
//within field tpl files
$value = $view->field['field_host_value']->render($row);
?>

http://drupal.org/node/361756#comment-4424090

五月台灣小聚

我趁假期到台灣遊山玩水的最後一天
跟 Drupal Taiwan 的網友們辦了一個小聚
終於親身見到認識四年多的各位!!

投影片:
https://docs.google.com/present/edit?id=0AawD1m0i97PYZDRxcmh6cl8xOTloYmd...

但我忘了拍照.... 有人有拍嗎?

Pages

Google