using Views to construct a View?

damon.cook-gdo's picture

I need some advice. I'm trying to construct a page of news articles for my school's intranet. There are going to be a few different sections:

  1. Section 1 = Featured article = big picture with a paragraph or so of text and "read more" link
  2. Section 2 = Other Featured articles = just a bulleted list of other featured stories titles that are linked to the full-text story
  3. Section 3 = smaller versions of Section 1

Basically this is all in a nice, grid-like layout. Would each section be a View? or could I make one View with attached sub-views? What is the best approach?

Login to post comments

D5: Panels; D6: Blocks?

pdcarto's picture
pdcarto - Wed, 2009-05-06 20:23

I have not used Panels since I just began with Drupal a couple months ago, using 6.x, and Panels aren't yet recommended for that version. But if you're using D5, I would think Panels is the way to go.

On D6, I have accomplished a somewhat "panels-ish" design using views in blocks and with minor modifications a standard three column Zen-classic theme and css.

Not sure if this amounts to "best practices" though!

Screenshot attached...

AttachmentSize
mgrhssnap.png 136.35 KB

Drupal 6 without Panels or blocks

damon.cook-gdo's picture
damon.cook-gdo - Wed, 2009-05-06 20:39

I think I'm on to something now. I've got one Page View with 4 attached Attachment Views. I think this is going to work once I apply some CSS wizardry. This way there are not blocks involved. Although, I'm sure I could just as easily create with blocks.

BTW I noticed Mt. Greylock...I just hiked Mt. Greylock two weekends ago. Great climb and beautiful summit. Thanks for the info!


Views + panels

gchaix's picture
gchaix - Wed, 2009-05-06 20:48

I'd recommend setting up each of the content areas as a view exported as a block. Then place them in the main content area either using panels or regions in the theme to place them.


I'm curious how this might

damon.cook-gdo's picture
damon.cook-gdo - Wed, 2009-05-06 21:43

I'm curious how this might be more effective than creating one View with several Attachment views?

First let me specify my goals a little more, here is what I'm trying to accomplish:

  • One custom page that will not be re-used
  • I'm using Taxonomy to filter the different content areas so that Headline will go in the Headline content area, SubHeadlines will go in SubHeadline content area, etc.

The only argument I could see for creating blocks is that if I need to place the block somewhere else in the site later then I have the option. Is there something I'm missing? Of course all of this is limited by my lack of experience with Views, but I'm just trying to figure out the best approach?

Thanks!
Damon


Views_attach

bonobo's picture
bonobo - Wed, 2009-05-06 21:01

For D6, you also could look at http://drupal.org/project/views_attach -- this, in combination with using blocks in regions, could do it.

FunnyMonkey
Click. Connect. Learn.
Using Drupal in Education


panels would be overkill

marketanomaly's picture
marketanomaly - Fri, 2009-05-08 04:17

My personal opinion is that panels would be overkill for a single website that will have a fairly static layout managed by you or another tech savvy admin. I would just setup regions with different views on the data you want to present.