teasers

joachim's picture

Generalizing node context

Been sitting on this idea for a while: curious to see what people think.
In a nutshell, the idea is to combine and generalize the various flags for a node that are available in node.tpl.php, and open them up to modules.

For example, instead of the $is_front, $page, $sticky, and $teaser booleans, you'd have an array with entries present if the flag is true. Something like this, for example:

  $context = array(
    'teaser' => array(),
    'sticky' => array(),
    'page' => array(),
    );

Core would take care of shoving those keys in; other modules would given a chance to add their own to a node.

That's the plan. Here's why I think it's cool:

Login to post comments · Read more

Developing CCK teasers the right way

Howdy,

looks like one of the most wanted features of Conent Construction Kit (CCK) are teasers (short presentation text of nodes with eventually a picture, showing on the front page).

Urging this feature as many others for couple of my websites, I digged Drupal.org a bit looking for a solution. Unfortunately, teaser functionality seems still on it's first steps and many different approaches can be found (i write below the interesting Drupal.org nodes i found).

QUESTION: i would be interested in hiring / co-sponsoring a programmer to develop teaser functionality for CCK. Can any expert Drupal coder give a hint on what approach is more reliable/correct/better, so to take the right path and spend well any effort?

3 comments · Read more
Syndicate content