Another small website I did for one of my client.
The hardest part was to do a custom page with custom SQL for each pages (Communication, Website, Logotypes and Packaging)
Here is an example of the code I did:
http://www.7340.be/exnihilo/logotypes.exn -> page-node-5.tpl.php
8<.....
print $content
<?php
$num_per_page=9;
$count_query = "SELECT COUNT(term_node.tid)
FROM term_node
JOIN term_data ON term_data.tid = term_node.tid
WHERE term_node.tid
IN (
SELECT term_data.tid
FROM term_data
WHERE vid =6
)
AND term_node.nid
IN (
SELECT nid
FROM node
WHERE TYPE = 'contrat'
)
AND term_node.nid
IN (
SELECT nid
FROM term_node
WHERE tid = '40'
)
";
$result = pager_query("SELECT term_node.tid, term_data.name, GROUP_CONCAT( term_node.nid ) nid
FROM term_node
JOIN term_data ON term_data.tid = term_node.tid
WHERE term_node.tid
IN (
SELECT term_data.tid
FROM term_data
WHERE vid =6
)
AND term_node.nid
IN (
SELECT nid
FROM node
WHERE TYPE = 'contrat'
)
AND term_node.nid
IN (
SELECT nid
FROM term_node
WHERE tid = '40'
)
GROUP BY term_node.tid