Hi all,
I plan to use front_page module in order to have two home pages
- one for the anonymous visitors
It will display the title story and text of the story with taxonomy/menu term restrictions and no images display.
- one for the registered users
It will display Title story+ Text story + image thumbnail with a automatic link to the preview image + url link refering to an external site - also no taxonomy/menu restriction
But things are going harder because I didn't found a easy way to display some fields for the anonymous users home page and others for the registred users home page. I've tried several snippets with story node and image + image filter or assist module but none of them allow me to do what I really want.
<?php
/**
* This php snippet displays nodes
* from a list of categories specified in the first line ($taxo_id)
*
* To increase/decrease the number of nodes listed
* change the $list_length value to suit.
*
* Works with drupal 4.6.x & 4.5.x
*
* Snippet submitted by Robert Garrigos (robertgarrigos)
* Updated by Sean Robertson (seanr)
*/
$taxo_id = "1,2,4,6,7,9,10,11,12,13"; /* comma seperated list */
$list_length = 25;
$sql = "SELECT * FROM {node} INNER JOIN {term_node} ON {node}.nid = {term_node}.nid WHERE {term_node}.tid in ($taxo_id) ORDER BY {node}.created DESC LIMIT $list_length";
$result = db_query($sql);