Xin hoi them ve Theme va Frontpage trong Drupal 6.x

Website em lam hien tai dang can thay doi theme va em dang sua theme dua tren Zen theme. Tuy da coi nhieu huong dan nhung em van chua co cai nhin toan dien ve theme cua Drupal. Hien em dang muon lam mot website, cho phep user upload anh len, va hien co 3 man hinh chinh em dang muon lam:

1/ Trang chu (frontpage) : trinh bay cac thong tin san pham moi, cac tin tuc moi, cac user upload nhieu (anh xem thu hinh o duoi nha)
http://farm4.static.flickr.com/3192/2784462046_3d2de6b514.jpg?v=0

2/ Trang Login binh thuong cua user :
http://farm4.static.flickr.com/3122/2784469536_27e2155d4e.jpg?v=0

3/ Trang quan ly thong tin hinh anh cua user :
http://farm4.static.flickr.com/3041/2783610333_3383c75c35.jpg?v=0

Hien em van khong ro, minh nen thiet ke theme chu dao ra sao va cach lam trang frontpage dang tren.

Anh co the goi y cho em cach lam de em tim hieu them duoc khong anh ? Neu la anh, anh se to chuc theme va tao trang frontpage ra sao anh ?

Em cam on anh rat nhieu, va chuc anh suc khoe ! ^_^

Comments

Hi cucat, Khong biet ban da

Hi cucat,

Khong biet ban da biet module "Theme developer" trong goi devel khong? Su dung module nay tieu ton kha nhieu bo nho cua he thong, tuy nhien, nhu ten goi cua no, no kha tien dung cho ban trong truong hop nay.

Tro lai can ban cua theme system mot ti, ban biet rang, cac noi dung duoc in ra web thong qua ham theme deu co the qua tai (override). Thi du:

Ban su dung theme engine la phptemplate va giao dien la bluemarine, khi ma nguon goi toi ham theme ('table', ...), thi theme system se tim cac ham sau day, (uu tien theo thu tu liet ke):
1. bluemarine_table
2. phptemplate_table
3. theme_table

Do do, ban co the de dang tuy chinh cach trinh bay mac dinh cua he thong. Trong truong hop ban su dung phptemplate (bo may giao dien mac dinh cua Drupal), ban con co mot so suggestions khac (su dung module theme devel se thay). Thi du, khi o mot trang bat ky, click vao nut themer info, click chuot vao mot vung trong cua trang, ban se thay ham/template xuat ra trang la page.tpl.php va de xuat mot so ham/template khac co dang sau:

page-admin-build.tpl.php < page-admin.tpl.php < page.tpl.ph

Suggestion cho theme ('page') o moi trang moi khac, ung voi cac suggestion, ban chi can tao ham tuong ung vao file template.php, file template tuong ung vao thu muc cua theme dang su dung. Theme developer cung liet ke cac tham so duoc truyen vao ham/template, dua vao do ban tha ho ma chinh sua theo yeu cau.

Updated on Oct/01/2008: Template suggestions documents page.

The Hong

Xin cam on anh The Hong rat

Xin cam on anh The Hong rat nhieu. Cac thong tin cua anh that huu ich. Ca ngay hom qua em coi ve theme va cung hieu them nhung dieu anh noi. Hy vong se lam duoc.

Chuc anh The Hong vui ve va suc khoe nha. Cam on anh

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.

Post new comment

The content of this field is kept private and will not be shown publicly.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd> <sup> <br> <p> <h3>
  • Lines and paragraphs break automatically.
  • Link to content with [[some text]], where "some text" is the title of existing content or the title of a new piece of content to create. You can also link text to a different title by using [[link to this title|show this text]]. Link to outside URLs with [[http://www.example.com|some text]], or even [[http://www.example.com]].
  • You can enable syntax highlighting of source code with the following tags: <code>, <blockcode>. The supported tag styles are: <foo>, [foo]. PHP source code can also be enclosed in <?php ... ?> or <% ... %>.

More information about formatting options

CAPTCHA
This question is for testing whether you are a human visitor and to prevent automated spam submissions.