Xin hỏi về cách sửa theme trong Views

Em chào anh Thế Hồng,

Em tạo một CCK sản phẩm, với các fields : ảnh, tên sản phẩm, giá tiền,...!
Em tạo một Views để hiển thị các sản phẩm mới, em đã tạo được Views đó và cho hiển thị được thông tin sản phẩm như sau : ( Views của em trình bày theo fields chứ không theo Node )

http://www.flickr.com/photos/edogawaconan21/2948470175/

Tuy nhiên, em vẫn muốn chỉnh sửa từng item trong đó thêm một chút với các tag HTML, vậy có cách nào override để mình trình bày lại Views đó mà hoàn toàn code do mình không anh ? Tại em muốn tình tuỳ biến của nó cao hơn, em đã xem thử trong một số file views-view.tpl.php, views-view-grid.tpl.php,...nhưng vẫn chưa nghĩ ra được cách giải quyết, có cần phải preprocess nó trong template.php không anh ? Mong anh hướng dẫn giúp em.

Em cảm ơn và chúc anh vui

Comments

Ở view -> display đang chỉnh

Ở view -> display đang chỉnh sửa, có mục gọi là Basic Settings -> Theme: information. Không biết bạn đã thử qua chưa. Khi click vào link nói trên, sẽ có danh sách các suggestion. Dựa vào các suggestion được liệt kê, tạo file tương ứng trong thư mục theme của bạn, sau đó trả lại mục này, click vào button "Rescan template files".

The Hong

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.