Remove image and title in a views teaser list

Good morning.

I am a newbie in drupal and php.
How can I removed the Story title, the taxonomy and image from a teaser list view.

Thank you in advance

Login to post comments

Why not use List view and

Shyamala's picture
Shyamala - Wed, 2008-09-17 16:20

Why not use List view and list only the fields you want?

Netlink Technologies Ltd
http://shyamala-drupal.blogspot.com/


How can I remove the bullet?

msidibe03 - Wed, 2008-09-17 17:05

Thank you!

But is there a way to remove the bullet in front of the field?

Thanks in advance!


Problem when I add it to mini-panel

msidibe03 - Wed, 2008-09-17 17:27

When I add the view to a mini-panel and check the preview there is a bullet in front of the field.
Is there anyway to remove it.

Thanks in advance


CSS

dpknauss's picture
dpknauss - Wed, 2008-09-17 17:39

Put list-style-type: none; in the relevant CSS id or class for that list element.

Dan Knauss

LinkedIn: www.linkedin.com/in/danknauss
New Local Media :: Riverwest Neighborhood Network
www.newlocalmedia.com :: www.riverwestneighborhood.org


CSS is your friend

agaffin - Wed, 2008-09-17 17:41

Look at the id and class(es) associated with the list you generate and style those.

list-style-type: none;

is your friend :-).


Another alternative is to modify the node.tpl.php

talyia - Wed, 2008-09-17 18:13

Another alternative is to modify the node.tpl.php so that you can customize the views/teaser list AND the full node so that you can get it exactly as the way you want it:) For my site, in Views, I chose to display the View (of each section) as node, and not fields, then customized the node.tpl.php to get it to look exactly the way I wanted.

Even tho' you may choose to go the "fields" route now, this is a very handy method to know about:)

Take a look at http://drupal.org/node/164065#comment-992955
and also take a look at http://drupal.org/node/290667 which will also be of help.

There is also some detailed documentation in the Drupal handbooks about modifying the node.tpl.php files.

Good luck! :)


firefox / css

kpaul's picture
kpaul - Wed, 2008-09-17 18:18

Webmaster Toolbar for Firefox (or Firebug) is very useful for finding those classes...

-kpaul


Custom Block

mnzava's picture
mnzava - Thu, 2008-09-18 17:53

Hi all,

Since i am just a bigginer in drupal , can anyone help me out on how to create custom block that will display data like in the following site?

http://www.themesnap.com/theme-demos/publisher-theme/node

I have much interest in MUSIC NEWS block and BUSINESS NEWS block.

My questions are:
1. How can i make images to appear the way they've appeared in the BUSINESS NEWS area? I mean images to be on the left and title and teaser on the right. I know how to do it with CSS only but i dont know how to do the same using php with drupal.

  1. How can i make a block to appear the way it appeared in the MUSIC NEWS area? I mean Image, Teaser and Related News as an ordered list.

    I hope you will help me out so that one day i can became a good drupler like you.

Thank you in advance,

NB: Sorry for my English since it's not my mother tongue language.


CSS, Firebug, Views theming

msidibe03 - Wed, 2008-09-24 13:18

Thanks to all for the help.
I found the relevant CSS for to remove the bullet with Firebug.

And then thanks to Talyia I found a pretty straightforward to understand for theming views from Keyz.
I recommend to any newbies looking to theme views to read this post from keyz: http://drupal.org/node/226818.
It help me understand the concept better than the tutorial itself.