Posted by hezten on March 23, 2011 at 6:38pm
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,
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
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,
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.