tailieunhanh - beginning drupal 7 phần 3
nói, ví dụ như "bóng rổ." Bạn cần có khả năng tiếp tục phân loại nội dung bóng rổ:May mắn thay, Drupal cung cấp một cơ chế đơn giản để tạo ra một cấu trúc thứ bậc của các điều khoản phân loại. Để cập nhật ví dụ của chúng ta, trở về liên kết "Add thuật ngữ" bên cạnh từ vựng "Các loại hình thể thao." | CHAPTER 4 TAXONOMY Basketball I Name I Basketball Description A term used to categorize content associated with the sport of basketball. Text format Filtered HTML I More information about text formats Web p-age addresses and e-mail addresses turn into links automatically. Allowed HTML tags ca em strong clte blockquote erode eul col ell cdl cdt edd Lines and paragraphs break automatically. URL alias I basketball Optionally specify an alternative URL by which this term can be accessed. Use a relative path and don t add a trailing slash or the URL alias won t work. Relations Save J f Delete Figure 4-13. Setting the URL alias for a taxonomy term Hierarchical Terms What if you need to define a hierarchical structure of taxonomy terms say for example basketball. You need the ability to further categorize basketball content by Basketball High School College Division 1 Division 2 Division 3 NBA Eastern Conference Central Conference Western Conference Fortunately Drupal provides a simple mechanism for creating a hierarchical structure of taxonomy terms. To update our example return to the Add term link next to the vocabulary for Types of Sports. 48 CHAPTER 4 TAXONOMY Click on the Structure menu at the top of the page and on the Structure page click on the Taxonomy link. Click on the Add term link next to the vocabulary where you wish to add a new term which reveals the term creation screen. Begin by adding the term for High School. Enter High School as the term name and then click on the Relationships link at the bottom of the form. In the list of terms select Basketball as the parent term and then click Save. Continue the process by entering College and NBA also selecting Basketball as the parent term. To create the third level of the hierarchy enter Division 1 as the term name and for the relationship selected College as the parent. Continue the process until you ve created all of the terms listed above. The resulting structure should look something like the list shown in
đang nạp các trang xem trước