7.x

Events happening in the community are now at Drupal community events on www.drupal.org.
brainiac.kalel's picture

Cách custom menu trong drupal 7

Chào các bạn, mình mới tìm hiểu sơ về drupal 7.
Mình có làm template, trong đó có main menu, sử dụng

if ($main_menu) {
    print theme('links__system_main_menu', array('links' => $main_menu));
}

thì hiển thị menu dạng

<ul >
    <li ><a >dd</a></li>
    <li ><a >dd</a></li>
</ul >

nhưng giờ mình ko muốn kiểu đó mà muốn thêm tag span bao tag a

<ul >
    <li ><span ><a >dd</a></span></li>
    <li ><span ><a >dd</a></span></li>
</ul >

thì làm sao hook được.

Mong moi người chỉ bảo.

Read more
luanvn's picture

Drupal 7 nên dùng cái slider nào?

Mọi người tư vấn chút :)

Read more
adwordvietnam's picture

Captcha cho Drupal 7

Xin cho hỏi module captcha cho Drupal7, nên sử dụng cái nào?

Read more
ocditimban's picture

hook_user_view_alter dung de lam gi vay may bac

hook_user_view_alter dung de lam gi vay may bac

Read more
ocditimban's picture

hoi ve file uninstall

may anh cho em hoi variable_del dung de lam gi?
co phai la dung de delete bang tren csdl hay ko?

Read more
freenotes's picture

In values trong array

<

pre>
[field_image] => Array
(
[und] => Array
(
[0] => Array
(
[fid] => 13
[alt] =>
[title] =>
[uid] => 1
[filename] => 123.jpg
[uri] => public://123.jpg

Read more
tuandungb's picture

Custome Taxonomy Page

Chào các anh,
Em đang tìm hiểu về Drupal và có một thắc mắc.
Em muốn custom taxonomy page.Vì Em trong bài viết hiện ra ở đó em muốn có ảnh,description,và title.Mà trong taxonomy default chỉ có description và title.Bây giờ Custom thế nào cho tất cả taxonomy.Vì trang em đang làm có rất nhiều taxonomy.Mỗi Taxonomy lại có một page views thì quá nhiều.
Có cách nào add vào taxnomy page trong 1 view chung.Với mỗi một taxonomy page.Nó sẽ tự động view theo term ID không ạ,Nếu không.Mong các anh chỉ dùm em với ạ

Read more
freenotes's picture

Xóa CSS core của Drupal 7

@import url("http://localhost/ntsieu/modules/system/system.base.css?lsw5uw");
@import url("http://localhost/ntsieu/modules/system/system.menus.css?lsw5uw");
@import url("http://localhost/ntsieu/modules/system/system.messages.css?lsw5uw");
@import url("http://localhost/ntsieu/modules/system/system.theme.css?lsw5uw");
@import url("http://localhost/ntsieu/modules/comment/comment.css?lsw5uw");
@import url("http://localhost/ntsieu/modules/field/theme/field.css?lsw5uw");

Read more
lucgiac's picture

Tối ưu cho site có 10k view mỗi ngày trên vps

Chào cả nhà.

Site của tớ built trên drupal 7, chạy trên vps có cấu hình 512MB RAM Intel Xeon Quad-Core E5620 Nehalem 2.4GHz-12M cache LGA 1366.
Các thông số của vps tớ đã thiết lập cho drupal.

Hiện nay site có khoảng 10k view/ ngày theo thống kê của Google Analytics, và chủ yếu tập trung vào buổi tối.

Tớ đã dùng cache, tối ưu css và js... nhưng cứ đến buổi tối khi đông là vps lại teo.

Read more
ocditimban's picture

ko tao duoc table trong file .install

<?php
function insertTable_schema(){
$schema['example']=array(
'fields' => array(
'nid' => array('type' =>'int','not null' => TRUE,'unsigned' => TRUE,'default' =>0),
),
'primary key' => array('nid'),
);
return $schema;
}
function insertTable_install(){
db_insert('example')
->fields(array(
'nid' =>1,
))
->execute();

}
function insertTable_uninstall() {

variable_del('example_default_status');

Read more
Subscribe with RSS Syndicate content