hello, i was reading over http://drupal.org/node/133236 and some related postings about how to remove elements from the teaser (only teaser) view in categories and so on...

specific to this theme, the horizontal blue bars for tags and links are visually strong - but really only look great and make sense in a story.

currently they display in teaser as well. if a user creates pages that display ten short teasers, there are now circa 30+ blue horizontal lines running across the screen! that's crazy ugly, especially if teasers are short, like 600-800

my request is to remove tags and comments text/links and instead leave ONLY the "read more" at the base of each story teaser - in teaser views only - according to those threads it should be done with the $teaser variable (so as to not screw up previews of content, or to screw up views module (whenever that's ready)

CCK also allows some of this granular control, and of course it could be done via css though that would appear to be a bit more brute force because doing in the node.tpl.php may allow for you to offer simple controls in theme configuration (like don't show this info in teasers, or 'only show read more link in teaser' and so on...

what do you think?

the alternative is manually editing node.tpl.php and then having to replace every time you update the theme...

CommentFileSizeAuthor
#2 screen.jpg17.99 KBzilla
#1 screen-1.jpg21.95 KBzilla
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

zilla’s picture

FileSize
21.95 KB

sorry, thought i'd add an image for you to see the items i'm talking about...

zilla’s picture

FileSize
17.99 KB

okay, an update - i'm trying to edit node.tpl.php after scouring the drupal forums and here's what i've added:

if ($teaser):

endif;

(and tried the same thing but first line:
if ($links && $teaser):

...and what happens is that it does display what i want - a thin "read more" line without a top 'darkbar' in teaser view - BUT also still displays Links and Tags (which means a 'print this' and 'read more' in another bar...

see attached screen shot for progress - i know nothing about this stuff, so wondering if somebody could help me understand what the expression should be (for drupal 6.1)

zilla’s picture

...anybody? thoughts?

alliax’s picture

in node.tpl.php you have to say:

if $teaser then display one bar else display two bars.

That's as simple as that, really. At least I think so. Try to keep this logic and write the code for it, IF ... THEN .... ELSE ....

zilla’s picture

yeah, i don't really understand that - thanks though - i can't write code, so i'm confused by what you're describing - do you have a literal statement that i could try in a cut and paste? at any rate, i still think the multi-bars for links and so on should be pulled from default teaser view in this theme because of the strong emphasis on horizontal line placement in the overall design...again, imagine a category view of 10 teasers, each with 4 lines (2dark, 2 light after each story) - that's a lotta lines on the screen...

zilla’s picture

anybody? thoughts? i've tried content template module but that also can not over ride the default display of these template elements for teaser...

apaderno’s picture

Issue summary: View changes
Status: Active » Closed (outdated)

I am closing this issue, since Drupal 6 is now not supported.