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...
Comment | File | Size | Author |
---|---|---|---|
#2 | screen.jpg | 17.99 KB | zilla |
#1 | screen-1.jpg | 21.95 KB | zilla |
Comments
Comment #1
zilla CreditAttribution: zilla commentedsorry, thought i'd add an image for you to see the items i'm talking about...
Comment #2
zilla CreditAttribution: zilla commentedokay, an update - i'm trying to edit node.tpl.php after scouring the drupal forums and here's what i've added:
if ($teaser):
print l("...read more", "node/$node->nid");
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)
Comment #3
zilla CreditAttribution: zilla commented...anybody? thoughts?
Comment #4
alliax CreditAttribution: alliax commentedin 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 ....
Comment #5
zilla CreditAttribution: zilla commentedyeah, 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...
Comment #6
zilla CreditAttribution: zilla commentedanybody? thoughts? i've tried content template module but that also can not over ride the default display of these template elements for teaser...
Comment #7
apadernoI am closing this issue, since Drupal 6 is now not supported.