드루팔에서 BLOG를 카테고리화 하는 방법

댓글

7 comments posted
도움이 되었습니다.

도움이 되었습니다. 글 감사합니다.

Posted by 익명 on 월, 2008-01-14 17:39
KLDP에 답글

KLDP에 답글 보고왔습니다.
정말 제가 찾던 곳입니다.
유익한 정보 고맙습니다. (__)

Posted by 익명 on 목, 2008-02-07 00:33
도움이 된다면

도움이 된다면 저희도 기쁘지요!

Posted by admin on 목, 2008-02-07 22:14
본 팁의 PHP Snippet을

본 팁의 PHP Snippet을 블럭에 적용하는 경우도 있지만,
컨텐츠의 본문 하단에 적용하면 더 많은 PV를 유도할 수 있다.

이때 Contemplate 모듈을 이용한 편집이 유용하다. 아래 관련글을 참고하기 바란다.

Posted by admin on 토, 2009-10-03 02:01
위 Snippet과

위 Snippet과 비슷하기는 한데... 한 카테고리 내에서 시간순으로 게시물들을 표현하는 예제이다.

<?php print $body ?>
<?php
$strTermsID
= "";
if ( 
$node->taxonomy == null  ||  !is_array($node->taxonomy)  )    return;   // Do Nothing

/* extracting the keys from the array */

foreach( array_keys($node->taxonomy) as $keys )
{
 
$strTermsID .= $keys.",";
}

// comma separated lists of terms tid to display nodes
$terms = substr( $strTermsID, 0, -1);    // trim the last comma.
if ( trim($terms) == "" )  return;   // exception

// the number of nodes to show

$count = 10;

// $sql = "SELECT n.title, n.nid FROM {node} n INNER JOIN {term_node} tn ON n.nid = tn.nid WHERE tn.tid in ($terms) AND n.status=1 ORDER BY n.created DESC"; // latest
$sql = "SELECT DISTINCT n.title, n.nid FROM {node} n INNER JOIN {term_node} tn ON n.nid = tn.nid WHERE tn.tid in (".$terms.") AND  n.status=1 AND n.created<".($node->created)." ORDER BY n.created DESC"; // previous articles from this nid

$result = db_query_range(db_rewrite_sql($sql), 0, $count);
if (
$result) {
  echo
"<hr />";
  echo
t('[Articles List]');
  echo
"<br />";
  echo
node_title_list($result);
  echo
"<hr />";
}
else {
  echo
t('No nodes available.');
}
?>
Posted by admin on 토, 2009-10-03 02:07
아래 PHP Snippet도

아래 PHP Snippet도 참고하고 바란다. 유용할 듯.

Show block on specific pages via PHP Snippet
http://drupal.org/node/259832

Posted by admin on 토, 2009-10-03 02:20
Thank you for this review!

Thank you for this review! For all interested in this topic I suggest using special http://www.pdfqueen.com ebooks search engine with a huge set of thematic books.

Posted by 익명 on 토, 2010-01-09 00:57