while we're at it, perhaps we should have an element in this structure that specifies if the given thing should be visible in the teaser, too... i haven't thought this out, yet, but it might be an easier, more logical way to control what you want in the teaser vs. body than the system we have now... just brainstorming here. please shoot down this part of the proposal if it's a crappy idea. ;) I think that's a great idea Derek. A lot of times I'm forced to do this is node-whatever.tpl.php: if ($page) { // Do full node stuff here } else { // Do teaser stuff here }.
This would also allow for greater flexibility in the future to allow users more control over the node body construction through the UI, but not to get ahead of myself. I'm really interested in this and would like to take it on. I'd like to keep everyone's input coming as I'm sure some of you could do it much better. Here is an issue where I'll be posting patches. http://drupal.org/node/74326 Rob Roy Barreca Electronic Insight Corporation 12526 High Bluff Drive, Suite 300 San Diego, CA 92130 http://www.electronicinsight.com rob@electronicinsight.com Derek Wright wrote:
On Jul 14, 2006, at 3:52 PM, Rob Barreca wrote:
But would like to get a bit more input so I know if this is of some interest before a create a patch for review.
i'd love to see this. for example, it's a real pain that there's no way to specify *where* in the body the location fields should show up in a location-enabled node (http://drupal.org/node/47831). i have the same problem with the signup form for signup-enabled nodes. adding this kind of flexibility would be great. +1 to the concept.
while we're at it, perhaps we should have an element in this structure that specifies if the given thing should be visible in the teaser, too... i haven't thought this out, yet, but it might be an easier, more logical way to control what you want in the teaser vs. body than the system we have now... just brainstorming here. please shoot down this part of the proposal if it's a crappy idea. ;)
thanks, -derek