[support] Node Items In Block

Steve Edwards killshot91 at gmail.com
Mon May 31 17:37:19 UTC 2010


Bill,

I like the views approach better, too, and I had tried what you suggested, but I can't get it to work.  I have 
a pathauto rule for blog nodes of blog/[title-raw], 
I created a block display with Node:nid as the argument, 
put it in the sidebar, and in the block settings I set it to show only on blog/* pages, 

but it's not showing up.  I have a feeling it has something to do with Views really seeing node/%nid, not blog/%title, but I'm not sure how to get around that.  

However, I have noticed (as someone else pointed out) that the layout is basically just a two column layout with the left block actually being part of the content area, so I'll probably just go the theming route for the view and the node display.

Thanks.

Steve


On May 31, 2010, at 7:56 AM, Bill Fitzgerald wrote:

> Hello, Steve,
> 
> As others have pointed out, you have two viable options here:
> 
> 1. via the theming layer, override the node display
> 2. using views, create a view that highlights the fields/data you want, 
> and display it in a block alongside the node. You'd need to set an 
> argument that grabbed the nid via the URL
> 
> Using the view would give the end user more options over time; that may 
> or may not be a good thing, depending on the context ;)
> 
> Cheers,
> 
> Bill
> 
> On 5/30/10 8:59 PM, Steve Edwards wrote:
>> I would like to achieve the functionality shown in this theme at http://www.styleshout.com/templates/preview/CoolBlue10/index.html?PHPSESSID=52698ce79756b9e4fcc38e7af2b1ee4f in a view where you have the main node contents in the main column, and then other items (such as user name, post date, taxonomy terms, etc.) in a block on the side.  I need to do have this block both for each item in the view that lists all of the nodes, and also for the node display.  Is this only possible with panels, or are there other ways to do it?  I found the views_attachment_block module, but it will only attach the blocks list page, and won't work for the node display, and I'm not sure how I could get one block to line up with its respective node in Panels, since you usually just list the entire view in a pane, and can't repeat panes in a pattern.
>> 
>> Any suggestions welcome. I'm sure there's a way to do it; it's just not coming to my mind.
>> 
>> Thanks.
>> 
>> Steve
>> 
> 
> -- 
> [ Drupal support list | http://lists.drupal.org/ ]

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.drupal.org/pipermail/support/attachments/20100531/f31ecfcd/attachment.html 


More information about the support mailing list