Adding divider to new view

Events happening in the community are now at Drupal community events on www.drupal.org.
hezten's picture

Hi

I added a new content type, and a new view to view this content type as a list of nodes. Im using view for this purpose, but i cant figure out how to add the divider div between each node. I have compared to the existing view used for articles block listing, but i cant find any "divider" reference.

How is this accomplished ? I could add a border to the bottom in the div box, but then i would get a divider at the bottom, which i do not want.

Comments

After reading in this forum,

hezten's picture

After reading in this forum, i can see i need to add a template file in the filesystem. Im not sure what filename to give it. I have copied the

/var/www/data-debug.dk/openpublish/sites/all/themes/openpublish_theme/views/
views-view-unformatted--block.tpl.php

to views-view-unformatted--shortnews.tpl.php

The name of my view is "shortnews". I have rescanned the file, but it seems it still is not using the new template file ?

in your view, click on the

ndwilliams3's picture

in your view, click on the block display tab for the block. click on "theme information". It will show you a list of template file suggestions and the one it is currently using. If you are using a custom subtheme, remember to copy the base template into you theme as well.

Under the basic settings box,

betovarg's picture

Under the basic settings box, you can modify the "style" the view is using. "Unformatted" will leave you with a separator between each node you're listing, check the markup i get:

http://img291.imageshack.us/img291/60/markup.png

Then, there is a separator. Hope this helps.

OpenPublish

Group organizers

Group categories

Group notifications

This group offers an RSS feed. Or subscribe to these personalized, sitewide feeds: