By JJacobsson on
Anyone know if there is a snippet or module out there that will facilitate the making of blocks that display a page node (in full form, not teaser)?
Anyone know if there is a snippet or module out there that will facilitate the making of blocks that display a page node (in full form, not teaser)?
Comments
Views Module
One way is to use the Views module.
The views module creates blocks.
Select the particluar node/s you want to display (filter on catgeory, sticky, nodequeue, whatever works for you).
Select display type as "Full Nodes"
Presto!
I actually use this method to create a block that shows search tips, or alternative ways to search the site (such as browsing categories), and then put the block on the default search page.
Hope that helps.
Cheers,
Tys.
Close, but no cigar :)
Well, that almost acomplises what I would like... But the filtering is a bit lacking for this purpose where I actualy want a specific node. As in, I know the ID of it. I could create separet categories for each node that I want to display like this, but I think it would get quite messy to manage as I have a bunch of nodes I want to display like this...
I'm going to use it sortof provide a separet "mission statement" for every taxonomy term I have... almost... If you get my meaning...
But thank you! I learned something about views I dident know!
skullduggery
Look, I know nothing about PHP, but it seems you need one of those fancy php-this-might-break-your-site blocks.
I found this deep in th belly of the views module:
I imagine that you already know $n->nid, so what you need is
this line:
$output .= node_view($node, $teasers, false, $links);Whether you want to experiment with this, I don't know, but perhaps you could find someone out there who can make more sense of this than me.
Anyway,
That's the last I can offer. Good luck...
Cheers,
Tys.
That did it!
And Bob's my uncle! Thanks!