My front page has a Page (which is a welcome) followed by several Storys and this works fine. I'd like to replicate the formatting on, say, two other pages, News1 and News2. I created Pages news1_welcome and news2_welcome and now want to add Storys to these pages. Using Taxonomy I created a vocabulary Story with terms front, news1, and news2. Using Views I created two Blocks with fields Node:title, Node:date, Node:author, and Node:teaser which are essentially the fields of Storys on the front page. Using filters I can get the correct Storys and then I can put those Blocks on my News1 and New2 pages but they don't look anything like the Storys on the front page:
(Large title)
Submitted by (link-to-author) on (date) # small, light-grey
(teaser)
(icon with arrow) ("Read more" link to body)
In my Block I can't get, for example, a "Read more" link to the body.
How can I get the same CSS on these Blocks so that they look like a Story which is "Promoted to front page"?
Thanks for any info or links.
Comments
You might want to take a look
You might want to take a look at the function node_page_default in node.module. It used
$output .= node_view(node_load($node->nid), 1);, then you can put the code in your page template, hope this gives you some hints.Using views if you want them
Using views if you want them to look like the front page change the row style to 'Node' and select teaser from the options.
This works!
Thanks. Just that change alone makes it look exactly like a Story on the front page.
Because these Storys are filtered by a taxonomy word, "news1", there's a
(tagged icon) Tagged: news1
line (which the front page Story does not have since it's there because it was "promoted to the front page" rather than filtered by a Taxonomy term.)
Is there an easy way to get rid of this line?