顯示文件(book)的目錄
前陣子Jimmy給我一個程式碼,可以用來顯示某文件底下的目錄(b.parent是該文件的nid):
<div class="subpage">
<?php
$result = db_query('SELECT n.nid, n.title, b.parent FROM {node} n INNER JOIN {book} b ON n.vid = b.vid WHERE b.parent = 2 order by n.changed');
while( $n = db_fetch_object($result)){
- 閱讀更多關於顯示文件(book)的目錄
- 10 篇回應
- 發表回應前,請先登入或註冊