http://drupal.org/gophp5
Drupal 7 將使用 php5.2 的許多新特性
--> Drupal7 將與 php4 不相容!
One Comment quoted:
"
I know that PHP 5 is going
Deeporange1 - July 13, 2007 - 07:53
I know that PHP 5 is going to be much improved over the current standard so that is good, however doesn't anyone worry that rolling out new versions of Drupal so rapidly may suppress module development and what not? The thing is, it takes time to develop modules for new "Major" releases (typically) as there are new methods that have to be taken into account (For D5 it was new form systems). So, if one has a few modules that they support doesn't this kind of stuff up their time?
I am not against new developments but phasing out old platforms so rapidly would seem to stifle growth of contributed modules just a bit.
Is Drupal 6 and 7 going to be fairly compatible with Drupal 5 or are all the modules going to need a lot of patchwork?
Best regards, Derek Webb
...
"
Saturday, September 13, 2008
Wednesday, September 10, 2008
Monday, September 1, 2008
如何自訂block region(區塊範圍)?
0. template.php
1. page.tpl.php
//===
template.php:
function YOUR_THEMES_NAME_regions() {
return array(
'left' => t('left sidebar'),
'right' => t('right sidebar'),
'content' => t('content'),
'header' => t('header'),
'footer' => t('footer'),
...
);
}
?>
page.tpl.php code:
*** The location of < div class="sidebar_left" > ...</div> within the page.tpl.php determines the location of the div shown in the layout.
class="sidebar_left" corresponds to some CSS layout code, for example:
.sidebar_left{
width:25%;
float:left;
margin-right:2%;
overflow: hidden;
}
[ref] http://drupalsn.com/drupal-tutorials/custom-drupal-theme-regions
1. page.tpl.php
//===
template.php:
function YOUR_THEMES_NAME_regions() {
return array(
'left' => t('left sidebar'),
'right' => t('right sidebar'),
'content' => t('content'),
'header' => t('header'),
'footer' => t('footer'),
...
);
}
?>
page.tpl.php code:
*** The location of < div class="sidebar_left" > ...</div> within the page.tpl.php determines the location of the div shown in the layout.
class="sidebar_left" corresponds to some CSS layout code, for example:
.sidebar_left{
width:25%;
float:left;
margin-right:2%;
overflow: hidden;
}
[ref] http://drupalsn.com/drupal-tutorials/custom-drupal-theme-regions
Subscribe to:
Posts (Atom)